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

Skip to content

Commit 7468bba

Browse files
committed
API: change the dot patterns
- change all of the patterns - change scale floor to a lw of 2.0
1 parent 59e0ab9 commit 7468bba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ def get_dashes(self):
874874
if rcParams['_internal.classic_mode']:
875875
return self._dashes
876876
else:
877-
scale = max(1.0, self.get_linewidth())
877+
scale = max(2.0, self.get_linewidth())
878878
offset, dashes = self._dashes
879879
if offset is not None:
880880
offset = offset * scale

lib/matplotlib/rcsetup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -895,9 +895,9 @@ def validate_hist_bins(s):
895895
'lines.solid_joinstyle': ['round', validate_joinstyle],
896896
'lines.dash_capstyle': ['butt', validate_capstyle],
897897
'lines.solid_capstyle': ['projecting', validate_capstyle],
898-
'lines.dashed_pattern': [[2.8, 1.2], validate_nseq_float()],
899-
'lines.dashdot_pattern': [[4.8, 1.2, 0.8, 1.2], validate_nseq_float()],
900-
'lines.dotted_pattern': [[1.2, 0.6], validate_nseq_float()],
898+
'lines.dashed_pattern': [[2.4, 1.2], validate_nseq_float()],
899+
'lines.dashdot_pattern': [[3.6, 1.2, 1.2, 1.2], validate_nseq_float()],
900+
'lines.dotted_pattern': [[1.2, 1.2], validate_nseq_float()],
901901

902902
# marker props
903903
'markers.fillstyle': ['full', validate_fillstyle],

0 commit comments

Comments
 (0)