On Tue, Mar 30, 2010 at 2:10 PM, Gökhan Sever <gokhanse...@gmail.com> wrote: > On Tue, Mar 30, 2010 at 2:37 PM, Ryan May <rma...@gmail.com> wrote: >> You're looking for the set_ticks_position method on the xaxis (I've >> also tweaked setting the limits): >> >> plt.plot(xcoords, ycoords, 'ro') >> plt.xlim(0, maxX) >> plt.ylim(maxY, 0) >> ax = plt.gca() # Get current axes object >> ax.xaxis.set_ticks_position('top') >> plt.show() > > This is easier :) > > Could you get this one working ? > > ax.xaxis.set_ticks_position('both') > > It doesn't have an effect here on Qt4Agg using svn copy of matplotlib.
According to the docstring, it only puts ticks in both locations, not labels, which is what I'm seeing here on SVN with the PyGTK backend. Are you seeing something different? 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