Skip to content

Simplify moving ticks-and-labels to top/right side #19362

@anntzer

Description

@anntzer

Problem

Currently, there are separate methods for moving the ticks and the label of an xaxis to the top or of an yaxis to the right (xaxis.tick_top(); xaxis.set_label_position("right")). I would argue that moving them together is much more common than moving them separately, and warrants a simpler API.

Proposed Solution

Support xaxis.tick_and_label_top() or xaxis.tick_top(move_label=True) or some better API that I haven't thought of yet. Let's collect suggestions here as a start :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions