Skip to content

[question] Why only major minor grid #17866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
stheid opened this issue Jul 9, 2020 · 4 comments
Closed

[question] Why only major minor grid #17866

stheid opened this issue Jul 9, 2020 · 4 comments

Comments

@stheid
Copy link

stheid commented Jul 9, 2020

discussion related to #11773

image
I am trying to plot something with week days.

  • major tick monday
  • minor tick workweek
  • third level all days. (dashed)

Question

Why is it constrained to minor and major and will there ever be plans to allow more flexibility?

@timhoffm
Copy link
Member

timhoffm commented Jul 9, 2020

In the early days, Matplotlib was modeled after MATLAB, which uses the major/minor pattern.

I agree that this is an unnecessary limitation. There is a rough idea floating for rewriting the Axis/Tick/Grid logic, which then also would allow arbitrary levels. But that'd be a major endeavor and likely not happening and time soon.

@stheid
Copy link
Author

stheid commented Jul 9, 2020

"major endeavor" :D

Thanks for the feedback. Historic decisions ...

@stheid stheid closed this as completed Jul 9, 2020
@jklymak
Copy link
Member

jklymak commented Jul 9, 2020

What would the API for this even be? Ive never seen a plot with three levels of grids or tick marks, so this seems very specialized. If I wanted something like that, I would just do it by hand with axhline and axvline calls.

@stheid
Copy link
Author

stheid commented Jul 10, 2020

see my example. In date scenarios this makes definetly sense to show multiple granularieties to allow for better coloring or so on. Of course i could program that on my one using axhline and so on, but why do i have a library when i program everything myself. I am not a C programmer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants