Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cf9a943

Browse filesBrowse files
committed
updated docs with colorizer changes
1 parent 0aa212a commit cf9a943
Copy full SHA for cf9a943

File tree

5 files changed

+24
-1
lines changed
Filter options

5 files changed

+24
-1
lines changed

‎doc/api/colorizer_api.rst

Copy file name to clipboard
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*****************
2+
``matplotlib.colorizer``
3+
*****************
4+
5+
.. automodule:: matplotlib.colorizer
6+
:members:
7+
:undoc-members:
8+
:show-inheritance:
9+
:private-members: _ColorizerInterface

‎doc/api/index.rst

Copy file name to clipboardExpand all lines: doc/api/index.rst
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ Alphabetical list of modules:
9494
cm_api.rst
9595
collections_api.rst
9696
colorbar_api.rst
97+
colorizer_api.rst
9798
colors_api.rst
9899
container_api.rst
99100
contour_api.rst
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ScalarMappable changed to ColorizingArtist
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
Classes that used to inherit from `cm.ScalarMappable` now inherit from
5+
`colorizer.ColorizingArtist` instead. All the existing attributes on
6+
`cm.ScalarMappable` are available on the equivalent `colorizer.ColorizingArtist`
7+
but type checks for `cm.ScalarMappable` will fail.

‎lib/matplotlib/colorizer.py

Copy file name to clipboardExpand all lines: lib/matplotlib/colorizer.py
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
The Colorizer class which handles the data to color pipeline via a
33
normalization and a colormap.
44
5+
.. admonition:: Provisional status of colorizer
6+
7+
The ``colorizer`` module and classes in this file are considered provisional and may change
8+
at any time without a deprecation period.
9+
510
.. seealso::
611
712
:doc:`/gallery/color/colormap_reference` for a list of builtin colormaps.

‎lib/matplotlib/tests/test_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_axes.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9273,7 +9273,8 @@ def test_boxplot_orientation(fig_test, fig_ref):
92739273
ax_test.boxplot(all_data, orientation='horizontal')
92749274

92759275

9276-
@image_comparison(["use_colorizer_keyword.png"])
9276+
@image_comparison(["use_colorizer_keyword.png"],
9277+
tol=0.05 if platform.machine() == 'arm64' else 0)
92779278
def test_use_colorizer_keyword():
92789279
# test using the colorizer keyword
92799280
np.random.seed(0)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.