comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: two different x axis not linear with each other
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: two different x axis not linear with each other [message #13883] Thu, 07 January 1999 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Sebastien (thuriez@postman.riken.go.jp) writes:

> Do you know how to draw two x axis on the same plot : one linear and the
> other not linear and not logarythmic with respect to the first one?
>
> For exemple the first x axis would be defined by x=findgen(100) and the
> second x axis by 10 + 100*x^2 -5.2*x^3.

I should think something like this:

x = Findgen(100)
y = 5*x
xx = 10 + 100*x^2 -5.2*x^3
Plot, x, y, XStyle=8
Axis, XAxis=1, 0, Max(y), /Save, XRange=[Min(xx), Max(xx)]
OPlot, xx, y

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Progamming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Previous Topic: Re: Alternate plot scales
Next Topic: two different x axis not linear with each other

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 12:16:10 PDT 2025

Total time taken to generate the page: 1.19763 seconds