From 7c3b6275888ab78f5774b6ea0647209c290627e1 Mon Sep 17 00:00:00 2001 From: hannah Date: Thu, 13 Oct 2022 16:52:39 -0400 Subject: [PATCH] add versioning directives, including empty + description Co-authored-by: melissawm Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> --- lib/matplotlib/axes/_axes.py | 7 +++++++ lib/mpl_toolkits/axes_grid1/parasite_axes.py | 3 +++ 2 files changed, 10 insertions(+) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 42891ce558c5..9c7f82bdd51a 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -2648,6 +2648,9 @@ def bar_label(self, container, labels=None, *, fmt="%g", label_type="edge", When *fmt* is a string and can be interpreted in both formats, %-style takes precedence over {}-style. + .. versionadded:: 3.7 + Support for {}-style format string and callables. + label_type : {'edge', 'center'}, default: 'edge' The label type. Possible values: @@ -3329,6 +3332,10 @@ def errorbar(self, x, y, yerr=None, xerr=None, sizes. By default, this draws the data markers/lines as well the errorbars. Use fmt='none' to draw errorbars without any data markers. + .. versionadded:: 3.7 + Caps and error lines are drawn in polar coordinates on polar plots. + + Parameters ---------- x, y : float or array-like diff --git a/lib/mpl_toolkits/axes_grid1/parasite_axes.py b/lib/mpl_toolkits/axes_grid1/parasite_axes.py index e2cff6d61993..f23971c5ad57 100644 --- a/lib/mpl_toolkits/axes_grid1/parasite_axes.py +++ b/lib/mpl_toolkits/axes_grid1/parasite_axes.py @@ -106,6 +106,9 @@ def get_aux_axes( Despite this method's name, this should actually be thought of as an ``add_parasite_axes`` method. + .. versionchanged:: 3.7 + Defaults to same base axes class as host axes. + Parameters ---------- tr : `~matplotlib.transforms.Transform` or None, default: None