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

Home » Public Forums » archive » Multiple axes and plots with NG
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Multiple axes and plots with NG [message #87164 is a reply to message #87161] Mon, 13 January 2014 07:16 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Monday, January 13, 2014 6:52:08 AM UTC-7, Matthew Argall wrote:
>> Well, first of all, your final plot looks really nice. [...] By definition, once a plot is created, then all other plots that go on top of it (using say /overplot) must share the same "data space". In other words, they are all assumed to have the same data units. [...]
>
>
>
> Great! Thanks! I had an idea of what /Overplot does, but it is good to know for sure. Could you clarify what TARGET does, too?
>
>
>
> In the following example, "theAxis" can have a different range from "thePlot", but they share the same scale, so "theAxis" does not become completely visible until I expand the axis range of "thePlot". I suppose if I wanted the axes to be the same length and have different scales, I would have to use the Coord_Transform keyword, right? (any chance of getting an exponential transform for linear/log-scaled axes?)...
>
>
>
> thePlot = Plot(/Test)
>
> theAxis = Axis('Y', LOCATION=[200, -1], Axis_Range=[-2,2], Color='Blue', TextPos=1, Target=thePlot)
>
> thePlot.XRange = [-5,5]

Hi Matthew,

Yes, the TARGET just says that this axis "belongs" to this dataspace, and should share the same range as that dataspace. So, you are correct, in your example, that axis is going to have a "range" of the original plot (probably [-1,1]), regardless of what you put in for the axis_range. The axis_range is really only useful for creating an axis that only extends partway. For example:
thePlot = Plot(/Test)
theAxis = Axis('Y', LOCATION=[200, -1], Axis_Range=[0,1], Color='Blue', TextPos=1, Target=thePlot)

I'd have to think carefully about the exponential transform. I'm not sure what that would mean for the actual data scaling within the dataspace. It's supposed to be tied 1-1 with the axis.

-Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Mann-Kendall test. Here
Next Topic: Why are you still here?

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

Current Time: Wed Oct 08 18:12:24 PDT 2025

Total time taken to generate the page: 0.00435 seconds