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
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users