Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitd2416cd

Browse files
committed
clarified sketch params format
1 parent0b24f78 commitd2416cd

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 a3-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 atriplet 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
returntuple(_listify_validator(validate_float,n=3)(s))
564564
exceptValueError:
565-
raiseValueError("Expected a(scale, length, randomness) triplet")
565+
raiseValueError("Expected a'scale, length, randomness' triplet")
566566

567567

568568
def_validate_greaterthan_minushalf(s):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp