File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Change in the ``draw_image `` backend API
2+ ----------------------------------------
3+
4+ The ``draw_image `` method implemented by backends has changed its interface.
5+
6+ This change is only relevant if the backend declares that it is able
7+ to transform images by returning ``True `` from ``option_scale_image ``.
8+ See the ``draw_image `` docstring for more information.
Original file line number Diff line number Diff line change 1+ Improved image support
2+ ----------------------
3+
4+ Prior to version 2.0, matplotlib resampled images by first applying
5+ the color map and then resizing the result. Since the resampling was
6+ performed on the colored image, this introduced colors in the output
7+ image that didn't actually exist in the color map. Now, images are
8+ resampled first (and entirely in floating-point, if the input image is
9+ floating-point), and then the color map is applied.
10+
11+ In order to make this important change, the image handling code was
12+ almost entirely rewritten. As a side effect, image resampling uses
13+ less memory and fewer datatype conversions than before.
14+
15+ The experimental private feature where one could "skew" an image by
16+ setting the private member ``_image_skew_coordinate `` has been
17+ removed. Instead, images will obey the transform of the axes on which
18+ they are drawn.
Original file line number Diff line number Diff line change @@ -19,10 +19,20 @@ Configuration (rcParams)
1919| `svg.hashsalt` | see note |
2020+----------------------------+--------------------------------------------------+
2121
22- ``svg.hashsalt ``
23- ````````````````
22+ Added ``svg.hashsalt `` key to rcParams
23+ ```````````````````````````````````````
2424
2525If ``svg.hashsalt `` is ``None `` (which it is by default), the svg
2626backend uses ``uuid4 `` to generate the hash salt. If it is not
2727``None ``, it must be a string that is used as the hash salt instead of
2828``uuid4 ``. This allows for deterministic SVG output.
29+
30+
31+ Removed the ``svg.image_noscale `` rcParam
32+ `````````````````````````````````````````
33+
34+ As a result of the extensive changes to image handling, the
35+ ``svg.image_noscale `` rcParam has been removed. The same
36+ functionality may be achieved by setting ``interpolation='none' `` on
37+ individual images or globally using the ``image.interpolation ``
38+ rcParam.
You can’t perform that action at this time.
0 commit comments