It's now possible to specify the 3D projection to be either 'perspective'
or 'orthograhic'
import numpy as np
import plotly
print(plotly.__version__)
import plotly.graph_objs as go
from plotly.offline import init_notebook_mode, iplot
from plotly.tools import make_subplots
init_notebook_mode()
3.7.0
Default 'perspective'
projection
fig = go.Figure()
scatter3d = fig.add_scatter3d(
x=[0, 1, 2, 3],
y=["A", "B", "C", "B"],
z=[1, 3, 2, 1])
fig.layout.title.text = 'Perspective projection'
iplot(fig)
New orthographic projection
fig.layout.title.text = 'Orthographic projection'
fig.layout.scene.camera.projection.type = "orthographic"
iplot(fig)