You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new spec code in surf and mesh disables set_azimuth and set_altitude because it causes the azimuth and altitude fields in page to be ignored.
These fields and functions are recent additions. The functions set azimuth and altitude fields in page that had been given default values by _create_page. Now the fields in the page are set from within surf and mesh by
_create_page is setting the defaults to 33. and 115. respectively, so the behavior shouldn't change in other respects.
I thought about removing the set_ functions, but I think it's useful to be able to set the altitude and azimuth and have the new values apply by default to a series of surf or mesh calls.
CORRECTION: That doesn't really work because each subplot or plot page has a new page structure, so the azimuth and altitude don't persist between calls to surf and mesh, unless one is writing multiple 3D plot calls on one subplot, which would be rare enough that it wouldn't matter.
So maybe set_altitude and set_azimuth should be removed, and the default values left in hardcoded surf and mesh?
The text was updated successfully, but these errors were encountered:
Yes, this is better than my current code so I have changed it, many thanks.
So maybe set_altitude and set_azimuth should be removed, and the default values left in hardcoded surf and mesh?
I agree that it is not very common to call 3d plot multiple times in one figure, so I have removed the set_altitude and set_azimuth for the time being. But it can be added back in future whenever the usecase becomes clear.
The new
spec
code insurf
andmesh
disablesset_azimuth
andset_altitude
because it causes theazimuth
andaltitude
fields inpage
to be ignored.These fields and functions are recent additions. The functions set
azimuth
andaltitude
fields inpage
that had been given default values by_create_page
. Now the fields in the page are set from withinsurf
andmesh
byso if these values were changed by the
set_
functions, the values are ignored. Maybe something like this would be better?_create_page
is setting the defaults to 33. and 115. respectively, so the behavior shouldn't change in other respects.I thought about removing the
set_
functions, but I think it's useful to be able to set the altitude and azimuth and have the new values apply by default to a series ofsurf
ormesh
calls.CORRECTION: That doesn't really work because each subplot or plot page has a new
page
structure, so the azimuth and altitude don't persist between calls tosurf
andmesh
, unless one is writing multiple 3D plot calls on one subplot, which would be rare enough that it wouldn't matter.So maybe
set_altitude
andset_azimuth
should be removed, and the default values left in hardcodedsurf
andmesh
?The text was updated successfully, but these errors were encountered: