Re: problems printing labels on graphs [message #14655 is a reply to message #14644] |
Mon, 15 March 1999 00:00   |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
R.Bauer (R.Bauer@fz-juelich.de ) writes:
>
>
> Stu wrote:
>
>> hello,
>>
>>> I have written an IDL procedure for displaying some data I have, this
>>> basically consists of displaying a grey-scale image (using TV), and then
>>> plotting a line graph directly below this image using PLOT. This data can
>>> be displayed on the screen or written to a PS or EPS file. The procedure
>>> also has the ability to change the type of font used (e.g. vector fonts,
>>> true type fonts, or hardware/device fonts {e.g. postscript}), and by using
>>> TITLE, SUBTITLE, XTITLE, and YTITLE, titles can be added to the axes and
>>> various parts of the plot.
>>>
>>> The procedure works correctly when displaying data to the screen, all the
>>> labels are printed correctly and the correct fonts are displayed. When
>>> writing to a file, the titles are only displayed when the procedure is
>>> called for the first time. I have to quit IDL and restart it each time in
>>> order for the titles to be printed on the plot. Note: this only seems to
>>> apply to vector and true type fonts, it is not necessary to quit each time
>>> when using postscript fonts - although the titles are printed each time,
>>> they're not printed in the correct place.
>>>
>> Anyone any ideas?
>> cheers,
>> Stu
>
> Did you close the device by device ,/close
Oh, good idea! :-)
This is clearly a programming error, not an IDL error.
I would bet some money on that!
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|