Skip to content

[Doc]: Consolidate docs for moving ticks and axes labels to the top & right #31723

@anntzer

Description

@anntzer

Documentation Link

No response

Problem

Currently, moving ticks and tick labels to the axes top or right is demo'ed at https://matplotlib.org/stable/gallery/ticks/tick_xlabel_top.html and https://matplotlib.org/stable/gallery/ticks/tick_label_right.html, which should probably be consolidated together. From a quick check, moving the axes label to the top or right is not actually demo'ed anywhere, except as a side point in https://matplotlib.org/stable/gallery/text_labels_and_annotations/titles_demo.html (regarding how an xlabel at the top interacts with title autopositioning).

Suggested improvement

At least the "xtick & xticklabel on the top" example and the "ytick and yticklabel on the right" example should be merged, and an example for moving axes labels should be added. While these are technically different concepts (axes labels are unrelated to tick positioning), in practice I would expect that both tasks are often coupled, so I would suggest making a single example that demo'es everything together.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions