Skip to content

Commit dc49fec

Browse files
AryanShekastory645
andauthored
Apply suggestions from code review
Co-authored-by: hannah <story645@gmail.com>
1 parent bf22340 commit dc49fec

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

doc/users/next_whats_new/sketch_seed.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
`~matplotlib.rcParams` now has a new parameter ``path.sketch_seed``.
55
Its default value is 0 and accepted values are any non negative integer.
6-
This allows the user to set a value to the seed for the internal pseudo random number generator in one of three ways.
6+
This allows the user to set the seed for the internal pseudo random number generator in one of three ways.
77

88
1) Directly changing the rcParam:
99

lib/matplotlib/artist.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,6 @@ def set_sketch_params(self, scale=None, length=None, randomness=None,
705705
706706
seed : int, optional
707707
Seed for the internal pseudo-random number generator.
708-
For the same seed, the result will be exactly the same.
709708
710709
.. versionadded:: 3.8
711710
@@ -718,7 +717,7 @@ def set_sketch_params(self, scale=None, length=None, randomness=None,
718717
self._sketch = None
719718
else:
720719
self._sketch = (scale, length or 128.0, randomness or 16.0,
721-
seed or self._sketch_seed)
720+
self._sketch_seed)
722721
self.stale = True
723722

724723
def set_path_effects(self, path_effects):

0 commit comments

Comments
 (0)