From 21daa8079537cb5dc4902f258a9258ca842e7c2a Mon Sep 17 00:00:00 2001 From: James Adams Date: Thu, 17 Jan 2019 16:58:42 -0500 Subject: [PATCH 1/2] changed the docstring for figure to mention the proper type of values for the figsize argument (integer -> float) addresses matplotlib issue #13208 --- lib/matplotlib/pyplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index 0455ce333aed..ff77a1c7d5f5 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -432,7 +432,7 @@ def figure(num=None, # autoincrement if None, else integer from 1-N If num is a string, the window title will be set to this figure's `num`. - figsize : tuple of integers, optional, default: None + figsize : tuple of floats, optional, default: None width, height in inches. If not provided, defaults to :rc:`figure.figsize` = ``[6.4, 4.8]``. From 5f6f0966df3ba35eeb69490f06990b568e1b1aa1 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Thu, 17 Jan 2019 19:26:07 -0500 Subject: [PATCH 2/2] Update lib/matplotlib/pyplot.py explicit tuple in docstring for figsize argument of figure Co-Authored-By: monocongo --- lib/matplotlib/pyplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index ff77a1c7d5f5..1f81cd79293b 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -432,7 +432,7 @@ def figure(num=None, # autoincrement if None, else integer from 1-N If num is a string, the window title will be set to this figure's `num`. - figsize : tuple of floats, optional, default: None + figsize : (float, float), optional, default: None width, height in inches. If not provided, defaults to :rc:`figure.figsize` = ``[6.4, 4.8]``.