Skip to content

[MNT]: Only a subset of attributes set via Axes.tick_params() are accessible via public methods and attributes #23603

@stefmolin

Description

@stefmolin

Summary

Only a subset of attributes set via Axes.tick_params() are accessible via public methods and attributes. For example, pad is accessible via get_pad() on a Tick object, but if you want the width you have to access a private member _width. When building on top of Matplotlib, writing a test can sometimes require accessing these attributes to test the code, but ideally, we wouldn't need to access private members. For the use case that came up, this isn't a big deal as I was able to switch to get_pad() for the test, but I was surprised there was no get_width() method like with other parts of the API.

Proposed fix

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions