matplotlib axis define

hi again

accuatly, I want redefine my axis points ( it’s seems call ‘ticks’ on pyplot, I want redefine his range )

to be the same as my excel graphic.

I did it’s not a logaritmic because to calc thats ‘y’ points I use another formula…

and on Excel it’s X Y Scatter Graphic type…

I’m trying now change th xticks and yticks…

thanks :smiley:

2010/2/11 Pierre de Buyl <pdebuyl@…2144…>

···

Here is what “my” code does. (attached file).

But, There isn’t a way to just setting the x,y values’ axis easily?
Do you mean the limits of the axes ?

Add

pp.axis([0.01,10000,0,1])

before pp.show()

Because isn’t a logaritmic (I think)…
the x-axis is logarithmic in model.jpg.

And I would like to mantain the same axis coord as in model.jpg, if it’s possible…

thanks anyway! :smiley:

You’re welcome.

Pierre

2010/2/11 Pierre de Buyl <pdebuyl@…2144…>

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

Pierre

You right

look on excel grahic, I found a logarithmic scale option marked

my bad.

really thanks

see ya

2010/2/11 Samuel Teixeira Santos <arcanosam@…287…>

···

hi again

accuatly, I want redefine my axis points ( it’s seems call ‘ticks’ on pyplot, I want redefine his range )

to be the same as my excel graphic.

I did it’s not a logaritmic because to calc thats ‘y’ points I use another formula…

and on Excel it’s X Y Scatter Graphic type…

I’m trying now change th xticks and yticks…

thanks :smiley:

2010/2/11 Pierre de Buyl <pdebuyl@…2144…>

Here is what “my” code does. (attached file).

But, There isn’t a way to just setting the x,y values’ axis easily?

Do you mean the limits of the axes ?

Add

pp.axis([0.01,10000,0,1])

before pp.show()

Because isn’t a logaritmic (I think)…

the x-axis is logarithmic in model.jpg.

And I would like to mantain the same axis coord as in model.jpg, if it’s possible…

thanks anyway! :smiley:

You’re welcome.

Pierre

2010/2/11 Pierre de Buyl <pdebuyl@…2144…>

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