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

DOC: don't index or unpack the return value of pie#30799

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
timhoffm merged 1 commit intomatplotlib:mainfromrcomer:pie-return
Nov 29, 2025
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletionsgalleries/examples/misc/demo_agg_filter.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -269,19 +269,19 @@ def drop_shadow_patches(ax):
def light_filter_pie(ax):
fracs = [15, 30, 45, 10]
explode = (0.1, 0.2, 0.1, 0.1)
pies = ax.pie(fracs, explode=explode)
pie = ax.pie(fracs, explode=explode)

light_filter = LightFilter(9)
for p inpies[0]:
for p inpie.wedges:
p.set_agg_filter(light_filter)
p.set_rasterized(True) # to support mixed-mode renderers
p.set(ec="none",
lw=2)

gauss = DropShadowFilter(9, offsets=(3, -4), alpha=0.7)
shadow = FilteredArtistList(pies[0], gauss)
shadow = FilteredArtistList(pie.wedges, gauss)
ax.add_artist(shadow)
shadow.set_zorder(pies[0][0].get_zorder() - 0.1)
shadow.set_zorder(pie.wedges[0].get_zorder() - 0.1)


if __name__ == "__main__":
Expand Down
8 changes: 4 additions & 4 deletionsgalleries/examples/pie_and_polar_charts/bar_of_pie.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -25,8 +25,8 @@
explode = [0.1, 0, 0]
# rotate so that first wedge is split by the x-axis
angle = -180 * overall_ratios[0]
wedges, *_ = ax1.pie(overall_ratios, autopct='%1.1f%%', startangle=angle,
labels=labels, explode=explode)
pie = ax1.pie(overall_ratios, autopct='%1.1f%%', startangle=angle,
labels=labels, explode=explode)

# bar chart parameters
age_ratios = [.33, .54, .07, .06]
Expand All@@ -47,8 +47,8 @@
ax2.set_xlim(- 2.5 * width, 2.5 * width)

# use ConnectionPatch to draw lines between the two plots
theta1, theta2 = wedges[0].theta1, wedges[0].theta2
center, r = wedges[0].center, wedges[0].r
theta1, theta2 =pie.wedges[0].theta1,pie.wedges[0].theta2
center, r =pie.wedges[0].center,pie.wedges[0].r
bar_height = sum(age_ratios)

# draw top connecting line
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp