Skip to content

Instantly share code, notes, and snippets.

@lo5an
Last active April 28, 2016 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lo5an/223d799d90919fdde036bcca6de36b0d to your computer and use it in GitHub Desktop.
Save lo5an/223d799d90919fdde036bcca6de36b0d to your computer and use it in GitHub Desktop.
%matplotlib inline
import numpy
import matplotlib.pyplot
data = numpy.loadtxt(fname="inflammation-01.csv", delimiter=',')
fig = matplotlib.pyplot.figure(figsize=(10.0, 3.0))
axes1 = fig.add_subplot(1, 3, 1)
axes2 = fig.add_subplot(1, 3, 2)
axes3 = fig.add_subplot(1, 3, 3)
axes1.set_ylabel('average')
axes1.plot(data.mean(axis=0))
axes2.set_ylabel('max')
axes2.plot(data.max(axis=0))
axes3.set_ylabel('min')
axes3.plot(data.min(axis=0))
fig.tight_layout()
matplotlib.pyplot.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment