Skip to content

Moving the ticks to the top or to the right resets tick format #3921

Closed as not planned
@eyurtsev

Description

@eyurtsev

Moving the ticks to the top or to the right resets tick formatting (e.g., font size, rotation).

xticks(range(5), rotation=90, size='xx-large')
gca().xaxis.tick_top()

yticks(range(5), rotation=90, size='xx-large')
gca().yaxis.tick_right()

Hence, the following two segments give different results:

xticks(range(5), rotation=90, size='xx-large')
gca().xaxis.tick_top() # not rotated 

and

gca().xaxis.tick_top()
xticks(range(5), rotation=90, size='xx-large') # rotated and xx-large font size

matplotlib version 1.4.2

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions