Created
March 7, 2018 13:14
-
-
Save mkcor/4916ddcc2ca9223c4fd42ad51e2fe909 to your computer and use it in GitHub Desktop.
Script to make threee subplots.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(numpy.mean(data, axis=0)) | |
axes2.set_ylabel('max') | |
axes2.plot(numpy.max(data, axis=0)) | |
axes3.set_ylabel('min') | |
axes3.plot(numpy.min(data, 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