@@ -256,6 +256,12 @@ or by setting::
256
256
257
257
In your :file: `matplotlibrc ` file.
258
258
259
+ In addition, the ``forward `` kwarg to
260
+ `~matplotlib.Figure.set_size_inches ` now defaults to `True ` to improve
261
+ the interactive experience. Backend canvases that adjust the size of
262
+ their bound `matplotlib.figure.Figure ` must pass ``forward=False `` to
263
+ avoid circular behavior. This default is not configurable.
264
+
259
265
260
266
Plotting functions
261
267
==================
@@ -624,20 +630,24 @@ To restore the previous behavior explicitly pass the keyword argument
624
630
Hatching
625
631
========
626
632
627
- The color and width of the lines in a hatch pattern are now configurable by the
628
- rcParams `hatch.color ` and `hatch.linewidth `, with defaults of black and 1
629
- point, respectively. The old behaviour for the color was to apply the edge
630
- color or use black, depending on the artist; the old behavior for the line
631
- width was different depending on backend:
633
+
634
+ The color of the lines in the hatch is now determined by
635
+
636
+ - If an edge color is explicitly set, use that for the hatch color
637
+ - If the edge color is not explicitly set, use ``rcParam['hatch.color'] `` which
638
+ is looked up at artist creation time.
639
+
640
+ The width of the lines in a hatch pattern is now configurable by the
641
+ rcParams `hatch.linewidth `, which defaults to 1 point. The old
642
+ behavior for the line width was different depending on backend:
632
643
633
644
- PDF: 0.1 pt
634
645
- SVG: 1.0 pt
635
646
- PS: 1 px
636
647
- Agg: 1 px
637
648
638
- The old color behavior can not be restored. The old line width behavior can not
639
- be restored across all backends simultaneously, but can be restored for a
640
- single backend by setting::
649
+ The old line width behavior can not be restored across all backends
650
+ simultaneously, but can be restored for a single backend by setting::
641
651
642
652
mpl.rcParams['hatch.linewidth'] = 0.1 # previous pdf hatch linewidth
643
653
mpl.rcParams['hatch.linewidth'] = 1.0 # previous svg hatch linewidth
@@ -650,7 +660,7 @@ The behavior of the PS and Agg backends was DPI dependent, thus::
650
660
mpl.rcParams['hatch.linewidth'] = 1.0 / dpi # previous ps and Agg hatch linewidth
651
661
652
662
653
- There is no API level control of the hatch color or linewidth.
663
+ There is no direct API level control of the hatch color or linewidth.
654
664
655
665
Hatching patterns are now rendered at a consistent density, regardless of DPI.
656
666
Formerly, high DPI figures would be more dense than the default, and low DPI
0 commit comments