[metapost] [bug] graph.mp ignores defaultfont

Stephan Hennig mailing_list at arcor.de
Wed Feb 21 01:22:20 CET 2007


Hi,

in the following example x-axis labels are set in Palatino, but the
y-axis labels are set in CM.  Is this a bug or is there a way to make
autogrid obey defaultfont?

Best regards,
Stephan Hennig


%%%%  cut below this line and name the file "graphbug.mp"  %%%%
% 0.1	0
% 0.2	1
% 0.3	1
% 0.4	6
% 0.5	4
% 0.6	6
% 0.7	1
% 0.8	4
% 0.9	4
% 1	1

defaultfont := "pplr8r";
input graph
prologues := 1;

%%% defaultfont has no effect on y-axis.
beginfig(1);
  draw begingraph(8cm,6cm);
    setrange(origin, 1.1, whatever);
    gdraw("graphbug.mp");
    autogrid(,otick.lft);
    for x=0 step 2 until 10:
      otick.bot(decimal (x/10), x/10);
    endfor
  endgraph;
endfig;
end
%%%%  cut above this line  %%%%


More information about the metapost mailing list