Hi everyone,
I am trying to use custom buttons to change the camera view (e.g. XZ plane, XY Plane) and projection type (e.g.: Orthographic, Perspective)
I have tried setting a variable
xzplane = dict(
eye=dict(x=0, y=2.5, z=0),
projection_type="orthographic",
)
And then in the update menus
updatemenus=[
dict(
type="buttons",
direction="right",
active=0,
x=0.57,
y=1.2,
buttons=list([
dict(label="XZ Plane",
method="update",
args=[{"visible": [True, True, True, True]},
{"title": "XZ Orthographic Projection",
"annotations": xzplane}]),
]),
)
]
Any suggestions?
I have tried changing “annotations” to “scene_camera”, and even “projection_type”, however, it does not seem to work. Perhaps my understanding of args is flawed.
I have also tried changing the method=“relayout” and then using “scene_camera” and “projection_type”. No change there.
Thanks in advance.