From e55008ee2b8f83963bd5bd05682b459f60a58924 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Sun, 19 Oct 2014 15:10:32 -0400 Subject: [PATCH] DOC/PEP8 : details related to PR #3433 --- doc/users/whats_new/plotting.rst | 5 +++++ lib/matplotlib/tests/test_axes.py | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 doc/users/whats_new/plotting.rst 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')