File tree 1 file changed +6
-7
lines changed
Filter options
1 file changed +6
-7
lines changed
Original file line number Diff line number Diff line change @@ -1247,7 +1247,7 @@ def _set_offsets3d(col_3d, offsets, zdir='z'):
1247
1247
Set the 3d offsets for the collection.
1248
1248
1249
1249
.. note::
1250
-
1250
+
1251
1251
Since 3D collections have no common 3D base class, this function
1252
1252
factors out the common code for ``set_offests3d()`` methods.
1253
1253
@@ -1272,20 +1272,19 @@ def _set_offsets3d(col_3d, offsets, zdir='z'):
1272
1272
def _get_offsets3d (col3d ):
1273
1273
"""
1274
1274
Return the offsets for the collection.
1275
-
1275
+
1276
1276
.. note::
1277
-
1277
+
1278
1278
Since 3D collections have no common 3D base class, this function
1279
1279
factors out the common code for ``get_offests3d()`` methods.
1280
-
1280
+
1281
1281
Usage pattern::
1282
-
1282
+
1283
1283
def get_offsets3d(self):
1284
1284
return _get_offsets3d(self)
1285
1285
1286
1286
"""
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
1289
1288
1290
1289
1291
1290
def _zalpha (colors , zs ):
You can’t perform that action at this time.
0 commit comments