Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2558530

Browse files
authored
Merge pull request #8032 from tacaswell/api_lw_scale_clipping
[MRG+2] Api lw scale clipping
2 parents a347da9 + c5a59e3 commit 2558530

14 files changed

+233
-233
lines changed

lib/matplotlib/lines.py

Lines 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

Lines 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
Binary file not shown.

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

Lines changed: 150 additions & 150 deletions
Loading
Binary file not shown.

0 commit comments

Comments
 (0)