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

Commit42fb6a2

Browse files
authored
Updated commments and added seed to get_sketch_params tuple
1 parent5051680 commit42fb6a2

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

‎lib/matplotlib/artist.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class Artist:
7676
defset_gid(self,gid:str|None)->None: ...
7777
defget_snap(self)->bool|None: ...
7878
defset_snap(self,snap:bool|None)->None: ...
79-
defget_sketch_params(self)->tuple[float,float,float]|None: ...
79+
defget_sketch_params(self)->tuple[float,float,float,int]|None: ...
8080
defset_sketch_params(
8181
self,
8282
scale:float|None= ...,

‎lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,13 +1051,14 @@ def get_sketch_params(self):
10511051
-------
10521052
tuple or `None`
10531053
1054-
A3-tuple with the following elements:
1054+
A4-tuple with the following elements:
10551055
10561056
* ``scale``: The amplitude of the wiggle perpendicular to the
10571057
source line.
10581058
* ``length``: The length of the wiggle along the line.
10591059
* ``randomness``: The scale factor by which the length is
10601060
shrunken or expanded.
1061+
* ``seed``: Seed for the internal pseudo-random number generator.
10611062
10621063
May return `None` if no sketch parameters were set.
10631064
"""

‎lib/matplotlib/backend_bases.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class GraphicsContextBase:
174174
defget_hatch_color(self)->ColorType: ...
175175
defset_hatch_color(self,hatch_color:ColorType)->None: ...
176176
defget_hatch_linewidth(self)->float: ...
177-
defget_sketch_params(self)->tuple[float,float,float]|None: ...
177+
defget_sketch_params(self)->tuple[float,float,float,int]|None: ...
178178
defset_sketch_params(
179179
self,
180180
scale:float|None= ...,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp