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

Home » Public Forums » archive » strange output with xyouts
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
strange output with xyouts [message #85235] Thu, 18 July 2013 04:15 Go to previous message
yfjulien.pub is currently offline  yfjulien.pub
Messages: 4
Registered: July 2013
Junior Member
Hi,

This is my first time here, until now I managed to find answers to my problems through internet and forum searches but this time I couldn't find anything.

I am experiencing a strange IDL behaviour with the xyouts function. I am using it to put a time stamp (such as '2013-01-01 09H59') on an satellite image, with the following code:

device, retain=2, decomposed=0
loadct, 0, /silent
window, 2, xsize=1354, ysize=200
wset, 2
xyouts, 677, 50, '2013-01-01 09H59', $ alignment=.5,charsize=10,charthick=10,color=255, /device
dateLegend = tvrd(true=3)
wdelete, 2

Now comes the problem: sometimes I get the dateLegend right, and sometimes not. More exactly, some times I get what I expect, the '2013-01-01 09H59' time stamp which is then inserted in my satellite image, but sometimes I only get a dot at the (677,50) position, and that's it. Since this code is inserted in a big loop over different images, and that this 'not working' behaviour only affects some of the images, with a frequence that seems random to me, I am quite puzzled.

I have tried the cgText function from the coyote library, I get the same dot result for the cases that are not working with xyouts. When I change the font (!p.font = 0; instead of !p.font=-1) I get the output text OK, but then I am unable to get it as big as I need.

Has anyone experienced this kind of (I suppose) font problem with xyouts?

Thank you in advance for any help provided...
Cheers,

Yves
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: "Can't create pipe" on call to spawn.
Next Topic: Parallel and Perpendicular symbols in IDL 8 New Graphics.

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

Current Time: Wed Oct 08 15:53:55 PDT 2025

Total time taken to generate the page: 0.00420 seconds