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 2558530

Browse filesBrowse files
authored
Merge pull request #8032 from tacaswell/api_lw_scale_clipping
[MRG+2] Api lw scale clipping
2 parents a347da9 + c5a59e3 commit 2558530
Copy full SHA for 2558530
Expand file treeCollapse file tree

14 files changed

+233
-233
lines changed

‎lib/matplotlib/lines.py

Copy file name to clipboardExpand all lines: lib/matplotlib/lines.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ def _get_dash_pattern(style):
6868
def _scale_dashes(offset, dashes, lw):
6969
if not rcParams['lines.scale_dashes']:
7070
return offset, dashes
71-
scale = max(2.0, lw)
71+
7272
scaled_offset = scaled_dashes = None
7373
if offset is not None:
74-
scaled_offset = offset * scale
74+
scaled_offset = offset * lw
7575
if dashes is not None:
76-
scaled_dashes = [x * scale if x is not None else None
76+
scaled_dashes = [x * lw if x is not None else None
7777
for x in dashes]
7878

7979
return scaled_offset, scaled_dashes

‎lib/matplotlib/rcsetup.py

Copy file name to clipboardExpand all lines: lib/matplotlib/rcsetup.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -923,9 +923,9 @@ def validate_animation_writer_path(p):
923923
'lines.solid_joinstyle': ['round', validate_joinstyle],
924924
'lines.dash_capstyle': ['butt', validate_capstyle],
925925
'lines.solid_capstyle': ['projecting', validate_capstyle],
926-
'lines.dashed_pattern': [[2.8, 1.2], validate_nseq_float()],
927-
'lines.dashdot_pattern': [[4.8, 1.2, 0.8, 1.2], validate_nseq_float()],
928-
'lines.dotted_pattern': [[1.1, 1.1], validate_nseq_float()],
926+
'lines.dashed_pattern': [[3.7, 1.6], validate_nseq_float()],
927+
'lines.dashdot_pattern': [[6.4, 1.6, 1, 1.6], validate_nseq_float()],
928+
'lines.dotted_pattern': [[1, 1.65], validate_nseq_float()],
929929
'lines.scale_dashes': [True, validate_bool],
930930

931931
# marker props
Loading
Binary file not shown.
Loading

‎lib/matplotlib/tests/baseline_images/test_axes/boxplot_rc_parameters.svg

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/baseline_images/test_axes/boxplot_rc_parameters.svg
+150-150Lines changed: 150 additions & 150 deletions
Loading
Loading
Loading
Loading
Loading
Loading
Binary file not shown.
Loading

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.