Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I would like to make some png figures with gnuplot because I can tex them quickly into a draft and they are much smaller than the similar eps or pdf figures (and so don't freeze my tex environment). However I am having trouble getting greek letters to come out in the png terminal. Otherwise the png figures look fine and they are so much faster to work with!

I am running gnuplot Version 4.4 patchlevel 3 on snow leopard on a mac. I have this in my .profile

export GDFONTPATH=/Library/Fonts/ 

so that the gnuplot png terminal can find my fonts.

The error I get is this:

gdImageStringFT: No character set found while printing string a with font Symbol

I am using

 set term png enhanced

Undercores and exponents work fine like

set xlabel "x_2".

I tried a bunch of different fonts -- they all look fine, just the symbols don't show up.
For example

set xlabel "{/Symbol a}"

gives the error above for gd

I did manage to get some unicode to display on a png terminal but can't figure out how to choose the characters in a text file (apparently I can only cut and past them in and there is no other way to choose them?).

I could go back to pdf or eps and convert to something smaller so my tex manuscript is not swamped by slow large figures.

Suggestions for a fix would be much appreciated!

share|improve this question
2  
I am not sure this question is relevant to TeX.sx. I am also not entirely certain how your pdf outputs can be so much bigger than png outputs. eps will indeed be much larger that pdf but the pdf should be fairly small unless you are talking about very complex figures. Anyway, 4.4 and the newer 4.6 version has the cairo based outputs (pngcairo, pdfcairo,...) which should have better compatibility with fonts (however I do not know if these are available in the OS X version. –  ArTourter Jun 11 '12 at 22:35
    
Welcome to TeX.SE. –  Peter Grill Jun 11 '12 at 22:43
    
I don't see what's the issue with the question. It is clearly TeX related, and the FAQ cites "Related software and tools, BibTeX, MakeIndex, Lyx, etc." as scope of the site. –  Vivi Jun 12 '12 at 1:14
    
Thanks Peter Grill your edit will help me better edit my future posts! –  Alice Jun 12 '12 at 11:06
    
ARTourter Upgrading to gnuplot 4.6 and using the terminal pngcairo fixes the problem! As you suggested. Thanks! –  Alice Jun 12 '12 at 13:13
add comment

closed as too localized by Joseph Wright Oct 6 '12 at 21:29

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.