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

Home » Public Forums » archive » Re: PLOYY plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: PLOYY plot [message #60971] Wed, 02 July 2008 06:23 Go to next message
d.poreh is currently offline  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 #60973 is a reply to message #60971] Wed, 02 July 2008 05:15 Go to previous messageGo to next message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
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 Physics
http://people.bu.edu/balarsen/Home/IDL
Re: PLOYY plot [message #61120 is a reply to message #60971] Wed, 02 July 2008 07:44 Go to previous message
Spon is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: customized buttons in workbench
Next Topic: Two new IDL 7.0 updates are now available

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

Current Time: Wed Oct 08 15:14:52 PDT 2025

Total time taken to generate the page: 0.00571 seconds