|
8 | 8 | ``(offset, (on_off_seq))``. For example, ``(0, (3, 10, 1, 15))`` means
|
9 | 9 | (3pt line, 10pt space, 1pt line, 15pt space) with no offset, while
|
10 | 10 | ``(5, (10, 3))``, means (10pt line, 3pt space), but skip the first 5pt line.
|
11 |
| -See also `.Line2D.set_linestyle`. |
| 11 | +See also `.Line2D.set_linestyle`. The specific on/off sequence of the |
| 12 | +"dotted", "dashed" and "dashdot" styles may be configured using |
| 13 | +``rcParams["lines.{style}_pattern"]``, e.g. |
| 14 | +``rcParams['lines.dotted_pattern'] = (1, 10)``. |
12 | 15 |
|
13 | 16 | *Note*: The dash style can also be configured via `.Line2D.set_dashes`
|
14 | 17 | as shown in :doc:`/gallery/lines_bars_and_markers/line_demo_dash_control`
|
|
20 | 23 |
|
21 | 24 | linestyle_str = [
|
22 | 25 | ('solid', 'solid'), # Same as (0, ()) or '-'
|
23 |
| - ('dotted', 'dotted'), # Same as (0, (1, 1)) or ':' |
| 26 | + ('dotted', 'dotted'), # Same as ':' |
24 | 27 | ('dashed', 'dashed'), # Same as '--'
|
25 | 28 | ('dashdot', 'dashdot')] # Same as '-.'
|
26 | 29 |
|
27 | 30 | linestyle_tuple = [
|
28 | 31 | ('loosely dotted', (0, (1, 10))),
|
29 |
| - ('dotted', (0, (1, 1))), |
| 32 | + ('dotted', (0, (1, 5))), |
30 | 33 | ('densely dotted', (0, (1, 1))),
|
31 | 34 | ('long dash with offset', (5, (10, 3))),
|
32 | 35 | ('loosely dashed', (0, (5, 10))),
|
|
0 commit comments