On Tue, Mar 30, 2010 at 2:37 PM, Ryan May <rmay31@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()

Ryan


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.

--
Gökhan