Hi, I was struggling with the same problem since 2 days. But today I found
the solution here:
#When you use the method
#it doesn't put ticks to your 3d plot, instead puts ticst to 2D canvas.
#When you use Axes3D, I understand that you should use:
#to set axis properties. However if you try:
#screws up the plot. Instead you can use this, which worked perfect with
matplotlib 1.0 for me.
import matplotlib.ticker as ticker
Mark B. wrote:
> Hello list, I am trying to set ticks on an Axes3D plot.
> What I really want is, actually, not to have any ticks.
> For a 2D plot I set the ticks to an empty list.
> But in a 3D plot, I cannot set any ticks whatsover.
> At least not with a sequence.
> Any thoughts?
> from mpl_toolkits.mplot3d import Axes3D
> fig = figure()
> ax = Axes3D(fig)
> # Now I want to set ticks:
> # ax.set_xticks([.2,.3,.4]) # changes the scale of the figure, but not the
> And the plot has ticks at .2 .4 .6 .8 on the x-axis.
> Thanks for any help,
View this message in context: http://old.nabble.com/setting-ticks-on-Axes3D-tp27012587p29601789.html
Sent from the matplotlib - users mailing list archive at Nabble.com.