Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 22cfcd6

Browse files
committed
Update hello.py in anaconda container
1 parent 3f0fedb commit 22cfcd6

File tree

1 file changed

+18
-0
lines changed
  • containers/python-3-anaconda/test-project

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#%%
2+
import matplotlib
3+
import matplotlib.pyplot as plt
4+
import numpy as np
5+
6+
# Data for plotting
7+
t = np.arange(0.0, 2.0, 0.01)
8+
s = 1 + np.sin(2 * np.pi * t)
9+
10+
fig, ax = plt.subplots()
11+
ax.plot(t, s)
12+
13+
ax.set(xlabel='time (s)', ylabel='voltage (mV)',
14+
title='About as simple as it gets, folks')
15+
ax.grid()
16+
17+
fig.savefig("test.png")
18+
plt.show()

0 commit comments

Comments
 (0)