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 properties position_centers and tops to BarContainer#30226

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

Open
timhoffm wants to merge1 commit intomatplotlib:main
base:main
Choose a base branch
Loading
fromtimhoffm:barcontainer_props

Conversation

timhoffm
Copy link
Member

@timhoffmtimhoffm commentedJun 29, 2025
edited
Loading

These will be useful if one wants to put additional things on the bars.

Noted in#30224 (comment), which this will simplify because instad of

defcenter_top(rect):returnrect.xy[0]+rect.get_width()/2,rect.xy[1]+rect.get_height()xy=np.array([center_top(r)forrincontainer.patches])ax.errorbar(xy[:,0],xy[:,1],yerr=yerr)

we can then simply do

ax.errorbar(container.position_centers,container.tops,yerr=yerr)

Naming: The naming has to work for horizontal and vertical bars.

@timhoffmtimhoffm added this to thev3.11.0 milestoneJun 29, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v3.11.0
Development

Successfully merging this pull request may close these issues.

1 participant
@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp