Plotting Graphics-IDL beginner [message #93840] |
Wed, 02 November 2016 13:34  |
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  |
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.
|
|
|