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

Commit

Permalink
Update hello.py in anaconda container
Browse files Browse the repository at this point in the history
  • Loading branch information
qubitron committed Apr 16, 2019
1 parent 3f0fedb commit 22cfcd6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions containers/python-3-anaconda/test-project/hello.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#%%
import matplotlib
import matplotlib.pyplot as plt
import numpy as np

# Data for plotting
t = np.arange(0.0, 2.0, 0.01)
s = 1 + np.sin(2 * np.pi * t)

fig, ax = plt.subplots()
ax.plot(t, s)

ax.set(xlabel='time (s)', ylabel='voltage (mV)',
title='About as simple as it gets, folks')
ax.grid()

fig.savefig("test.png")
plt.show()

0 comments on commit 22cfcd6

Please sign in to comment.