Skip to content

Instantly share code, notes, and snippets.

@kevingduck
Created August 16, 2017 06:28
Show Gist options
  • Save kevingduck/1c08687f933940d94b4d66262bd78687 to your computer and use it in GitHub Desktop.
Save kevingduck/1c08687f933940d94b4d66262bd78687 to your computer and use it in GitHub Desktop.
Simple Plot.py
# coding: utf-8
from pylab import *
t = arange(0.0, 2.0, 0.01)
s = sin(2*pi*t)
plot(t, s)
xlabel('time (s)')
ylabel('voltage (mV)')
title('About as simple as it gets, folks')
grid(True)
show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment