8000 API: change the dot patterns · javadba/matplotlib@7a203e4 · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 7a203e4

Browse files
committed
API: change the dot patterns
- change the dotted pattern to [[1.1, 1.1]] - change scale floor to a lw of 2.0
1 parent 3f569bb commit 7a203e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/lines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _get_dash_pattern(style):
6868
def _scale_dashes(offset, dashes, lw):
6969
if rcParams['_internal.classic_mode']:
7070
return offset, dashes
71-
scale = max(1.0, lw)
71+
scale = max(2.0, lw)
7272
scaled_offset = scaled_dashes = None
7373
if offset is not None:
7474
scaled_offset = offset * scale

lib/matplotlib/rcsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ def validate_hist_bins(s):
901901
'lines.solid_capstyle': ['projecting', validate_capstyle],
902902
'lines.dashed_pattern': [[2.8, 1.2], validate_nseq_float()],
903903
'lines.dashdot_pattern': [[4.8, 1.2, 0.8, 1.2], validate_nseq_float()],
904-
'lines.dotted_pattern': [[1.2, 0.6], validate_nseq_float()],
904+
'lines.dotted_pattern': [[1.1, 1.1], validate_nseq_float()],
905905

906906
# marker props
907907
'markers.fillstyle': ['full', validate_fillstyle],

0 commit comments

Comments
 (0)
0