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

Home » Public Forums » archive » Secondary axis in NG
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
Secondary axis in NG [message #74425] Mon, 17 January 2011 04:34
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
Hi all,

How do I add a secondary axis to a plot in new graphics (i.e. like
this in direct graphics:
http://www.dfanning.com/tips/another_yaxis.html)?

This is as far as I got:
x = FINDGEN(100)
theta = x/5
curve = SIN(x/5) / EXP(x/50)
p=plot(x,curve)
p=plot(x,theta,/current,COLOR='ff00'xl,YCOLOR='ff00'xl,YTEXT POS=1,YLOG=1)

I want the second axis to be logarithmic and to the right-hand side of
the plot. I also want to supress the right Y-axis in the first plot
and the left Y-axis in the second plot. Any ideas?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: solutions manual to Applied Econometric Time Series, 2nd Edition by Enders
Next Topic: changing matrix size using interpolation

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

Current Time: Wed Oct 08 16:50:33 PDT 2025

Total time taken to generate the page: 0.00460 seconds