-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.py
More file actions
32 lines (28 loc) · 1012 Bytes
/
template.py
File metadata and controls
32 lines (28 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from pylab import *
import matplotlib.pyplot as plt
plt.rc('font',family='Arial')
# Do not need modification #
plt.figure(figsize=(8.3,6))
plt.rcParams['xtick.direction'] = 'out'
plt.rcParams['ytick.direction'] = 'out'
plt.yticks(size = 20)
plt.xticks(size = 20)
tick_params(which='major',width=2,length=8)
tick_params(which='minor',width=1,length=4)
ax=plt.gca()
bwith = 2
ax.spines['bottom'].set_linewidth(bwith)
ax.spines['top'].set_linewidth(bwith)
ax.spines['left'].set_linewidth(bwith)
ax.spines['right'].set_linewidth(bwith)
# Do not need modification #
# Additional setting
plt.xlabel('Reaction coordinate',{'weight':'normal','size':25},labelpad=12)
plt.ylabel('Free energy(eV)',{'weight':'normal','size':25},labelpad=15)
plt.scatter(np.arange(10),np.arange(10),label='test')
plt.legend(loc='best',prop ={'weight':'normal','size':25},fancybox=False,edgecolor='black')
plt.tight_layout()
plt.savefig('barrier.pdf',dpi=900)