From 7441bc2b94d5a2cc8c813253d26d029447806cab Mon Sep 17 00:00:00 2001 From: Nelle Varoquaux Date: Thu, 17 Jan 2019 19:03:22 -0800 Subject: [PATCH] Backport PR #13212: Updated the docstring for pyplot.figure to list floats as the type for figsize argument --- 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 32c858452eb2..731de096ac3a 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -429,7 +429,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 : (float, float), optional, default: None width, height in inches. If not provided, defaults to :rc:`figure.figsize` = ``[6.4, 4.8]``.