-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Deprecate internal functions exposed in the public API of mplot3d #13030
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
ae83f2c
8147734
e4a983f
4bc0e4a
a55a4ea
661deec
9f11f64
f406cc1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Deprecations | ||
```````````` | ||
|
||
Multiple internal functions that were exposed as part of the public API | ||
of ``mpl_toolkits.mplot3d`` are deprecated. | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1030,7 +1030,7 @@ def get_proj(self): | |
|
||
self.eye = E | ||
self.vvec = R - E | ||
self.vvec = self.vvec / proj3d.mod(self.vvec) | ||
self.vvec = self.vvec / proj3d._mod(self.vvec) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is going to conflict with #13020. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll rebase #13020 on top of this after this is merged. |
||
|
||
if abs(relev) > np.pi/2: | ||
# upside down | ||
|
@@ -1216,8 +1216,8 @@ def _on_move(self, event): | |
# get the x and y pixel coords | ||
if dx == 0 and dy == 0: | ||
return | ||
self.elev = art3d.norm_angle(self.elev - (dy/h)*180) | ||
self.azim = art3d.norm_angle(self.azim - (dx/w)*180) | ||
self.elev = art3d._norm_angle(self.elev - (dy/h)*180) | ||
self.azim = art3d._norm_angle(self.azim - (dx/w)*180) | ||
self.get_proj() | ||
self.stale = True | ||
self.figure.canvas.draw_idle() | ||
|
@@ -1768,8 +1768,8 @@ def _shade_colors(self, color, normals, lightsource=None): | |
# chosen for backwards-compatibility | ||
lightsource = LightSource(azdeg=225, altdeg=19.4712) | ||
|
||
shade = np.array([np.dot(n / proj3d.mod(n), lightsource.direction) | ||
if proj3d.mod(n) else np.nan | ||
shade = np.array([np.dot(n / proj3d._mod(n), lightsource.direction) | ||
if proj3d._mod(n) else np.nan | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Going to conflict with #13020 |
||
for n in normals]) | ||
mask = ~np.isnan(shade) | ||
|
||
|
@@ -2376,7 +2376,7 @@ def bar(self, left, height, zs=0, zdir='z', *args, **kwargs): | |
verts = [] | ||
verts_zs = [] | ||
for p, z in zip(patches, zs): | ||
vs = art3d.get_patch_verts(p) | ||
vs = art3d._get_patch_verts(p) | ||
verts += vs.tolist() | ||
verts_zs += [z] * len(vs) | ||
art3d.patch_2d_to_3d(p, z, zdir) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please list them all.