Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 070dfab

Browse files
Code review modifications
1 parent b98fc03 commit 070dfab

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

lib/mpl_toolkits/mplot3d/art3d.py

Lines 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)