File tree 1 file changed +31
-0
lines changed 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments