[Doc]: Explain ephemeral nature of ticks and tick_params vs. the properties of individual ticks · Issue #31697 · matplotlib/matplotlib · GitHub
Skip to content

[Doc]: Explain ephemeral nature of ticks and tick_params vs. the properties of individual ticks #31697

Description

@timhoffm

Documentation Link

https://matplotlib.org/devdocs/users/explain/axes/axes_ticks.html

Problem

A concise description of the nature / lifetime of ticks is missing, which would explain why tick_params should be used instead of modifiing individual tick instances.

Suggested improvement

The axis tick guide should have an extra section explaining

  • ticks are regenerated / reused
  • default tick properties for that come from tick_params
  • tick_params should be prefered for configurarion / styling if possible.
  • Some rare cases still require a fallback to working with the indivudal ticks or their constituent Artist (line, label, gridline). In that case users must know about the limitations (e.g. when ticks are modified) and whether that's relvant for their plot.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions