Re: PLOYY plot [message #60971] |
Wed, 02 July 2008 06:23  |
d.poreh
Messages: 406 Registered: October 2007
|
Senior Member |
|
|
On Jul 2, 2:15 pm, Brian Larsen <balar...@gmail.com> wrote:
> Does this work?
>
> http://www.dfanning.com/tips/another_yaxis.html
>
> Try using that site for all you IDL needs, it is a great first (and
> last) stop.
>
> Cheers,
>
> Brian
>
> ------------------------------------------------------------ --------------
> Brian Larsen
> Boston University
> Center for Space Physicshttp://people.bu.edu/balarsen/Home/IDL
Hi Brian
I saw that before no it is not what I need. In that image x is same
for both y. I want to inter another x (in the top of box) that y=f(x)
is for right and top.
Cheers
|
|
|
|
Re: PLOYY plot [message #61120 is a reply to message #60971] |
Wed, 02 July 2008 07:44  |
Spon
Messages: 178 Registered: September 2007
|
Senior Member |
|
|
On Jul 2, 2:23 pm, d.po...@gmail.com wrote:
> On Jul 2, 2:15 pm, Brian Larsen <balar...@gmail.com> wrote:
>
>> Does this work?
>
>> http://www.dfanning.com/tips/another_yaxis.html
>
>> Try using that site for all you IDL needs, it is a great first (and
>> last) stop.
>
>> Cheers,
>
>> Brian
>
>> ------------------------------------------------------------ --------------
>> Brian Larsen
>> Boston University
>> Center for Space Physicshttp://people.bu.edu/balarsen/Home/IDL
>
> Hi Brian
> I saw that before no it is not what I need. In that image x is same
> for both y. I want to inter another x (in the top of box) that y=f(x)
> is for right and top.
> Cheers
You have to call AXIS twice, once for each new axis you require.
To extend David's example:
x = FINDGEN(100)
theta = x/5
curve = SIN(x/5) / EXP(x/50)
PLOT, curve, YSTYLE=8
AXIS, YAXIS=1, YLOG=1, YRANGE=[0.1, 100], /SAVE
AXIS, XAXIS=1, XRANGE =[0, 200], /SAVE
OPLOT, [theta, REVERSE(theta)]
If you have the same problem as I do with overlayed axes disappearing
you could get around it by setting YTHICK = 2 & XTHICK = 2 in your
respective AXIS calls; but this might be a platform-dependent problem
that doesn't affect you.
Regards,
Chris
|
|
|