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

Home » Public Forums » archive » Simple issue with PLOTS?
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
Simple issue with PLOTS? [message #81675] Tue, 09 October 2012 10:08
Rob.Dimeo is currently offline  Rob.Dimeo
Messages: 21
Registered: September 2007
Junior Member
Hi,
It's been quite a while since I've programmed in IDL but I have a
problem with something very basic. I am drawing a grid using the PLOTS
command but the final lines are not being drawn (i.e. the top and
rightmost lines). I might use a hack to get it to look right (i.e.
enlarge the window by a few pixels) but it's not a very elegant
solution. Below I list a simple procedure that shows the issue. You
should see a window pop up with most of the grid except for lines
along the top and along the right. Any help on my pedestrian
problem? :o)
Thanks,
Rob

pro test_grid_win
; Test program that writes out a PNG file that captures the screen
with
; a grid drawn on it.
xsize = (ysize = 500)
device,decomposed = 0 & loadct,0,/silent
nx = 10
window,0,xsize = xsize,ysize = ysize
dx = 1./float(nx)
erase,255B
for j = 0,nx do plots,[j*dx,j*dx],[0.0,1.0],/normal,color = 0B
for j = 0,nx do plots,[0.0,1.0],[j*dx,j*dx],/normal,color = 0B
;filename = 'e:\test.png'
;WRITE_PNG, filename, TVRD(/TRUE)
end
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL Help on the web
Next Topic: Re: Simple issue with PLOTS?

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

Current Time: Wed Oct 08 18:43:57 PDT 2025

Total time taken to generate the page: 0.00655 seconds