8000 Add a what's new entry · matplotlib/matplotlib@c060842 · GitHub
[go: up one dir, main page]

Skip to content

Commit c060842

Browse files
committed
Add a what's new entry
1 parent 70e87c8 commit c060842

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Validation of line style rcParams
2+
---------------------------------
3+
4+
Stricter validation
5+
```````````````````
6+
The validation of rcParams that are related to line styles
7+
(``lines.linestyle``, ``boxplot.*.linestyle``, ``grid.linestyle`` and
8+
``contour.negative_linestyle``) now effectively checks that the values
9+
are valid line styles. Strings like ``dashed`` or ``--`` are accepted,
10+
as well as even-length sequences of on-off ink like ``[1, 1.65]``. In
11+
this latter case, the offset value is handled internally and should *not*
12+
be provided by the user.
13+
14+
The validation is case-insensitive.
15+
16+
Deprecation of the former validators for ``contour.negative_linestyle``
17+
```````````````````````````````````````````````````````````````````````
18+
The new validation scheme replaces the former one used for the
19+
``contour.negative_linestyle`` rcParams, that was limited to ``solid``
20+
and ``dashed`` line styles.
21+
22+
The former public validation functions ``validate_negative_linestyle``
23+
and ``validate_negative_linestyle_legacy`` will be deprecated in 2.1 and
24+
may be removed in 2.3. There are no public functions to replace them.
25+
26+
Examples of use
27+
```````````````
28+
::
29+
30+
....grid.linestyle : (1, 3) # loosely dotted grid lines
31+
contour.negative_linestyle : dashdot # previously only solid or dashed

0 commit comments

Comments
 (0)
0