Skip to content

Commit 536cac4

Browse files
committed
DOC: correct linestyle example and reference rcParams
1 parent df1e039 commit 536cac4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

galleries/examples/lines_bars_and_markers/linestyles.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
``(offset, (on_off_seq))``. For example, ``(0, (3, 10, 1, 15))`` means
99
(3pt line, 10pt space, 1pt line, 15pt space) with no offset, while
1010
``(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)``.
1215
1316
*Note*: The dash style can also be configured via `.Line2D.set_dashes`
1417
as shown in :doc:`/gallery/lines_bars_and_markers/line_demo_dash_control`
@@ -20,13 +23,13 @@
2023

2124
linestyle_str = [
2225
('solid', 'solid'), # Same as (0, ()) or '-'
23-
('dotted', 'dotted'), # Same as (0, (1, 1)) or ':'
26+
('dotted', 'dotted'), # Same as ':'
2427
('dashed', 'dashed'), # Same as '--'
2528
('dashdot', 'dashdot')] # Same as '-.'
2629

2730
linestyle_tuple = [
2831
('loosely dotted', (0, (1, 10))),
29-
('dotted', (0, (1, 1))),
32+
('dotted', (0, (1, 5))),
3033
('densely dotted', (0, (1, 1))),
3134
('long dash with offset', (5, (10, 3))),
3235
('loosely dashed', (0, (5, 10))),

0 commit comments

Comments
 (0)