How can I make a 3D plot without showing the axes?
When plotting a 3d plot, Matplotlib not only draws the x, y, and z axes, it draws light gray grids on the x-y, y-z, and x-z planes. I would like to draw a "free-floating" 3D plot, with none of these elements.
Stuff I've tried:
# Doesn't work; this hides the plot, not the axes
my_3d_axes.set_visible(False)
# Doesn't do anything. Also, there's no get_zaxis() function.
my_3d_axes.get_xaxis().set_visible(False)
my_3d_axes.get_yaxis().set_visible(False)
my_3d_axes.set_visible(False)
that use to work, if I recall correctly. (Which is rather counter-intuitive, actually. It hides the entire plot for 2D plots, which is why they changed it to be the same for 3D plots.) – Joe Kington Sep 7 '11 at 18:20ax.w_xaxis
,ax.w_yaxis
, andax.w_zaxis
. Setting these to be invisible won't help, though. – Joe Kington Sep 7 '11 at 18:241.0.1
... It's probably worth reporting as a bug. – Joe Kington Sep 7 '11 at 19:06