Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8f94462

Browse filesBrowse files
authored
Style fixes / improvements
1 parent 9d9d640 commit 8f94462
Copy full SHA for 8f94462

File tree

1 file changed

+14
-11
lines changed
Filter options

1 file changed

+14
-11
lines changed

‎lib/mpl_toolkits/mplot3d/art3d.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/mplot3d/art3d.py
+14-11Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -598,9 +598,9 @@ def set_3d_properties(self, zs, zdir):
598598
# Force the collection to initialize the face and edgecolors
599599
# just in case it is a scalarmappable with a colormap.
600600
self.update_scalarmappable()
601-
offsets = super().get_offsets()
601+
offsets2d = super().get_offsets()
602602
if len(offsets) > 0:
603-
xs, ys = offsets.T
603+
xs, ys = offsets2d.T
604604
else:
605605
xs = []
606606
ys = []
@@ -658,7 +658,8 @@ def set_offsets3d(self, offsets, zdir='z'):
658658
return _set_offsets3d(self, offsets, zdir)
659659

660660
def get_offsets3d(self):
661-
"""Return the 3d offsets for the collection.
661+
"""
662+
Return the 3d offsets for the collection.
662663
663664
Returns
664665
-------
@@ -850,14 +851,15 @@ def set_offsets3d(self, offsets, zdir='z'):
850851
----------
851852
offsets : (N, 3) or (3,) array-like
852853
The offsets to be set.
853-
zdir : {'x', 'y', 'z'}
854-
The axis in which to place the offsets. Default: 'z'.
854+
zdir : {'x', 'y', 'z'}, default: 'z'
855+
The axis in which to place the offsets.
855856
See `.get_dir_vector` for a description of the values.
856857
"""
857858
return _set_offsets3d(self, offsets, zdir)
858859

859860
def get_offsets3d(self):
860-
"""Return the 3d offsets for the collection.
861+
"""
862+
Return the 3d offsets for the collection.
861863
862864
Returns
863865
-------
@@ -1169,14 +1171,15 @@ def set_offsets3d(self, offsets, zdir='z'):
11691171
----------
11701172
offsets : (N, 3) or (3,) array-like
11711173
The offsets to be set.
1172-
zdir : {'x', 'y', 'z'}
1173-
The axis in which to place the offsets. Default: 'z'.
1174+
zdir : {'x', 'y', 'z'}, default: 'z'
1175+
The axis in which to place the offsets.
11741176
See `.get_dir_vector` for a description of the values.
11751177
"""
11761178
return _set_offsets3d(self, offsets, zdir)
11771179

11781180
def get_offsets3d(self):
1179-
"""Return the 3d offsets for the collection.
1181+
"""
1182+
Return the 3d offsets for the collection.
11801183
11811184
Returns
11821185
-------
@@ -1247,8 +1250,8 @@ def _set_offsets3d(col_3d, offsets, zdir='z'):
12471250
----------
12481251
offsets : (N, 3) or (3,) array-like
12491252
The offsets to be set.
1250-
zdir : {'x', 'y', 'z'}
1251-
The axis in which to place the offsets. Default: 'z'.
1253+
zdir : {'x', 'y', 'z'}, default: 'z'
1254+
The axis in which to place the offsets.
12521255
See `.get_dir_vector` for a description of the values.
12531256
"""
12541257
offsets = np.asanyarray(offsets)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.