@@ -58,11 +58,13 @@ class Axes3D(Axes):
58
58
Axes ._shared_axes ["view" ] = cbook .Grouper ()
59
59
60
60
def __init__ (
61
- self , fig , rect = None , * args ,
62
- elev = 30 , azim = - 60 , roll = 0 , sharez = None , proj_type = 'persp' ,
63
- box_aspect = None , computed_zorder = True , focal_length = None ,
64
- shareview = None ,
65
- ** kwargs ):
61
+ self , fig , rect = None , * args ,
62
+ elev = 30 , azim = - 60 , roll = 0 , shareview = None , sharez = None ,
63
+ proj_type = 'persp' , focal_length = None ,
64
+ box_aspect = None ,
65
+ computed_zorder = True ,
66
+ ** kwargs ,
67
+ ):
66
68
"""
67
69
Parameters
68
70
----------
@@ -83,11 +85,21 @@ def __init__(
83
85
The roll angle in degrees rotates the camera about the viewing
84
86
axis. A positive angle spins the camera clockwise, causing the
85
87
scene to rotate counter-clockwise.
88
+ shareview : Axes3D, optional
89
+ Other Axes to share view angles with. Note that it is not possible
90
+ to unshare axes.
86
91
sharez : Axes3D, optional
87
92
Other Axes to share z-limits with. Note that it is not possible to
88
93
unshare axes.
89
94
proj_type : {'persp', 'ortho'}
90
95
The projection type, default 'persp'.
96
+ focal_length : float, default: None
97
+ For a projection type of 'persp', the focal length of the virtual
98
+ camera. Must be > 0. If None, defaults to 1.
99
+ For a projection type of 'ortho', must be set to either None
100
+ or infinity (numpy.inf). If None, defaults to infinity.
101
+ The focal length can be computed from a desired Field Of View via
102
+ the equation: focal_length = 1/tan(FOV/2)
91
103
box_aspect : 3-tuple of floats, default: None
92
104
Changes the physical dimensions of the Axes3D, such that the ratio
93
105
of the axis lengths in display units is x:y:z.
@@ -101,16 +113,6 @@ def __init__(
101
113
does not produce the desired result. Note however, that a manual
102
114
zorder will only be correct for a limited view angle. If the figure
103
115
is rotated by the user, it will look wrong from certain angles.
104
- focal_length : float, default: None
105
- For a projection type of 'persp', the focal length of the virtual
106
- camera. Must be > 0. If None, defaults to 1.
107
- For a projection type of 'ortho', must be set to either None
108
- or infinity (numpy.inf). If None, defaults to infinity.
109
- The focal length can be computed from a desired Field Of View via
110
- the equation: focal_length = 1/tan(FOV/2)
111
- shareview : Axes3D, optional
112
- Other Axes to share view angles with. Note that it is not possible
113
- to unshare axes.
114
116
115
117
**kwargs
116
118
Other optional keyword arguments:
0 commit comments