Re: Noerase on Shade_Surf [message #67488] |
Thu, 30 July 2009 17:55 |
vikramivatury
Messages: 24 Registered: May 2009
|
Junior Member |
|
|
On Jul 30, 4:28 pm, David Fanning <n...@dfanning.com> wrote:
> Vikram writes:
>> I was wondering if there is a way to plot more that one figure using
>> Shade_Surf on the same plot? I have tried /NOERASE but that doesn't
>> seem to be working....
>
> Shade_Surf actually returns an image, not a plot,
> so you have to fake it out. You could do side-by-side
> shade surfaces like this:
>
> window, 1, xsize=600, ysize=300
> window, 2, xsize=300, ysize=300, /pixmap
> shade_surf, dist(100)
> wset, 1
> device, copy=[0, 0, 300, 300, 0, 0, 2]
> wset, 2
> erase
> shade_surf, shift(dist(100), 50, 25)
> wset, 1
> device, copy=[0, 0, 300, 300, 300, 0, 2]
> wdelete, 2
> end
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Coyote's Guide to IDL Programming (www.dfanning.com)
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Thanks Dr. Fanning, I will give that a go and see what happens...
-Vikram
|
|
|
Re: Noerase on Shade_Surf [message #67493 is a reply to message #67488] |
Thu, 30 July 2009 13:28  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Vikram writes:
> I was wondering if there is a way to plot more that one figure using
> Shade_Surf on the same plot? I have tried /NOERASE but that doesn't
> seem to be working....
Shade_Surf actually returns an image, not a plot,
so you have to fake it out. You could do side-by-side
shade surfaces like this:
window, 1, xsize=600, ysize=300
window, 2, xsize=300, ysize=300, /pixmap
shade_surf, dist(100)
wset, 1
device, copy=[0, 0, 300, 300, 0, 0, 2]
wset, 2
erase
shade_surf, shift(dist(100), 50, 25)
wset, 1
device, copy=[0, 0, 300, 300, 300, 0, 2]
wdelete, 2
end
Cheers,
David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|