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

Home » Public Forums » archive » Problem with .eps figure losing annotation in a LaTeX document
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
Problem with .eps figure losing annotation in a LaTeX document [message #92111] Wed, 14 October 2015 11:50 Go to next message
BLesht is currently offline  BLesht
Messages: 89
Registered: March 2007
Member
I use LaTeX (via TeXShop (v3.56) on a Mac (OSX10.8.5) for documents. I generate most of my graphics using IDL (v8.2). This always has worked well in the past. Today, I generated a new plot using the same code (based on Coyote graphics) that I've used before and saved it (as before) as an .eps file. Now, however, when I import it into my LaTeX document, all the alphabetic annotation (including decimal points) disappears from the axis annotations and from any text that I have included in the plot. When I view the .eps file using either Preview on the Mac or gv, it looks fine - nothing is missing.

I'm not entirely sure that this is an IDL issue or if it something do with with TexShop (I posted a question to that group as well), or maybe something with ghostscript (version 9.16). I was wondering if anyone else had had a similar problem or maybe has some insight into what might be going on.

Thanks.
Re: Problem with .eps figure losing annotation in a LaTeX document [message #92112 is a reply to message #92111] Wed, 14 October 2015 14:05 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Wednesday, October 14, 2015 at 12:50:41 PM UTC-6, Barry Lesht wrote:
> I use LaTeX (via TeXShop (v3.56) on a Mac (OSX10.8.5) for documents. I generate most of my graphics using IDL (v8.2). This always has worked well in the past. Today, I generated a new plot using the same code (based on Coyote graphics) that I've used before and saved it (as before) as an .eps file. Now, however, when I import it into my LaTeX document, all the alphabetic annotation (including decimal points) disappears from the axis annotations and from any text that I have included in the plot. When I view the .eps file using either Preview on the Mac or gv, it looks fine - nothing is missing.
>
> I'm not entirely sure that this is an IDL issue or if it something do with with TexShop (I posted a question to that group as well), or maybe something with ghostscript (version 9.16). I was wondering if anyone else had had a similar problem or maybe has some insight into what might be going on.
>
> Thanks.

Hi Barry,

Do you happen to have any old IDL EPS files that worked in the past? You could import those into LaTeX and see what happens. If they also fail then that eliminates IDL from the problem, and suggests that something else changed like TeXShop, your Mac install, or ghostscript.

Cheers,
Chris
Re: Problem with .eps figure losing annotation in a LaTeX document [message #92113 is a reply to message #92111] Wed, 14 October 2015 14:14 Go to previous messageGo to next message
BLesht is currently offline  BLesht
Messages: 89
Registered: March 2007
Member
Gee - I'm embarrassed not to have thought of this (seriously). Thanks, Chris! I'm in the middle of something else now but will give it a shot as soon as I can.

Barry
Re: Problem with .eps figure losing annotation in a LaTeX document [message #92114 is a reply to message #92111] Wed, 14 October 2015 15:00 Go to previous messageGo to next message
BLesht is currently offline  BLesht
Messages: 89
Registered: March 2007
Member
I did as Chris suggested and imported an old (dating from late January 2015) .eps file that I generated in IDL (using the same code) to my LaTeX document. It imported without any problem. Therefore, I guess the issue is in the ghostscript (ImageMagik?) or possibly the Coyote graphics routines. My Coyote graphics is current with revision 1542. I know that I haven't updated IDL for a while (I'm still on v8.2.3), but I probably have updated gs (via MacPorts) and Coyote since January.

The strange thing is that with the exception of any alphabetic characters (and decimal points) the plot looks fine. Symbols, numbers, lines, colors all are correct. I'm wondering if this is a font issue of some sort?
Re: Problem with .eps figure losing annotation in a LaTeX document [message #92115 is a reply to message #92114] Wed, 14 October 2015 15:21 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Barry Lesht writes:

> I'm wondering if this is a font issue of some sort?

This would be my guess. Nothing has happened in Coyote Graphics in the
past year that would do anything like this.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: Problem with .eps figure losing annotation in a LaTeX document [message #92116 is a reply to message #92115] Wed, 14 October 2015 20:35 Go to previous messageGo to next message
BLesht is currently offline  BLesht
Messages: 89
Registered: March 2007
Member
Hi David - thanks. I added PS_FONT=1 to the cgCONTROL command I used to generate the plot and it now works. Why I had to do this when the code without the explicit PS_FONT keyword worked before is a mystery.

Barry
Re: Problem with .eps figure losing annotation in a LaTeX document [message #92117 is a reply to message #92116] Wed, 14 October 2015 20:51 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Barry Lesht writes:

> Hi David - thanks. I added PS_FONT=1 to the cgCONTROL command I used to generate the plot and it now works. Why I had to do this when the code without the explicit PS_FONT keyword worked before is a mystery.

That probably makes sense. Those old PostScript hardware fonts were
introduced in 1984. The Mac has probably outgrown them and now uses
polygon fonts (i.e., True-Type fonts) exclusively, rather than those old
outline fonts.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Memory leak in STRMID
Next Topic: psym=10

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

Current Time: Wed Oct 08 07:14:42 PDT 2025

Total time taken to generate the page: 0.00489 seconds