Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6d35de0

Browse filesBrowse files
committed
clarified sketch params format
1 parent ad29988 commit 6d35de0
Copy full SHA for 6d35de0

File tree

3 files changed

+10
-10
lines changed
Filter options

3 files changed

+10
-10
lines changed

‎lib/matplotlib/mpl-data/matplotlibrc

Copy file name to clipboardExpand all lines: lib/matplotlib/mpl-data/matplotlibrc
+8-8Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/mpl-data/stylelib/xkcd.mplstyle
+1-1Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/rcsetup.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.