matplotlib axis define

Hi all

I’m noob on matplotlib on python

and I need to do excel graphic like (model.jpg) that I send attached.

I send it too my test code for that

My problem is to set the values on y and x axis

how I do it?

thanks in advanced

test.py (8.49 KB)

model.jpg

Hello,

It is not clear what exactly does not work in your file. I assumed it was the logarithmic scaling in x. Here is the code to produce that.
A complete documentation is available on http://matplotlib.sourceforge.net/ , you might be especially interested by the examples http://matplotlib.sf.net/examples/index.html and the gallery http://matplotlib.sourceforge.net/gallery.html that provide codes to perform a wide range of graphics.

Pierre

from decimal import Decimal
from matplotlib import pyplot as pp

x = ...
y = ...

pp.xscale('log')
pp.plot(x,y)
pp.xlabel('h')
pp.ylabel('q')
pp.show()

···

Le 11 févr. 10 à 13:51, Samuel Teixeira Santos a écrit :

Hi all

I'm noob on matplotlib on python

and I need to do excel graphic like (model.jpg) that I send attached.

I send it too my test code for that

My problem is to set the values on y and x axis

how I do it?

thanks in advanced<test.py><model.jpg>------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users