@@ -785,8 +785,8 @@ def __init__(self, ax, *args,
785
785
self ._transform = transform
786
786
787
787
self .negative_linestyles = negative_linestyles
788
- # If negative_linestyles was not defined as a kwarg,
789
- # define negative_linestyles with rcParams
788
+ # If negative_linestyles was not defined as a keyword argument, define
789
+ # negative_linestyles with rcParams
790
790
if self .negative_linestyles is None :
791
791
self .negative_linestyles = \
792
792
mpl .rcParams ['contour.negative_linestyle' ]
@@ -1746,26 +1746,27 @@ def _initialize_x_y(self, z):
1746
1746
linestyles : {*None*, 'solid', 'dashed', 'dashdot', 'dotted'}, optional
1747
1747
*Only applies to* `.contour`.
1748
1748
1749
- If *linestyles* is *None*, the default is 'solid' unless the lines
1750
- are monochrome. In that case, negative contours will take their
1751
- linestyle from :rc:`contour.negative_linestyle` setting .
1749
+ If *linestyles* is *None*, the default is 'solid' unless the lines are
1750
+ monochrome. In that case, negative contours will instead take their
1751
+ linestyle from the *negative_linestyles* argument .
1752
1752
1753
- *linestyles* can also be an iterable of the above strings
1754
- specifying a set of linestyles to be used. If this
1755
- iterable is shorter than the number of contour levels
1756
- it will be repeated as necessary.
1753
+ *linestyles* can also be an iterable of the above strings specifying a set
1754
+ of linestyles to be used. If this iterable is shorter than the number of
1755
+ contour levels it will be repeated as necessary.
1757
1756
1758
1757
negative_linestyles : {*None*, 'solid', 'dashed', 'dashdot', 'dotted'}, \
1759
1758
optional
1760
1759
*Only applies to* `.contour`.
1761
1760
1762
- If *negative_linestyles * is None, the default is 'dashed' for
1763
- negative contours.
1761
+ If *linestyles * is * None* and the lines are monochrome, this argument
1762
+ specifies the line style for negative contours.
1764
1763
1765
- *negative_linestyles* can also be an iterable of the above
1766
- strings specifying a set of linestyles to be used. If this
1767
- iterable is shorter than the number of contour levels
1768
- it will be repeated as necessary.
1764
+ If *negative_linestyles* is *None*, the default is taken from
1765
+ :rc:`contour.negative_linestyles`.
1766
+
1767
+ *negative_linestyles* can also be an iterable of the above strings
1768
+ specifying a set of linestyles to be used. If this iterable is shorter than
1769
+ the number of contour levels it will be repeated as necessary.
1769
1770
1770
1771
hatches : list[str], optional
1771
1772
*Only applies to* `.contourf`.
0 commit comments