Re: inset plot [message #70485] |
Sat, 17 April 2010 00:12 |
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  |
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
|
|
|