From 3e97bcc233689184f39958df76fa3a89e8085ca8 Mon Sep 17 00:00:00 2001 From: RishabhSpark Date: Fri, 17 Feb 2023 00:40:50 +0530 Subject: [PATCH 1/4] layout none and compressed added in pyplot --- lib/matplotlib/pyplot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index 0915ba1c7b83..09377a3041ff 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -695,6 +695,7 @@ def figure(num=None, # autoincrement if None, else integer from 1-N frameon=True, FigureClass=Figure, clear=False, + layout=None, **kwargs ): """ @@ -739,7 +740,7 @@ def figure(num=None, # autoincrement if None, else integer from 1-N clear : bool, default: False If True and the figure already exists, then it is cleared. - layout : {'constrained', 'tight', `.LayoutEngine`, None}, default: None + layout : {'constrained', 'tight', 'compressed', `.LayoutEngine`, None}, default: None The layout mechanism for positioning of plot elements to avoid overlapping Axes decorations (labels, ticks, etc). Note that layout managers can measurably slow down figure display. Defaults to *None* From ba3dbc96f11e104f4108a7a32c18c8143887b516 Mon Sep 17 00:00:00 2001 From: RishabhSpark <76428571+RishabhSpark@users.noreply.github.com> Date: Fri, 17 Feb 2023 02:58:04 +0530 Subject: [PATCH 2/4] Update lib/matplotlib/pyplot.py Co-authored-by: Jody Klymak --- lib/matplotlib/pyplot.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index 09377a3041ff..e3f6a558a234 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -695,7 +695,6 @@ def figure(num=None, # autoincrement if None, else integer from 1-N frameon=True, FigureClass=Figure, clear=False, - layout=None, **kwargs ): """ From cf6bf27701717fcd6a6abd2058f78c257ee53d3c Mon Sep 17 00:00:00 2001 From: RishabhSpark Date: Fri, 17 Feb 2023 23:48:21 +0530 Subject: [PATCH 3/4] compressed added --- 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 e3f6a558a234..91ba4fd9db9a 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -739,7 +739,7 @@ def figure(num=None, # autoincrement if None, else integer from 1-N clear : bool, default: False If True and the figure already exists, then it is cleared. - layout : {'constrained', 'tight', 'compressed', `.LayoutEngine`, None}, default: None + layout : {'constrained', 'tight', 'compressed',`.LayoutEngine`, None}, default: None The layout mechanism for positioning of plot elements to avoid overlapping Axes decorations (labels, ticks, etc). Note that layout managers can measurably slow down figure display. Defaults to *None* From 7ffa4f135ad622a8b9dee6eb1b9476dc74a6bf98 Mon Sep 17 00:00:00 2001 From: RishabhSpark Date: Sun, 19 Feb 2023 22:53:23 +0530 Subject: [PATCH 4/4] fixed (89>88) error ig(?) --- lib/matplotlib/pyplot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index 91ba4fd9db9a..173aaf1e1441 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -739,7 +739,8 @@ def figure(num=None, # autoincrement if None, else integer from 1-N clear : bool, default: False If True and the figure already exists, then it is cleared. - layout : {'constrained', 'tight', 'compressed',`.LayoutEngine`, None}, default: None + layout : {'constrained', 'tight', 'compressed', \ + `.LayoutEngine`, None}, default: None The layout mechanism for positioning of plot elements to avoid overlapping Axes decorations (labels, ticks, etc). Note that layout managers can measurably slow down figure display. Defaults to *None*