Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
ENH: add long_axis property to colorbar#27167
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
lib/matplotlib/colorbar.py Outdated
| @property | ||
| deflong_axis(self): | ||
| """Axis that has decorations (ticks etc) on it.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
comma before etc.
anntzer left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Looks fine to me; we could consider replacing all internal uses of _long_axis() by the public long_axis but there's no urgency to do that.
jklymak commentedOct 24, 2023
I think I replaced all the _long_axis calls. |
timhoffm commentedOct 24, 2023
Can we please still have a short discussion on naming? See#26896 (comment) |
story645 left a comment• edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Blocking to prevent accidental merge until this is discussed per@timhoffm's comments
I don't love value or color cause those are the fill values of the colorbar (texture could be added instead of color) and not exactly the axis of the bar frame.
story645 left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Forgot to actually select request changes 🤦♀️
timhoffm commentedSep 20, 2024
Let's move this forward. I still favor
But if not, let's not hold this up longer. |
timhoffm left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I'd favor to switch todata_axis. But if you don't follow that argumentlong_axis is still ok.
@jklymak please decide yourself and merge afterwards.
timhoffm commentedOct 28, 2024
@jklymak should we drop this still into 3.10? |
TST: check long axis correct
de0ce33 tofecdb54Comparejklymak commentedOct 28, 2024
I'm going to go ahead and merge. Thanks for the ping. I still prefer "long axis" ;-) |
36daea4 intomatplotlib:mainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
PR summary
As discussed in#26896 exposing a long_axis property for colorbar.
PR checklist