In [ ]:
import numpy as np
t, k, dk = np.loadtxt('exp1.csv', skiprows=2, delimiter=',', unpack=True)
In [ ]:
print(k)
In [ ]:
import matplotlib.pyplot as plt
plt.plot(1/t, np.log(k))
plt.tight_layout()
plt.show()
In [ ]:
import matplotlib.pyplot as plt
plt.errorbar(1/t, np.log(k), yerr=dk/k, marker='o', linestyle='')
plt.xlabel('1/T (K$^{-1}$)')
plt.ylabel('ln(k)')
plt.tight_layout()
plt.show()
In [ ]:
import matplotlib as mpl
mpl.rcParams['axes.grid'] = True
mpl.rcParams['ytick.direction'] = 'in'
mpl.rcParams['xtick.labelsize'] = 20
mpl.rcParams['axes.facecolor'] = 'g'
import matplotlib.pyplot as plt
plt.errorbar(1/t, np.log(k), yerr=dk/k, marker='^', linestyle='', color='#34a5daff')
plt.xlabel('1/T (K$^{-1}$)')
plt.ylabel('ln(k)')
plt.tight_layout()
plt.show()
In [ ]:
mpl.rcParams.keys()
In [ ]:
import matplotlib.pyplot as plt
import seaborn as sns
sns.set('talk', palette='colorblind')
plt.errorbar(1/t, np.log(k), yerr=dk/k, marker='o', linestyle='')
plt.xlabel('1/T (K$^{-1}$)')
plt.ylabel('ln(k)')
plt.tight_layout()
plt.show()
In [ ]:
import matplotlib.pyplot as plt
import seaborn as sns
sns.set('talk', palette='colorblind')
plt.errorbar(1/t, np.log(k), yerr=dk/k, marker='o', linestyle='')
plt.errorbar(1/t, np.log(k)+0.1, yerr=dk/k, marker='o', linestyle='')
plt.errorbar(1/t, np.log(k)+0.2, yerr=dk/k, marker='o', linestyle='')
plt.errorbar(1/t, np.log(k)+0.3, yerr=dk/k, marker='o', linestyle='')
plt.xlabel('1/T (K$^{-1}$)')
plt.ylabel('ln(k)')
plt.tight_layout()
plt.show()
In [ ]: