Skip to content

Commit e227b50

Browse files
committed
Make _juggle_axes_vec and _rotate_axes_vec private
1 parent e955f56 commit e227b50

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/mpl_toolkits/mplot3d/art3d.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def set_3d_properties(self, zs=0, zdir='z'):
143143

144144
zs = np.broadcast_to(zs, len(xs))
145145
xyz = np.asarray([xs, ys, zs])
146-
self._verts3d = juggle_axes_vec(xyz, zdir)
146+
self._verts3d = _juggle_axes_vec(xyz, zdir)
147147
self.stale = True
148148

149149
@artist.allow_rasterization
@@ -173,7 +173,7 @@ def path_to_3d_segment(path, zs=0, zdir='z'):
173173
pathsegs = path.iter_segments(simplify=False, curves=False)
174174
for i, ((x, y), code) in enumerate(pathsegs):
175175
seg3d[0:2, i] = x, y
176-
seg3d = juggle_axes_vec(seg3d, zdir)
176+
seg3d = _juggle_axes_vec(seg3d, zdir)
177177
return seg3d.T
178178

179179

@@ -200,7 +200,7 @@ def path_to_3d_segment_with_codes(path, zs=0, zdir='z'):
200200
for i, ((x, y), code) in enumerate(pathsegs):
201201
seg3d[0:2, i] = x, y
202202
codes[i] = code
203-
seg3d = juggle_axes_vec(seg3d, zdir)
203+
seg3d = _juggle_axes_vec(seg3d, zdir)
204204
return seg3d.T, codes
205205

206206

@@ -294,7 +294,7 @@ def __init__(self, *args, zs=(), zdir='z', **kwargs):
294294
def set_3d_properties(self, verts, zs=0, zdir='z'):
295295
zs = np.broadcast_to(zs, len(verts))
296296
verts = np.hstack([verts, zs])
297-
self._segment3d = juggle_axes_vec(verts.T, zdir)
297+
self._segment3d = _juggle_axes_vec(verts.T, zdir)
298298
self._facecolor3d = Patch.get_facecolor(self)
299299

300300
def get_path(self):
@@ -399,7 +399,7 @@ def set_3d_properties(self, zs, zdir):
399399
# just in case it is a scalarmappable with a colormap.
400400
self.update_scalarmappable()
401401
offsets = np.vstack(self.get_offsets(), np.atleast_1d(zs))
402-
self._offsets3d = juggle_axes_vec(offsets, zdir)
402+
self._offsets3d = _juggle_axes_vec(offsets, zdir)
403403
self._facecolor3d = self.get_facecolor()
404404
self._edgecolor3d = self.get_edgecolor()
405405
self.stale = True
@@ -463,7 +463,7 @@ def set_3d_properties(self, zs, zdir):
463463
offsets = self.get_offsets()
464464
offsets = np.hstack([offsets,
465465
(np.ones(len(offsets)) * zs)[:, np.newaxis]])
466-
self._offsets3d = juggle_axes_vec(offsets, zdir).T
466+
self._offsets3d = _juggle_axes_vec(offsets, zdir).T
467467
self._facecolor3d = self.get_facecolor()
468468
self._edgecolor3d = self.get_edgecolor()
469469
self.stale = True
@@ -741,7 +741,7 @@ def juggle_axes(xs, ys, zs, zdir):
741741
return xs, ys, zs
742742

743743

744-
def juggle_axes_vec(xyz, zdir):
744+
def _juggle_axes_vec(xyz, zdir):
745745
"""
746746
Reorder coordinates so that 2D xs, ys can be plotted in the plane
747747
orthogonal to zdir. zdir is normally x, y or z. However, if zdir
@@ -752,7 +752,7 @@ def juggle_axes_vec(xyz, zdir):
752752
elif zdir == 'y':
753753
return xyz[[0, 2, 1]]
754754
elif zdir.startswith('-'):
755-
return rotate_axes_vec(xyz, zdir)
755+
return _rotate_axes_vec(xyz, zdir)
756756
else:
757757
return xyz
758758

@@ -775,7 +775,7 @@ def rotate_axes(xs, ys, zs, zdir):
775775
return xs, ys, zs
776776

777777

778-
def rotate_axes_vec(xyz, zdir):
778+
def _rotate_axes_vec(xyz, zdir):
779779
"""
780780
Reorder coordinates so that the axes are rotated with zdir along
781781
the original z axis. Prepending the axis with a '-' does the

0 commit comments

Comments
 (0)