Re: two different x axis not linear with each other [message #13883] |
Thu, 07 January 1999 00:00 |
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
|
|
|