Skip to content

Commit 18ed806

Browse files
committed
Illustrate offset in linestyle example
1 parent 6f2ddf3 commit 18ed806

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/lines_bars_and_markers/linestyles.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
Simple linestyles can be defined using the strings "solid", "dotted", "dashed"
77
or "dashdot". More refined control can be achieved by providing a dash tuple
88
``(offset, (on_off_seq))``. For example, ``(0, (3, 10, 1, 15))`` means
9-
(3pt line, 10pt space, 1pt line, 15pt space) with no offset. See also
10-
`.Line2D.set_linestyle`.
9+
(3pt line, 10pt space, 1pt line, 15pt space) with no offset, while
10+
``(5, (10, 5))``, means (10pt line, 5pt space), but skip the first 5pt line.
11+
See also `.Line2D.set_linestyle`.
1112
1213
*Note*: The dash style can also be configured via `.Line2D.set_dashes`
1314
as shown in :doc:`/gallery/lines_bars_and_markers/line_demo_dash_control`
@@ -27,7 +28,7 @@
2728
('loosely dotted', (0, (1, 10))),
2829
('dotted', (0, (1, 1))),
2930
('densely dotted', (0, (1, 1))),
30-
31+
('long dash with offset', (5, (10, 5))),
3132
('loosely dashed', (0, (5, 10))),
3233
('dashed', (0, (5, 5))),
3334
('densely dashed', (0, (5, 1))),

0 commit comments

Comments
 (0)