Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Simple issue with PLOTS?

Received: by 10.224.213.1 with SMTP id gu1mr15446101qab.7.1349808088416;
        Tue, 09 Oct 2012 11:41:28 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.236.88.236 with SMTP id a72mr30781yhf.20.1349808088380; Tue,
 09 Oct 2012 11:41:28 -0700 (PDT)
Path: r17ni12790870qap.0!nntp.google.com!l8no33319179qao.0!postnews.google.com!w3g2000yqe.googlegroups.com!not-for-mail
Newsgroups: comp.lang.idl-pvwave
Date: Tue, 9 Oct 2012 11:41:28 -0700 (PDT)
Complaints-To: groups-abuse@google.com
Injection-Info: w3g2000yqe.googlegroups.com; posting-host=96.241.171.175; posting-account=a8YsjgoAAACwDaSyxsLisGdouVL4UWQF
NNTP-Posting-Host: 96.241.171.175
References: <478fd453-c390-4d4e-b2cd-7a1013432918@w3g2000yqe.googlegroups.com>
 <9069feb2-9ef0-4b90-aec4-ccbd10474aaa@googlegroups.com> <eeca9466-b113-4110-80ac-c4752891e026@i14g2000yqe.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4
 (KHTML, like Gecko) Chrome/22.0.1229.92 Safari/537.4,gzip(gfe)
Message-ID: <2e324a8e-76a9-4141-90ad-1cbbf8f9cb17@w3g2000yqe.googlegroups.com>
Subject: Re: Simple issue with PLOTS?
From: Rob <rob.di...@gmail.com>
Injection-Date: Tue, 09 Oct 2012 18:41:28 +0000
Content-Type: text/plain; charset=ISO-8859-1

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