Skip to content

Commit f5f779d

Browse files
committed
DOC: fix deprecation and tutorial
1 parent 0a8942d commit f5f779d

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

lib/matplotlib/colorbar.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ class _ColorbarMappableDummy(object):
309309
Private class to hold deprecated ColorbarBase methods that used to be
310310
inhereted from ScalarMappable.
311311
"""
312-
@cbook.deprecated("3.1", alternative="mappable.set_norm")
312+
@cbook.deprecated("3.1", alternative="ScalarMappable.set_norm")
313313
def set_norm(self, norm):
314314
"""
315315
`.colorbar.Colorbar.set_norm` does nothing; set the norm on

tutorials/colors/colorbar_only.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88
Customized Colorbars
99
====================
1010
11-
:class:`~matplotlib.colorbar.ColorbarBase` derives from
12-
:mod:`~matplotlib.cm.ScalarMappable` and puts a colorbar in a specified axes,
13-
so it has everything needed for a standalone colorbar. It can be used as-is to
14-
make a colorbar for a given colormap; it does not need a mappable object like
15-
an image. In this tutorial we will explore what can be done with standalone
16-
colorbar.
11+
`~matplotlib.colorbar.ColorbarBase` puts a colorbar in a specified axes,
12+
and can make a colorbar for a given colormap; it does not need a mappable
13+
object like an image. In this tutorial we will explore what can be done with
14+
standalone colorbar.
1715
1816
Basic continuous colorbar
1917
-------------------------

0 commit comments

Comments
 (0)