#matplotlib
-関数の定義
def MFe(x):
return (1.0-0.5*x**1.5-0.5*x**2.5)**(1/3)
def BJ(x):
return (2*J+1)/(2*J)*(1/np.tanh((2*J+1)*x/(2*J)))-1/(2*J)*(1/np.tanh(x/(2*J)))
-線種の定義
linestyles=[
(0,()),
(0,(1,1)),
(0,(2,2)),
(0,(3,3)),
(0,(3,1,1,1)),
(0,(2,2)),
]
from cycler import cycler
plt.rcParams['axes.prop_cycle'] = cycler('color', ['0', '0.5']) * cycler('linestyle', linestyles)