Dear users Matplotlib
I am new to Matplotlib and would like to know how the code below I can set the command to plot the spline instead of straight lines.
# -- Plot the reaction path
import pylab as p
fig = p.figure(1)
sp = p.subplot(1,1,1)
p.plot(range(len(Epath)), Epath, 's-')
for idx, (E,label) in enumerate(zip(Epath,PathLabels)):
p.text(idx, E, label,
horizontalalignment='center',
verticalalignment='top')
p.title('H2O disassociation')
p.ylabel('Energy [eV]')
p.xlabel('Reaction path')
p.xlim([-0.5, 2.5])
p.ylim([-0.5, 1.5])
sp.get_xaxis().set_ticks([]) # Turn off ticks on xaxis
p.show()
Best Regards
Fábio de Lima
Chemistry Department - UFMS- Campo Grande Brazil
Phone: 55 (67) 3345-3596
Cellular: 55 (67) 9639-1338