Hi all
I wanted to plot grid overlaid my TWO images and I used the following code:
cgImage, Im1, /AXES, AXKeywords={XTicklen:1.0, YTickLen:1.0, axiscolor:'red8', xminor:1, yminor:1, xtickinterval:30, ytickinterval:30}, position=[0.0,0.0,0.5,1.0]
cgimage, Im2, /AXES, AXKeywords={XTicklen:1.0, YTickLen:1.0, axiscolor:'red8', xminor:1, yminor:1, xtickinterval:30, ytickinterval:30, ytickname:REPLICATE(' ', 31)}, position=[0.5,0.0,1.0,1.0], /noerase
Now I have SIX images and I used the following:
cgimage, Im1,/SAVE,Position=pos[*,0]
cgimage, Im2, Position=pos[*,1],/SAVE, /NOERASE
cgimage, Im3,Position=pos[*,2], /Save, /NoErase
cgimage, Im4,Position=pos[*,3],/Save, /NoErase
cgimage, Im5, Position=pos[*,4],/Save, /NoErase
cgimage, Im6,Position=pos[*,5],/Save, /NoErase
I want to plot the grid on the second and third images. I combined my codes as shown below but because I duplicate the keyword position I got an error.
cgimage, Im2, Position=pos[*,1],/AXES, AXKeywords={XTicklen:1.0, YTickLen:1.0, axiscolor:'red8', xminor:1, yminor:1, xtickinterval:30, ytickinterval:30}, position=[0.0,0.0,0.5,1.0], /SAVE, /NOERASE
cgimage, Im3,Position=pos[*,2],/AXES, AXKeywords={XTicklen:1.0, YTickLen:1.0, axiscolor:'red8', xminor:1, yminor:1, xtickinterval:30, ytickinterval:30, ytickname:REPLICATE(' ', 31)}, position=[0.5,0.0,1.0,1.0], /Save, /NoErase
Can anyone help with this?
|