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

Home » Public Forums » archive » cgimage/overlaid grid
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
cgimage/overlaid grid [message #89748] Fri, 28 November 2014 03:32 Go to next message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
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?
Re: cgimage/overlaid grid [message #89749 is a reply to message #89748] Fri, 28 November 2014 08:25 Go to previous message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
OK, I found my mistake. I duplicate the keyword for no reason. I sorted that out.

I was wondering if there is a way to hide the numbers on x and y-axes and keep just the line.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Why is Smiling a Donation?
Next Topic: rebinning two arrays? or re: finding exclusive elements between 2 not-quite identical arrays?

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

Current Time: Wed Oct 08 09:14:06 PDT 2025

Total time taken to generate the page: 0.00367 seconds