Skip to content

Commit 6a1d20e

Browse files
committed
doc fix
1 parent 1883546 commit 6a1d20e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/users/next_whats_new/sketch_seed.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ Two codes with the same parameters and same seed will be exactly same to one ano
4646
fig, ax = plt.subplots()
4747
x = np.linspace(0.7, 1.42, 100)
4848
y = x ** 2
49-
ax.plot(x, y, color='black')
50-
Artist.set_sketch_params(ax, 100, 100, 20, 40)
51-
ax.title("seed = 40")
49+
ln = ax.plot(x, y, color='black')
50+
Artist.set_sketch_params(ln[0], 100, 100, 20, 40)
51+
plt.title("seed = 40")
5252
plt.show()
5353

5454
.. plot::

0 commit comments

Comments
 (0)