On Tue, Apr 20, 2010 at 8:58 AM, Nikolaus Rath <nikol...@rath.org> wrote: > Hello, > > I'm trying to plot something from 0 to 2pi: > > fig = plt.figure() > ax = fig.add_subplot(111) > ax.set_title('Radial Magnetic Field') > ax.set_ylabel(r'Poloidal Angle $\theta$') > ax.set_xlabel(r'Toroidal Angle $\phi$') > > ax.set_xticks([0, 2 * math.pi]) > ax.set_xticklabels(['0', r'$2\pi$']) > ax.set_yticklabels([r'$-\pi$', r'$\pi$']) > ax.set_yticks([-math.pi, math.pi]) > > ax.set_xlim(xmin=0, xmax=2 * math.pi) > ax.set_ylim(ymin= -math.pi, ymax=math.pi)
I don't see the problem here, I get the ticks as specified. What version of matplotlib are you using? What backend are you using? Ryan -- Ryan May Graduate Research Assistant School of Meteorology University of Oklahoma ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users