Skip to content

Navigation Menu

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 7e6b66b

Browse filesBrowse files
committed
small fixes
1 parent 8f26035 commit 7e6b66b
Copy full SHA for 7e6b66b

File tree

4 files changed

+2
-9
lines changed
Filter options

4 files changed

+2
-9
lines changed

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

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

Copy file name to clipboardExpand all lines: lib/matplotlib/pyplot.py
-1Lines 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-
from matplotlib import patheffects
752751
rcParams.update({**style.library["xkcd"],
753752
'path.sketch': (scale, length, randomness)})
754753
return stack

‎lib/matplotlib/rcsetup.py

Copy file name to clipboardExpand all lines: lib/matplotlib/rcsetup.py
-3Lines 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
except ValueError:
879879
pass
880-
881880
if isinstance(d, dict) or (allow_none and (d is None)):
882881
return d
883-
884882
raise ValueError(f"Input {d!r} must be a dictionary {{'k': v}} "
885883
f"{'or None' if allow_none else ''}")
886-
887884
return _validate_dict
888885

889886

‎lib/matplotlib/rcsetup.pyi

Copy file name to clipboardExpand all lines: lib/matplotlib/rcsetup.pyi
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ValidateInStrings:
2828

2929
def validate_any(s: Any) -> Any: ...
3030
def validate_anylist(s: Any) -> list[Any]: ...
31-
def validate_anydict(allow_none: bool) -> Callable[dict[str,Any], None]: ...
31+
def validate_anydict(allow_none: bool) -> Callable[Optional[dict[str, Any]]]: ...
3232
def validate_bool(b: Any) -> bool: ...
3333
def validate_axisbelow(s: Any) -> bool | Literal["line"]: ...
3434
def validate_dpi(s: Any) -> Literal["figure"] | float: ...

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.