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

Home » Public Forums » archive » Re: Simple issue with PLOTS?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Simple issue with PLOTS? [message #81672] Tue, 09 October 2012 11:41 Go to previous message
Rob.Dimeo is currently offline  Rob.Dimeo
Messages: 21
Registered: September 2007
Junior Member
Bill,

Well....not too much futzing...

I used your approach and it works nicely now. Thanks,

Rob

pro test_grid_win
; Test program
xsize = (ysize = 500)
device,decomposed = 0 & loadct,0,/silent
nx = 10 & board = byte(round(randomu(s,nx,nx)))

window,0,xsize = xsize,ysize = ysize
dx = 1./float(nx)
erase,255B
plot, [0,1],[0,1], /nodata, xgrid=1, ygrid=1,background = 255B,xmargin
= [1,1],ymargin = [1,1],/noerase
c1 = convert_coord(0.,0.,/data,/to_device)
c2 = convert_coord(1.,1.,/data,/to_device)
nxsize = c2[0] - c1[0]
nysize = c2[1] - c1[1]

tv,byte(255*congrid(board,nxsize,nysize)),c1[0],c1[1],xsize =
nxsize,ysize = nysize,/device
for j = 0,nx do oplot,[j*dx,j*dx],[0.0,1.0], color = 0B
for j = 0,nx do oplot,[0.0,1.0],[j*dx,j*dx], color = 0B
end
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Simple issue with PLOTS?
Next Topic: using a custom build script (IDL 8.2)?

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

Current Time: Fri Oct 10 12:51:50 PDT 2025

Total time taken to generate the page: 2.56353 seconds