diff options
-rw-r--r-- | doc/users/dflt_style_changes.rst | 4 | ||||
-rw-r--r-- | lib/matplotlib/ticker.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/users/dflt_style_changes.rst b/doc/users/dflt_style_changes.rst index 3d06a27b5..599c5ad13 100644 --- a/doc/users/dflt_style_changes.rst +++ b/doc/users/dflt_style_changes.rst @@ -416,6 +416,10 @@ By default, caps on the ends of errorbars are not present. demo(ax1, {'errorbar.capsize': 3}, 'classic') demo(ax2, {}, 'v2.0') +This also changes the return value of +:meth:`~matplotlib.axes.Axes.errorbar` as the list of 'caplines' will +be empty by default. + The previous defaults can be restored by setting:: mpl.rcParams['errorbar.capsize'] = 3 diff --git a/lib/matplotlib/ticker.py b/lib/matplotlib/ticker.py index 34bc85e27..5538f7ba7 100644 --- a/lib/matplotlib/ticker.py +++ b/lib/matplotlib/ticker.py @@ -950,7 +950,7 @@ class LogFormatter(Formatter): else: s = self.pprint_val(x, vmax - vmin) return s - + def __call__(self, x, pos=None): """ Return the format for tick val `x`. |