8000 Merge pull request #16996 from rdimaio/master · matplotlib/matplotlib@8162641 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8162641

Browse files
authored
Merge pull request #16996 from rdimaio/master
Clean up get_proj() docstring (used view_init docstring as reference)
2 parents 2327801 + a09a4b7 commit 8162641

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,7 @@ def convert_zunits(self, z):
154154

155155
def _process_unit_info(self, xdata=None, ydata=None, zdata=None,
156156
kwargs=None):
157-
"""
158-
Look for unit *kwargs* and update the axis instances as necessary
159-
160-
"""
157+
"""Update the axis instances based on unit *kwargs* if given."""
161158
super()._process_unit_info(xdata=xdata, ydata=ydata, kwargs=kwargs)
162159

163160
if self.xaxis is None or self.yaxis is None or self.zaxis is None:
@@ -914,7 +911,7 @@ def view_init(self, elev=None, azim=None):
914911
'elev' stores the elevation angle in the z plane (in degrees).
915912
'azim' stores the azimuth angle in the (x, y) plane (in degrees).
916913
917-
if elev or azim are None (default), then the initial value
914+
if 'elev' or 'azim' are None (default), then the initial value
918915
is used which was specified in the :class:`Axes3D` constructor.
919916
"""
920917

@@ -944,14 +941,7 @@ def set_proj_type(self, proj_type):
944941
}, proj_type=proj_type)
945942

946943
def get_proj(self):
947-
"""
948-
Create the projection matrix from the current viewing position.
949-
950-
elev stores the elevation angle in the z plane
951-
azim stores the azimuth angle in the (x, y) plane
952-
953-
dist is the distance of the eye viewing point from the object point.
954-
"""
944+
"""Create the projection matrix from the current viewing position."""
955945
# chosen for similarity with the initial view before gh-8896
956946
pb_aspect = np.array([4, 4, 3]) / 3.5
957947

0 commit comments

Comments
 (0)
0