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

Home » Public Forums » archive » Bug in XYOUTS?
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
Bug in XYOUTS? [message #13766] Fri, 27 November 1998 00:00
kashyap is currently offline  kashyap
Messages: 26
Registered: April 1993
Junior Member
Anyone know why XYOUTS "wraps" back? Why does it place labels
on the plot area even though the specified locations are waay
outside the view area?

Here is an example of what I mean..

xr=[99.9,100.1] & yr=[-20,20] ;define the plotting area
x=findgen(1000)*0.1+100. ;points at which to mark labels
;(expect only 2 within defined area)
y=randomn(seed,1000)*5. ;y-locations, staggered for readability
l=strtrim(x,2) ;labels, same as x-positions
plot,[0],xrange=xr,yrange=yr ;set up plotting area
xyouts,x,y,l ;plot the labels

the actual numbers that show up on the viewing area appear to
depend on the size of the window and XRANGE. Sometimes there
are also horizontal lines running across the window.

this does not happen if one sets plotting device to 'ps'

thanks to Jim Petreshock, I do have a workaround (use keyword
NOCLIP=0 for XYOUTS), but this feature is so strange that I
would like to know the explanation, if anyone knows it!

I am using IDL4 and IDL5.1 on Solaris 2.5 .

Thanks,
Vinay
____________________________________________________________ __________________
kashyap@head-cfa.harvard.edu 617 495 7173 [CfA/P-146] 617 496 7173 [F]
--
kashyap@ \
head-cfa.harvard.edu \
____________________________________________________________ __________\_______
Vinay Kashyap 617 495 7173 [P146] 617 591 9492 [H]
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Masking of land/sea
Next Topic: Direct Graphics Colorbar Object

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

Current Time: Wed Oct 08 13:57:10 PDT 2025

Total time taken to generate the page: 0.00281 seconds