multip axis

hi everyone
  i am new user of matplotlib,i want display two curve on one graph.but i want these two curve have same X axis.but the Y axis is not same.I read the sample of matplotlib,there is an example about subplot.but i don't hope to use such one,These two curve should be displayed in on plot in my application with diffrent axis.Doese matplotlib have such function? or if there is an demo code about it?
  thanks
xz_nie

···

_________________________________________________________________
�������������ĵ����ʼ�ϵͳ�� MSN Hotmail�� http://www.hotmail.com

Hey,

twinx() is what you need.

Download the examples (http://matplotlib.sourceforge.net/matplotlib_examples_0.90.0.zip). There is an example on how to use twinx() (this is the file two_scales.py)

Keep on Rockin'

Benoit

···

Le 29-août-07 à 00:03, nie ninesun a écrit :

hi everyone
i am new user of matplotlib,i want display two curve on one graph.but i want these two curve have same X axis.but the Y axis is not same.I read the sample of matplotlib,there is an example about subplot.but i don't hope to use such one,These two curve should be displayed in on plot in my application with diffrent axis.Doese matplotlib have such function? or if there is an demo code about it?
thanks
xz_nie

_________________________________________________________________
享用世界上最大的电子邮件系统— MSN Hotmail。 http://www.hotmail.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Dr. Benoit Donnet
Université Catholique de Louvain (UCL)
Faculté des Sciences Appliquées - Département d'Ingénierie Informatique (INGI)
Place Sainte Barbe, 2
1348 Louvain-la-Neuve
Belgium
Phone: +32 10 47 87 18
Home page: http://inl.info.ucl.ac.be/donnet

nie ninesun wrote:

  i am new user of matplotlib,i want display two curve on one graph.but i
want these two curve have same X axis.but the Y axis is not same...

Seeing as this came up. Is it possible to have more than 2 y axes? For
example:

http://www.unm.edu/~jdfrech/fire-climate.png

The above figure was created by generating 2 figures of the same size in
matplotlib, one with a pair of twinx() y axes and one with a single y axis
then manually splicing them together in Inkscape.

···

--
View this message in context: http://www.nabble.com/multip-axis-tf4344576.html#a12392038
Sent from the matplotlib - users mailing list archive at Nabble.com.