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

Home » Public Forums » archive » Re: inset 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: inset plot [message #70485] Sat, 17 April 2010 00:12
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Apr 16, 11:52 pm, Craig Markwardt <craig.markwa...@gmail.com>
wrote:
> On Apr 16, 4:10 pm, Gray <grayliketheco...@gmail.com> wrote:
>
>> Hi all,
>
>> Does anyone know of a good way to produce an inset for a plot in
>> direct graphics?  I'd like to inset, for example, a zoom of a
>> particular wavelength range in a spectrum.  Thanks!
>
> Usually the /NOERASE keyword is useful to overlay a new plot on an
> existing plot, and the POSITION keyword to make a smaller plot box.
> For example,
>
> plot, findgen(10)
> plot, findgen(10), /noerase, position=[0.6,0.4,0.9,0.9]
>
> Good luck,
> Craig

Yes, that is true - I had forgotten about my friend the /noerase
keyword. I am now trying to decide whether it would be worth my (and
the IDL community's) time to write a routine that does some of the
position calculating for you, particularly when making an inset on a
page with multiple plots. Is this something people need, or should I
not worry about it?
Re: inset plot [message #70488 is a reply to message #70485] Fri, 16 April 2010 20:52 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Apr 16, 4:10 pm, Gray <grayliketheco...@gmail.com> wrote:
> Hi all,
>
> Does anyone know of a good way to produce an inset for a plot in
> direct graphics?  I'd like to inset, for example, a zoom of a
> particular wavelength range in a spectrum.  Thanks!

Usually the /NOERASE keyword is useful to overlay a new plot on an
existing plot, and the POSITION keyword to make a smaller plot box.
For example,

plot, findgen(10)
plot, findgen(10), /noerase, position=[0.6,0.4,0.9,0.9]

Good luck,
Craig
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Procedures and Functions - Checking Input Data for Validity
Next Topic: how many active IDL users are there?

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

Current Time: Fri Oct 10 07:29:58 PDT 2025

Total time taken to generate the page: 0.47971 seconds