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 ...
Cheers, Andreas.
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
Ā·Ā·Ā·
On Fri, Oct 12, 2012 at 6:12 AM, Andreas Hilboll <lists@ā¦3067ā¦> 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.
> 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!