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

Skip to content

Commit d2416cd

Browse files
committed
clarified sketch params format
1 parent 0b24f78 commit d2416cd

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

lib/matplotlib/mpl-data/matplotlibrc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -669,14 +669,14 @@
669669
#path.snap: True # When True, rectilinear axis-aligned paths will be snapped
670670
# to the nearest pixel when certain criteria are met.
671671
# When False, paths will never be snapped.
672-
#path.sketch: None # May be None, or a 3-tuple of the form:
673-
# (scale, length, randomness).
674-
# - *scale* is the amplitude of the wiggle
675-
# perpendicular to the line (in pixels).
676-
# - *length* is the length of the wiggle along the
677-
# line (in pixels).
678-
# - *randomness* is the factor by which the length is
679-
# randomly scaled.
672+
#path.sketch: None # May be None, or a triplet of the form:
673+
# path.sketch: scale, length, randomness
674+
# - *scale* is the amplitude of the wiggle
675+
# perpendicular to the line (in pixels).
676+
# - *length* is the length of the wiggle along the
677+
# line (in pixels).
678+
# - *randomness* is the factor by which the length is
679+
# randomly scaled.
680680
#path.effects:
681681
#path.effects.withStroke: None # {"argument":value } passed to withStroke
682682

lib/matplotlib/mpl-data/stylelib/xkcd.mplstyle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ grid.linewidth: 0.0
2626
figure.facecolor: white
2727

2828
# path
29-
path.sketch : (1, 100, 2)
29+
path.sketch : 1, 100, 2
3030
path.effects.withStroke : {"linewidth": 4, "foreground": 'w' }

lib/matplotlib/rcsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ def validate_sketch(s):
562562
try:
563563
return tuple(_listify_validator(validate_float, n=3)(s))
564564
except ValueError:
565-
raise ValueError("Expected a (scale, length, randomness) triplet")
565+
raise ValueError("Expected a 'scale, length, randomness' triplet")
566566

567567

568568
def _validate_greaterthan_minushalf(s):

0 commit comments

Comments
 (0)