|
From: Friedrich R. <fri...@gm...> - 2010-07-31 07:29:15
|
2010/7/29 Simon Friedberger <sim...@a-...>:
> For some magical reason when I set the ticks_position to none, setting
> the label_position to 'top' is ignored.
> Did you try this? Is it another command arrangement thing?
>
> On 09:26 Thu 29.07.10, Friedrich Romstedt wrote:
>> axis.set_label_position('top')
>> axis.set_ticks_position('none')
No, I didn't try, it was just a collection of commands, but I was
wrong: .set_label_position() refers to the axis label, this is the
single string labeling all the ticks with their "labels", e.g. "This
is $x$ axis.".
What you will want to use is .set_tick_params(top=True,
labeltop=False, labelbottom=False) .
(But I didn't try this either. :-) set_ticks_position() is just a
shorthand for .set_tick_params().
Friedrich
|