Skip to content

Commit e55008e

Browse files
committed
DOC/PEP8 : details related to PR matplotlib#3433
1 parent e7717f7 commit e55008e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

doc/users/whats_new/plotting.rst

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Added center and frame kwargs to pie
2+
````````````````````````````````````
3+
4+
These control where the center of the pie graph are and if
5+
the Axes frame is shown.

lib/matplotlib/tests/test_axes.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -3398,21 +3398,20 @@ def test_pie_frame_grid():
33983398
# only "explode" the 2nd slice (i.e. 'Hogs')
33993399
explode = (0, 0.1, 0, 0)
34003400

3401-
34023401
plt.pie(sizes, explode=explode, labels=labels, colors=colors,
34033402
autopct='%1.1f%%', shadow=True, startangle=90,
34043403
wedgeprops={'linewidth': 0},
3405-
frame=True, center=(2,2))
3404+
frame=True, center=(2, 2))
34063405

34073406
plt.pie(sizes[::-1], explode=explode, labels=labels, colors=colors,
34083407
autopct='%1.1f%%', shadow=True, startangle=90,
34093408
wedgeprops={'linewidth': 0},
3410-
frame=True, center=(5,2))
3409+
frame=True, center=(5, 2))
34113410

34123411
plt.pie(sizes, explode=explode[::-1], labels=labels, colors=colors,
34133412
autopct='%1.1f%%', shadow=True, startangle=90,
34143413
wedgeprops={'linewidth': 0},
3415-
frame=True, center=(3,5))
3414+
frame=True, center=(3, 5))
34163415
# Set aspect ratio to be equal so that pie is drawn as a circle.
34173416
plt.axis('equal')
34183417

0 commit comments

Comments
 (0)