From fad4184f168843dbdd6bc3f9da2c3c432dc7d2f3 Mon Sep 17 00:00:00 2001 From: Alissa Date: Mon, 10 Apr 2023 15:11:32 -0400 Subject: [PATCH 1/3] Update autoscaling documentation --- galleries/users_explain/axes/autoscale.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/galleries/users_explain/axes/autoscale.py b/galleries/users_explain/axes/autoscale.py index fef68f2515d9..bbd4494dc1b4 100644 --- a/galleries/users_explain/axes/autoscale.py +++ b/galleries/users_explain/axes/autoscale.py @@ -29,12 +29,14 @@ # %% # Margins # ------- -# The default margin around the data limits is 5%: +# The default margin around the data limits is 5%, which is based on the default +# configuration setting of rcParam: print(ax.margins()) # %% -# The margins can be made larger using `~matplotlib.axes.Axes.margins`: +# The margin size can be overridden to make them smaller or larger using +# `~matplotlib.axes.Axes.margins`: fig, ax = plt.subplots() ax.plot(x, y) From 2934e3463ee23e27232633b6b45b18972874beb8 Mon Sep 17 00:00:00 2001 From: Alissa Hodge Date: Wed, 12 Apr 2023 00:08:03 -0400 Subject: [PATCH 2/3] Update galleries/users_explain/axes/autoscale.py Co-authored-by: Elliott Sales de Andrade --- galleries/users_explain/axes/autoscale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galleries/users_explain/axes/autoscale.py b/galleries/users_explain/axes/autoscale.py index bbd4494dc1b4..8455d09ced73 100644 --- a/galleries/users_explain/axes/autoscale.py +++ b/galleries/users_explain/axes/autoscale.py @@ -30,7 +30,7 @@ # Margins # ------- # The default margin around the data limits is 5%, which is based on the default -# configuration setting of rcParam: +# configuration setting of :rc:`axes.xmargin`, :rc:`axes.ymargin`, and :rc:`axes.zmargin`: print(ax.margins()) From 4829be77ae20d18c00e11c8a05c273012b1f651b Mon Sep 17 00:00:00 2001 From: Alissa Date: Wed, 12 Apr 2023 17:02:28 -0400 Subject: [PATCH 3/3] wrapped text to ensure lint checks passed --- galleries/users_explain/axes/autoscale.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/galleries/users_explain/axes/autoscale.py b/galleries/users_explain/axes/autoscale.py index 8455d09ced73..a9d6b728866c 100644 --- a/galleries/users_explain/axes/autoscale.py +++ b/galleries/users_explain/axes/autoscale.py @@ -29,8 +29,9 @@ # %% # Margins # ------- -# The default margin around the data limits is 5%, which is based on the default -# configuration setting of :rc:`axes.xmargin`, :rc:`axes.ymargin`, and :rc:`axes.zmargin`: +# The default margin around the data limits is 5%, which is based on the +# default configuration setting of :rc:`axes.xmargin`, :rc:`axes.ymargin`, +# and :rc:`axes.zmargin`: print(ax.margins()) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy