@@ -598,9 +598,9 @@ def set_3d_properties(self, zs, zdir):
598
598
# Force the collection to initialize the face and edgecolors
599
599
# just in case it is a scalarmappable with a colormap.
600
600
self .update_scalarmappable ()
601
- offsets = super ().get_offsets ()
601
+ offsets2d = super ().get_offsets ()
602
602
if len (offsets ) > 0 :
603
- xs , ys = offsets .T
603
+ xs , ys = offsets2d .T
604
604
else :
605
605
xs = []
606
606
ys = []
@@ -658,7 +658,8 @@ def set_offsets3d(self, offsets, zdir='z'):
658
658
return _set_offsets3d (self , offsets , zdir )
659
659
660
660
def get_offsets3d (self ):
661
- """Return the 3d offsets for the collection.
661
+ """
662
+ Return the 3d offsets for the collection.
662
663
663
664
Returns
664
665
-------
@@ -850,14 +851,15 @@ def set_offsets3d(self, offsets, zdir='z'):
850
851
----------
851
852
offsets : (N, 3) or (3,) array-like
852
853
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.
855
856
See `.get_dir_vector` for a description of the values.
856
857
"""
857
858
return _set_offsets3d (self , offsets , zdir )
858
859
859
860
def get_offsets3d (self ):
860
- """Return the 3d offsets for the collection.
861
+ """
862
+ Return the 3d offsets for the collection.
861
863
862
864
Returns
863
865
-------
@@ -1169,14 +1171,15 @@ def set_offsets3d(self, offsets, zdir='z'):
1169
1171
----------
1170
1172
offsets : (N, 3) or (3,) array-like
1171
1173
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.
1174
1176
See `.get_dir_vector` for a description of the values.
1175
1177
"""
1176
1178
return _set_offsets3d (self , offsets , zdir )
1177
1179
1178
1180
def get_offsets3d (self ):
1179
- """Return the 3d offsets for the collection.
1181
+ """
1182
+ Return the 3d offsets for the collection.
1180
1183
1181
1184
Returns
1182
1185
-------
@@ -1247,8 +1250,8 @@ def _set_offsets3d(col_3d, offsets, zdir='z'):
1247
1250
----------
1248
1251
offsets : (N, 3) or (3,) array-like
1249
1252
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.
1252
1255
See `.get_dir_vector` for a description of the values.
1253
1256
"""
1254
1257
offsets = np .asanyarray (offsets )
0 commit comments