-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Remove 3D attributes from renderer #18302
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
Conversation
b111f1b
to
86d0fc1
Compare
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.
This does seem like it would work, but I do think it the special voodoo needs more comments to explain it.
ebac289
to
a61a68a
Compare
@WeatherGod I'm not sure if this answer it or not. This code: import matplotlib.pyplot as plt
import numpy as np
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1, projection='3d')
s = ax.plot_surface(np.ones((4,4)), np.ones((4,4)), np.ones((4,4)))
plt.draw()
s.do_3d_projection(fig.canvas.renderer) currently produces a warning:
|
# Then axes | ||
for axis in self._get_axis_list(): | ||
axis.draw(renderer) | ||
props3d = { |
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 add a note which of the following code can be removed once the deprecation expires.
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.
Basically all of it... Updated the comment.
All `Artist`s have a `.axes` attribute from which they can grab any of these things directly.
All internal Artists use `self.axes.*` instead.
a61a68a
to
a769837
Compare
PR Summary
There's no need to do so, as artists have
.axes
property from which they can get the same information. Since this is a weird internal undocumented draw thing, I'm not sure if it needs a deprecation/API note.PR Checklist