On 29/04/08 17:18 +0200, Didier Raboud wrote: > Le mardi, 29 avril 2008 17.08:04 Thomas Weber, vous avez écrit : > > I get the warnings as well, but my plot contains the labels (maybe in a > > different font, I don't know). > > > > Thomas > > The plot itself contains the labels, but the saved version does not (for me).
I see. Okay, two questions: 1) Do you actually have the font "Helvetica"? Unless you paid for it, I doubt that, as it doesn't seem to be freely available. 2) Do you actually care about the font being "Helvetica"? As the answer to question 2 is probably "no", here you go: a) Set GDFONTPATH in your shell to a directory that contains the font you want to use, in my case export GDFONTPATH=/usr/share/fonts/truetype/msttcorefonts b) Start Octave and give the font type explicitely: figure; plot(1:2,1:2); xlabel('Label X', 'FontName', 'Arial'); ylabel('Label Y', 'FontName', 'Arial'); title('Title', 'FontName', 'Arial'); legend('Blue Line'); print('/tmp/testcase.png'); That worked for me, a more explicit explanation can be found at http://www.nabble.com/A-problem-with-fonts-and-or-printing-PNG-files--to15733340.html#a15798292 This is more of an issue of the interaction between GD and gnuplot than an Octave issue (apart from the fact that Octave sets the font to Helvetica explicitely). Thomas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]