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

Skip to content

Commit 6bc0adf

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 59e0ab9 commit 6bc0adf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ def validate_hist_bins(s):
897897
'lines.solid_capstyle': ['projecting', validate_capstyle],
898898
'lines.dashed_pattern': [[2.8, 1.2], validate_nseq_float()],
899899
'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()],
900+
'lines.dotted_pattern': [[1.1, 1.1], validate_nseq_float()],
901901

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

0 commit comments

Comments
 (0)