There seems to be no way to set the camera/eye angles when creating a chart with subplots of 3d surfaces. This apparently is because the āsceneā argument in the traces that you would append in make_subplots means something different than āsceneā would in a standalone plot. Is that right? Furthermore what does scene mean in this context?
This code:
camera=dict(
eye=dict(x=0,y=0,z=0.5))
swap_surface = dict(type=āsurfaceā
,x=x,y=y,z=z
,showscale=False
,cmin = zmin, cmax = zmax
,opacity = 0.9
,lighting = lighting, colorscale = colorscale,scene=dict(camera=camera))
x, y, z = yield_surface(lo=0,hi=100,aggfield=ātreas_yieldā)
treas_surface = dict(type=āsurfaceā
,x=x,y=y,z=z
,showscale=False
,cmin = zmin, cmax = zmax
,opacity = 0.9
,lighting = lighting, colorscale = colorscale,scene=dict(camera=camera))
figz = tools.make_subplots(rows=2
,cols=1
,specs = [[{āis_3dā:True}],[{āis_3dā:True}]]
,vertical_spacing = 0.1, horizontal_spacing = 0
,subplot_titles = (āUS Treasury Curveā,āSwap Curveā)
,shared_xaxes=True
)
figz.append_trace(swap_surface,1,1)
figz.append_trace(treas_surface,2,1)
Produces this error:
ValueError:
Invalid value of type ābuiltins.dictā received for the āsceneā property of surface
Received value: {ācameraā: {āeyeā: {āxā: 0, āyā: 0, āzā: 0.5}}}
The 'scene' property is an identifier of a particular
subplot, of type 'scene', that may be specified as the string 'scene'
optionally followed by an integer >= 1
(e.g. 'scene', 'scene1', 'scene2', 'scene3', etc.)
What are scene1, scene2, and scene3? None of the documentation online shows proper usage of this argument.
How do i simply give these 2 subplots a different starting eye angle setting?
Thanks