10000 API/DOC: add documentation for new exceptions · matplotlib/matplotlib@a9cad4a · GitHub
[go: up one dir, main page]

Skip to content

Commit a9cad4a

Browse files
committed
API/DOC: add documentation for new exceptions
1 parent 1b87afa commit a9cad4a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
`ColorBar` raises TypeError rather than ignore user input
2+
`````````````````````````````````````````````````````````
3+
4+
In ``__init__`` `ColorBar` ignores user supplied ``cmap`` and ``norm``
5+
keyword arguments in favor of retrieving those values from the
6+
``mappable`` passed in. If those keywords are supplied `ColorBar`
7+
will now raise a `TypeError` rather than silently drop user supplied
8+
input.
9+
10+
If ``mappable`` is a `contouer.ContourSet` then a `TypeError` will be raised
11+
if the user provides any of
12+
``('alpha', 'boundaries', 'values', 'extend', 'ticks', 'filled')``

0 commit comments

Comments
 (0)
0