from read_plot import *
import matplotlib.pyplot as plt

m, e = read_plot("ising.data")
x = [i for i in xrange(len(m))]

plt.plot(x, m)
plt.show()
import matplotlib.pyplot as plt

from read_plot import *


x1, y1 = read_plot("poor.data")
x2, y2 = read_plot("park_miller.data")
x3, y3 = read_plot("random.random.data")

s1 = plt.subplot(3,1,1)
plt.scatter(x1,y1 )

s2 = plt.subplot(3,1,2)
plt.scatter(x2,y2 )

s3 = plt.subplot(3,1,3)
plt.scatter(x3,y3 )

plt.show()
예제 #3
0
from read_plot import *
import matplotlib
matplotlib.rcParams['legend.fancybox'] = True
import matplotlib.pyplot as plt
from matplotlib import legend

x,y = read_plot("plot.txt")
xt,yt = read_plot("noAirPlot.txt")

ax1 = plt.subplot(1,1,1)

p1, = ax1.plot(x,y)
p2, = ax1.plot(xt,yt)

ax1.legend([p1, p2], ["Numerical", "Exact (no air)"])

plt.show()
import matplotlib.pyplot as plt

from read_plot import *
from read_plot_tokened import *

E_data, F_data = read_plot("F.data")

x_data, phi_data = read_plot_tokened("phi.data")

s1 = plt.subplot(2,1,1)
for i in range(len(x_data)) :
	plt.plot( x_data[i], phi_data[i] )

s2 = plt.subplot(2,1,2)
plt.plot( E_data, F_data )
plt.ylim( [-10, 10] )

plt.show()
예제 #5
0
from read_plot import *
import matplotlib
matplotlib.rcParams['legend.fancybox'] = True
import matplotlib.pyplot as plt
from matplotlib import legend

x,y = read_plot("poincare_plot.txt")

plt.scatter(x,y)
plt.ylim( [-180,180] )
plt.xlim( [-180,180] )

plt.show()
예제 #6
0
#!/usr/bin/env python

from read_plot import *
import matplotlib.pyplot as plt
import sys

if len(sys.argv) >= 2 :
    [x,y] = read_plot(sys.argv[1])
    plt.plot(x,y)
    plt.show()
예제 #7
0
from read_plot import *
import matplotlib.pyplot as plt

m,e = read_plot("ising.data")
x = [i for i in xrange(len(m)) ]

plt.plot(x,m)
plt.show()
예제 #8
0
from read_plot import *
import matplotlib
matplotlib.rcParams['legend.fancybox'] = True
import matplotlib.pyplot as plt
from matplotlib import legend

x, y = read_plot("plot.txt")
xt, yt = read_plot("noAirPlot.txt")

ax1 = plt.subplot(1, 1, 1)

p1, = ax1.plot(x, y)
p2, = ax1.plot(xt, yt)

ax1.legend([p1, p2], ["Numerical", "Exact (no air)"])

plt.show()
#!/usr/bin/env python

from read_plot import *
import matplotlib.pyplot as plt
import sys

if len(sys.argv) >= 2:
    [x, y] = read_plot(sys.argv[1])
    plt.plot(x, y)
    plt.show()
#!/usr/bin/env python

from read_plot import *
import matplotlib.pyplot as plt

[x,y] = read_plot("psiSqd.data")
plt.plot(x,y)
plt.show()
예제 #11
0
from read_plot import *
import matplotlib
matplotlib.rcParams['legend.fancybox'] = True
import matplotlib.pyplot as plt
from matplotlib import legend

x, y = read_plot("poincare_plot.txt")

plt.scatter(x, y)
plt.ylim([-180, 180])
plt.xlim([-180, 180])

plt.show()