7.3762191e-01
6.9414645e-01
7.2935387e-01
7.2315696e-01
6.9948782e-01
7.0568515e-01
...
Suppose you have data like this
import numpy
from matplotlib import pyplot
def show(filename):
data = numpy.loadtxt(filename)
pyplot.hist(data)
pyplot.show()
When saving to a file
def show(filename):
data = numpy.loadtxt(filename)
pyplot.hist(data)
pyplot.savefig("figure1.eps")
To do. It automatically determines the extension and saves it as eps / png. bin will judge automatically. See the link below for details on how to specify.
References
Recommended Posts