Back Home Up Next

Subchapters:

Multiple plots on a figure

To obtain multiple plots on the same figure, use the system variable p:

        

        IDL> x = findgen(100)
        IDL> y = fltarr(6,100)
        IDL> for i = 0,5 do y[i,*]=sin(x/100.*(i+1))
        IDL> !p.multi = [0,2,3]
        IDL> for i = 0,5 do plot , x , y[i,*]

 

It is also possible to insert a second plot inside a first one:

IDL> plot,x,y
IDL> plot,x,y,xrange=[0,10],position=[0.5,0.2,0.8,0.5],/noerase

 

IDL courses C. Morisset 2004 IA/UNAM V 2.2

Back Home Up Next