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

Commit7e6b66b

Browse files
committed
small fixes
1 parent8f26035 commit7e6b66b

File tree

4 files changed

+2
-9
lines changed

4 files changed

+2
-9
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,4 @@ figure.facecolor: white
2727

2828
# path
2929
path.sketch : (1, 100, 2)
30-
path.effects.withStroke : {"linewidth": 4, "foreground": 'w' }
31-
32-
#'path.effects': [
33-
# patheffects.withStroke(linewidth=4, foreground="w")]
30+
path.effects.withStroke : {"linewidth": 4, "foreground": 'w' }

‎lib/matplotlib/pyplot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,6 @@ def xkcd(
748748
stack=ExitStack()
749749
stack.callback(dict.update,rcParams,rcParams.copy())# type: ignore
750750

751-
frommatplotlibimportpatheffects
752751
rcParams.update({**style.library["xkcd"],
753752
'path.sketch': (scale,length,randomness)})
754753
returnstack

‎lib/matplotlib/rcsetup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -877,13 +877,10 @@ def _validate_dict(d):
877877
d=ast.literal_eval(d)
878878
exceptValueError:
879879
pass
880-
881880
ifisinstance(d,dict)or (allow_noneand (disNone)):
882881
returnd
883-
884882
raiseValueError(f"Input{d!r} must be a dictionary {{'k': v}} "
885883
f"{'or None'ifallow_noneelse''}")
886-
887884
return_validate_dict
888885

889886

‎lib/matplotlib/rcsetup.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ValidateInStrings:
2828

2929
defvalidate_any(s:Any)->Any: ...
3030
defvalidate_anylist(s:Any)->list[Any]: ...
31-
defvalidate_anydict(allow_none:bool)->Callable[dict[str,Any],None]: ...
31+
defvalidate_anydict(allow_none:bool)->Callable[Optional[dict[str,Any]]]: ...
3232
defvalidate_bool(b:Any)->bool: ...
3333
defvalidate_axisbelow(s:Any)->bool|Literal["line"]: ...
3434
defvalidate_dpi(s:Any)->Literal["figure"]|float: ...

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp