Skip to content

Commit

Permalink
Add markers to basic plot image
Browse files Browse the repository at this point in the history
  • Loading branch information
timhoffm committed Jul 7, 2020
1 parent 329e0ba commit 28f9b0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/basic-plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
X = np.linspace(0, 10, 100)
Y = 4+2*np.sin(2*X)
ax.plot(X, Y, color="C1", linewidth=0.75)
X2 = np.linspace(0.5, 7.5, 8)
Y2 = 7 * (1 - np.exp(-X2 / 2))
ax.plot(X2, Y2, 'C0o', markersize=1)
ax.set_xlim(0, 8), ax.set_xticks(np.arange(1,8))
ax.set_ylim(0, 8), ax.set_yticks(np.arange(1,8))
ax.grid(linewidth=0.125)
Expand Down

0 comments on commit 28f9b0f

Please sign in to comment.