Skip to content

Commit 63954ae

Browse files
committed
Add markers to basic plot image
1 parent 329e0ba commit 63954ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/basic-plots.py

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
X = np.linspace(0, 10, 100)
2121
Y = 4+2*np.sin(2*X)
2222
ax.plot(X, Y, color="C1", linewidth=0.75)
23+
X2 = np.linspace(0.5, 7.5, 8)
24+
Y2 = 7 * (1 - np.exp(-X2 / 2))
25+
ax.plot(X2, Y2, 'C1o', markersize=1)
2326
ax.set_xlim(0, 8), ax.set_xticks(np.arange(1,8))
2427
ax.set_ylim(0, 8), ax.set_yticks(np.arange(1,8))
2528
ax.grid(linewidth=0.125)

0 commit comments

Comments
 (0)