rogwar 0 Newbie Poster

Good morning everyone. I have a question, please if you do not mind. In this
file E_vs_cutoff1.pdf, i represent the energy vs radial cutoff. And in the python
script, i specified the limits of Y-axis as: pl.ylim(-5524.0,-5522.5). I am using python 2.7,
pylab. And the script i wrote is simple as:

import pylab as pl
pl.ylim(-5524.0,-5522.5)
pl.plot(x,y)
pl.show()

But as you can see the figure, there is -5522e-3 on left top and, the Energy values
are between -2.0 and -0.5. It is as if the Energy values have been separated, despite
the python instruction "pl.ylim(-5524.0,-5522.5)".
So i was wondering, how can i fix it so that the figure shows indeed the Energy values
from -5524.0 to -5522.5. How to set the Y-axis scale in that case? Is there any
python library which can handle this? Anything, please, that can help me.
I hope you will understand my question.
Thanks in advance and Happy New Year!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.