Skip to content

A better answer about "How I rotate tick labels" #108

@camel712

Description

@camel712

The cheatsheets comment the method "ax.set_[xy]ticks(rotation=90)" to rotate ticks. However, it can cause confusion because the parameter "takes effect only if you pass labels"(official tutorial of ax.set_[xy]ticks(). So this is a incomplete form and not recommended.
As the official tutorial says, I suggest ax.tick_params(axis='x', rotation=90).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions