Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improve clarity for tick behavior explanation in FAQ#31531

Closed
srinagadurga3455 wants to merge 3 commits intomatplotlib:mainfrom
srinagadurga3455:improve-faq-explanation
Closed

Improve clarity for tick behavior explanation in FAQ#31531
srinagadurga3455 wants to merge 3 commits intomatplotlib:mainfrom
srinagadurga3455:improve-faq-explanation

Conversation

@srinagadurga3455
Copy link
Copy Markdown

PR summary

  • Added a simple explanation to clarify why tick behavior may appear unexpected when using strings.
  • Helps beginners understand that Matplotlib treats strings as categorical values.

Why this change?

The existing explanation is technically correct but may be difficult for beginners to grasp quickly.

Changes made

  • Added a beginner-friendly explanation after the existing paragraph.

@github-actions github-actions Bot added the Documentation: user guide files in galleries/users_explain or doc/users label Apr 19, 2026
Comment thread doc/users/faq.rst
.. _how-to-too-many-ticks:

Why do I have so many ticks, and/or why are they out of order?
In simple terms, this happens because Matplotlib treats strings as categories instead of numeric values. As a result, the axis may display ticks in an unexpected order or show too many ticks.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry but I'm not sure what this adds compared with the explanation below. Also, the dashed lines denote that the question is a title, and we do not want to make the answer part of the title.

@rcomer rcomer closed this Apr 19, 2026
@melissawm melissawm added the ai-contribution PRs that are AI generated without a human in the loop label Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-contribution PRs that are AI generated without a human in the loop Documentation: user guide files in galleries/users_explain or doc/users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants