Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 536cac4

Browse filesBrowse files
committed
DOC: correct linestyle example and reference rcParams
1 parent df1e039 commit 536cac4
Copy full SHA for 536cac4

File tree

Expand file treeCollapse file tree

1 file changed

+6
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-3
lines changed

‎galleries/examples/lines_bars_and_markers/linestyles.py

Copy file name to clipboardExpand all lines: galleries/examples/lines_bars_and_markers/linestyles.py
+6-3Lines changed: 6 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.