Skip to content

Commit 9fa115a

Browse files
committed
update quickstart
1 parent 5f62dad commit 9fa115a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,21 @@ import numpy as np
6565

6666
xs = np.linspace(-2*np.pi, +2*np.pi, 156)
6767

68-
plot = mp.border(
68+
plot = mp.axes(
6969
mp.scatter(
7070
(xs, 1.0 * np.cos(xs), "red"),
7171
(xs, 0.9 * np.cos(xs - 0.33 * np.pi), "magenta"),
7272
(xs, 0.8 * np.cos(xs - 0.66 * np.pi), "blue"),
7373
(xs, 0.7 * np.cos(xs - 1.00 * np.pi), "cyan"),
7474
(xs, 0.8 * np.cos(xs - 1.33 * np.pi), "green"),
7575
(xs, 0.9 * np.cos(xs - 1.66 * np.pi), "yellow"),
76-
mp.xaxis(-2*np.pi, +2*np.pi, 156),
77-
mp.yaxis(-1, 1, 40),
78-
width=78,
76+
width=75,
7977
height=10,
8078
yrange=(-1,1),
81-
)
82-
/ mp.center(mp.text(f"cos(x + 2 pi k / 6)"), width=78)
79+
),
80+
title=" y = cos(x + 2πk/6) ",
81+
xlabel="x",
82+
ylabel="y",
8383
)
8484
```
8585

images/quickstart-screenshot.png

-1.2 KB
Loading

0 commit comments

Comments
 (0)