diff --git a/doc/users/whats_new/plotting.rst b/doc/users/whats_new/plotting.rst new file mode 100644 index 000000000000..18df08d905cc --- /dev/null +++ b/doc/users/whats_new/plotting.rst @@ -0,0 +1,5 @@ +Added center and frame kwargs to pie +```````````````````````````````````` + +These control where the center of the pie graph are and if +the Axes frame is shown. diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py index b8d8c1ce5e4b..bbd6d9faf47c 100644 --- a/lib/matplotlib/tests/test_axes.py +++ b/lib/matplotlib/tests/test_axes.py @@ -3398,21 +3398,20 @@ def test_pie_frame_grid(): # only "explode" the 2nd slice (i.e. 'Hogs') explode = (0, 0.1, 0, 0) - plt.pie(sizes, explode=explode, labels=labels, colors=colors, autopct='%1.1f%%', shadow=True, startangle=90, wedgeprops={'linewidth': 0}, - frame=True, center=(2,2)) + frame=True, center=(2, 2)) plt.pie(sizes[::-1], explode=explode, labels=labels, colors=colors, autopct='%1.1f%%', shadow=True, startangle=90, wedgeprops={'linewidth': 0}, - frame=True, center=(5,2)) + frame=True, center=(5, 2)) plt.pie(sizes, explode=explode[::-1], labels=labels, colors=colors, autopct='%1.1f%%', shadow=True, startangle=90, wedgeprops={'linewidth': 0}, - frame=True, center=(3,5)) + frame=True, center=(3, 5)) # Set aspect ratio to be equal so that pie is drawn as a circle. plt.axis('equal')