Tue 24 Apr 2012 12:14:52 PM UTC, comment #1:
The following configuration in your octaverc would solve the problem for you:
Substitute whatever settings you like as your defaults.
I looked into this at some length for a different problem and came across the same line causing the problem for me. See
http://octave.1599824.n4.nabble.com/3-6-1-produces-eps-files-that-are-unusable-on-Debian-wheezy-td4438420.html
I don't think we never came to a consensus in that thread on whether this should be changed in Octave or not. I think the question is whether Octave should be in charge of setting a valid default font or whether it should be left to ghostscript to select the default font.
|
Sat 31 Mar 2012 10:40:56 AM UTC, original submission:
Consider the following code snipped:
Using octave 3.2.3 (ubuntu 10.04), the gnuplot backend produces the attached file plot.eps.correct, which is correct.
The same script with octave 3.6.1 (manually compiled from the tarball available at octave.org) produces the attached file plot.eps.wrong: note that the font used for title and axis labels is courier instead of helvetica.
By looking at octave-print-commands.log, I observe that Octave 3.2.3 outputs something like:
wihle Octave 3.6.1 outputs something like:
I believe that the problem lies in the font specification
To fix the wrong font name, the following workaround may work (it seems to work in this specific case, I am not claiming it is the correct fix to this problem): in scripts/plot/private/__go_draw_axes__.m, around line 2231, replace
with
Using the patch above, Octave 3.6.1 produces the attached file plot.eps.better, which looks better.
The font is a bit large, but this is not a bug (I actually prefer larger fonts since labels are more readable using the default plot size). The font can be manually reduced using:
|