|
From: Andreas H. <li...@hi...> - 2012-10-12 14:53:21
|
>> > 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) Yes, that's it, Ben. Thanks! |