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

Home » Public Forums » archive » Plotting Graphics-IDL beginner
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
Plotting Graphics-IDL beginner [message #93840] Wed, 02 November 2016 13:34 Go to next message
smnadoum is currently offline  smnadoum
Messages: 24
Registered: June 2016
Junior Member
I am doing some exercises from a book and I have a question about two-panel.
I need to set a two panel page for graphics for two plots to be side by side. and then create a scatter plot by plotting the second band against the first band. and finally subset the second band and assign it to variable 'a' and subset the third bands and assign it to variable 'b' and then plot 'a' agains 'b'

this is what I've done:

!p.multi= [0,2]
plot, img(*,*,1), img(*,*0), psym=2

a= [*,*1];subset the second band
b= [*,*,2];subset the third band
plot, a,b

filename='ab.jpeg'
write_jpeg,'filename',tvrd()

filename='ab.bmp'
write_bmp,'filename',tvrd()

I saved the graphics as jpeg and bmp


Is it correct?
Thanks
Re: Plotting Graphics-IDL beginner [message #93841 is a reply to message #93840] Wed, 02 November 2016 15:50 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Wednesday, November 2, 2016 at 4:34:09 PM UTC-4, Cheryl wrote:
> I am doing some exercises from a book and I have a question about two-panel.
> I need to set a two panel page for graphics for two plots to be side by side. and then create a scatter plot by plotting the second band against the first band. and finally subset the second band and assign it to variable 'a' and subset the third bands and assign it to variable 'b' and then plot 'a' agains 'b'

> ...
> Is it correct?

What do you think? I'm a firm believer of trying things.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: List Structure of .Sav
Next Topic: ts_smooth and nan

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

Current Time: Wed Oct 08 09:13:45 PDT 2025

Total time taken to generate the page: 0.11019 seconds