Skip to content

ticks rotation does not work sometimes #420

Open
@kinyatoride

Description

@kinyatoride

Description

Hi, thanks for your great work as always.

I found that tick rotation does not work sometimes.

Steps to reproduce

import numpy as np
import proplot as pplt

fig, ax = pplt.subplots()

ax.format(
    xlim=(0, 20), xlocator=np.arange(0, 20, 2),
    xrotation=90,
)

test1

The tick label 10 is not rotated in this case.

Equivalent steps in matplotlib

import numpy as np
import matplotlib.pyplot as plt

fig, ax = plt.subplots()

ax.set_xlim(0, 20)
plt.xticks(np.arange(0, 20, 2), rotation=90)

test2

Proplot version

3.4.3
0.9.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions