From c9ec54b2f0bf9b61c58f6fb6236c149cf023b2fc Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Mon, 15 Apr 2019 12:44:54 +0200 Subject: [PATCH] Fix typo in code example in docstring. --- lib/matplotlib/colorbar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/colorbar.py b/lib/matplotlib/colorbar.py index 93125b23bb5b..cc873c26cc9f 100644 --- a/lib/matplotlib/colorbar.py +++ b/lib/matplotlib/colorbar.py @@ -150,7 +150,7 @@ Note that one can create a `ScalarMappable` "on-the-fly" to generate colorbars not attached to a previously drawn artist, e.g. :: - fig.colorbar(cm.ScalarMappable(norm=norm, cmap=cmap, ax=ax)) + fig.colorbar(cm.ScalarMappable(norm=norm, cmap=cmap), ax=ax) cax : :class:`~matplotlib.axes.Axes` object, optional Axes into which the colorbar will be drawn.