Hi, I was struggling with the same problem since 2 days. But today I found the solution here:
http://efreedom.com/Question/1-2195983/Matplotlib-Formatting-Dates-Axis-3D-Bar-Graph #When you use the method ax.set_xtics #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: ax.w_xaxis ax.w_yaxis ax.w_zaxis #to set axis properties. However if you try: ax.w_xaxis.set_ticks(arrayOfTicks) #screws up the plot. Instead you can use this, which worked perfect with matplotlib 1.0 for me. import matplotlib.ticker as ticker ax.w_xaxic.set_major_locator(ticker.FixedLocator(arrayOfTicks)) Cheers Cenk 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) > > ax.plot([0,1],[0,1],[0,1]) > > # Now I want to set ticks: > > ax.set_xticks([]) > > # ax.set_xticks([.2,.3,.4]) # changes the scale of the figure, but not the > ticks > > show() > > And the plot has ticks at .2 .4 .6 .8 on the x-axis. > > Thanks for any help, > > Mark > > -- 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. ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users