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 070dfab

Browse filesBrowse files
Code review modifications
1 parent b98fc03 commit 070dfab
Copy full SHA for 070dfab

File tree

1 file changed

+6
-7
lines changed
Filter options

1 file changed

+6
-7
lines changed

‎lib/mpl_toolkits/mplot3d/art3d.py

Copy file name to clipboardExpand all lines: lib/mpl_toolkits/mplot3d/art3d.py
+6-7Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ def _set_offsets3d(col_3d, offsets, zdir='z'):
12471247
Set the 3d offsets for the collection.
12481248
12491249
.. note::
1250-
1250+
12511251
Since 3D collections have no common 3D base class, this function
12521252
factors out the common code for ``set_offests3d()`` methods.
12531253
@@ -1272,20 +1272,19 @@ def _set_offsets3d(col_3d, offsets, zdir='z'):
12721272
def _get_offsets3d(col3d):
12731273
"""
12741274
Return the offsets for the collection.
1275-
1275+
12761276
.. note::
1277-
1277+
12781278
Since 3D collections have no common 3D base class, this function
12791279
factors out the common code for ``get_offests3d()`` methods.
1280-
1280+
12811281
Usage pattern::
1282-
1282+
12831283
def get_offsets3d(self):
12841284
return _get_offsets3d(self)
12851285
12861286
"""
1287-
# Default to zeros in the no-offset (None) case
1288-
return np.zeros((1, 3)) if col3d._offsets3d is None else col3d._offsets3d
1287+
return col3d._offsets3d
12891288

12901289

12911290
def _zalpha(colors, zs):

0 commit comments

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