Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
jklymak merged 4 commits intomatplotlib:mainfromjklymak:enh-expose-long-axis
Oct 28, 2024

Conversation

@jklymak
Copy link
Member

@jklymakjklymak commentedOct 22, 2023
edited
Loading

PR summary

As discussed in#26896 exposing a long_axis property for colorbar.

PR checklist


@property
deflong_axis(self):
"""Axis that has decorations (ticks etc) on it."""
Copy link
Contributor

Choose a reason for hiding this comment

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

comma before etc.

Copy link
Contributor

@anntzeranntzer left a 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
Copy link
MemberAuthor

I think I replaced all the _long_axis calls.

@timhoffm
Copy link
Member

Can we please still have a short discussion on naming? See#26896 (comment)

Copy link
Member

@story645story645 left a comment
edited
Loading

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
story645 previously requested changesOct 24, 2023
Copy link
Member

@story645story645 left a 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
Copy link
Member

Let's move this forward. I still favordata_axis because it captures the semantic information aspect rather than just geometry. I'd be happy if you would see a value in switching to that.

I just started to likedata_axis. Whiledata is a very generic term and should usually be avoided, maybe we actually want that generic aspect here. We don't need to focus on the exact type of data (one can think label, color, numeric value as one likes).data generically captures thesemantic information aspect, contrasting from the othernon-data axis.

But if not, let's not hold this up longer.

@timhoffmtimhoffm dismissedstory645’sstale reviewSeptember 20, 2024 13:32

Naming is being discussed.

Copy link
Member

@timhoffmtimhoffm left a 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
Copy link
Member

@jklymak should we drop this still into 3.10?

@jklymak
Copy link
MemberAuthor

I'm going to go ahead and merge. Thanks for the ping. I still prefer "long axis" ;-)

timhoffm reacted with thumbs up emoji

@jklymakjklymak merged commit36daea4 intomatplotlib:mainOct 28, 2024
43 checks passed
@jklymakjklymak deleted the enh-expose-long-axis branchOctober 28, 2024 17:21
@QuLogicQuLogic added this to thev3.10.0 milestoneOct 28, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@anntzeranntzeranntzer approved these changes

@timhoffmtimhoffmtimhoffm approved these changes

@story645story645story645 left review comments

Assignees

No one assigned

Projects

None yet

Milestone

v3.10.0

Development

Successfully merging this pull request may close these issues.

5 participants

@jklymak@timhoffm@story645@anntzer@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp