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

Home » Public Forums » archive » v8 plot challenge
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
v8 plot challenge [message #74866] Sun, 06 February 2011 20:43 Go to next message
Marc Buie is currently offline  Marc Buie
Messages: 12
Registered: December 2010
Junior Member
Folks-

I have a challenge question regarding plotting.

I want to generate a plot with two curves. One curve will have an axis on the left labeling the range of that curve. The other curve will have a different axis on the right labeling a very different range of the second curve. All of this needs to be in one box. For this example the bottom axis can be identical for the two curves.

I know how to do this in direct graphics and I'm sure there's lots of other options out there in other plotting packages (like David Fanning's, for instance).

The challenge here is to demonstrate how to do such a thing with the new plotting functions. I've tried to do this with limited success so far. Following the example provided in the AXIS function documentation, it can be done but in a very inelegant manner. As far as I can tell, you are allowed only one plotting scale for a plot. If you map the values of the second curve onto the range of the first, it can be done. The ugly part is you have to do all the work for labeling tick marks.

What I want to do is to plot the actual values of the second curve and specify the yrange to view, thus setting up a second plot range that then carries into the axis and its automatic labels. Again, I know exactly how to do this in direct graphics. The question is, can this be done with the new plot functions?

Cheers,
Marc
Re: v8 plot challenge [message #74921 is a reply to message #74866] Tue, 08 February 2011 21:23 Go to previous message
Meredith Pind is currently offline  Meredith Pind
Messages: 13
Registered: February 2011
Junior Member
On Feb 7, 10:02 am, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Feb 7, 1:49 pm, Paulo Penteado <pp.pente...@gmail.com> wrote:
>
>> I just could not find out, in the second case, how to make the tick
>> labels and title show up on its right axis. They seem to be defined
>> the same as for the right side. My guess is that there is some
>> property I am missing.
>
> I meant to say that the properties for the right side looked the same
> as those for the left side (the subset of properties shown by print).
> So I could not tell why the labels and title were turned off on the
> right side.

Worked like a charm. Thank you!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: secondary y-axis won't plot on right hand side of graph
Next Topic: Re: secondary y-axis won't plot on right hand side of graph

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

Current Time: Wed Oct 08 19:27:30 PDT 2025

Total time taken to generate the page: 0.00538 seconds