|
From: Benjamin R. <ben...@ou...> - 2012-10-12 12:55:31
|
On Fri, Oct 12, 2012 at 6:12 AM, Andreas Hilboll <li...@hi...> wrote: > > Hi, me again :) > > > > I'm looking for a way to have the xlabels on the top (instead of bottom), > > and the ylabels on the right (instead of left). I guess I could do > > something with twinx / twiny and just not use the left/bottom axis, but > > I'm sure there is some more elegant way ... > > I need to correct myself: I want the xticklabels / yticklabels to be on > top/right. > > I believe you are looking for tick_params(): http://matplotlib.org/api/axes_api.html?highlight=tick_param#matplotlib.axes.Axes.tick_params ax.tick_params(axis='x', labelbottom=False, labeltop=True) ax.tick_params(axis='y', labelleft=False, labelright=True) Cheers! Ben Root |