Skip to content

Instantly share code, notes, and snippets.

@shelling
Created December 30, 2009 16:11
Show Gist options
  • Select an option

  • Save shelling/266150 to your computer and use it in GitHub Desktop.

Select an option

Save shelling/266150 to your computer and use it in GitHub Desktop.
matplotlib pin
x = numpy.arange(0,math.pi,0.01)
pylab.plot(x, numpy.sin(x))
pylab.xlim((0, x[-1]))
pylab.grid(True)
pylab.savefig("simple.png")
pylab.gcf().clear()
os.system("open simple.png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment