Hi Folks.

This is not strictly a ConTeXt problem, but I was hoping there were
enough MetaPost experts on the list that I might get an idea of what's
going on, or at the least, where to go for more information.

I think the MetaPost graphing features are fantastic. It produces very
nice output, and automatically handles a lot of axis labelling that other
packages don't bother with.

However, it auto-labels the y-axis on the following three graphs very
differently. I was wondering if this is a strict limitation in the axis
ranges that MetaPost deals with gracefully, or if it might be a bug. I
haven't seen any reference to the correct range for graph axes. I've
tried many ranges, and some work, some don't.

Would the MetaFont list be able to help?

\usemodule[graph]
%%  This one works as it should.
\startMPcode
draw begingraph(130mm,35mm);
  setrange(0,0,10,22000);
  glabel.lft(btex  {correct 0--22000} etex rotated 90, OUT);
  autogrid(itick.bot,grid.lft) withcolor .75white ;
  endgraph;
\stopMPcode

%% This one gives output, but yields incorrect labels
\startMPcode
draw begingraph(130mm,35mm);
  setrange(0,50,10,22000);
  glabel.lft(btex  {wrong 50--22000} etex rotated 90, OUT);
   autogrid(itick.bot,grid.lft) withcolor .75white ;
  endgraph;
\stopMPcode

%% This simply gives up.
\startMPcode
draw begingraph(130mm,35mm);
  setrange(0,110,10,22000);
  glabel.lft(btex  {failed 110--22000} etex rotated 90, OUT);
   autogrid(itick.bot,grid.lft) withcolor .75white ;
  endgraph;
\stopMPcode



Thanks in advance,
adam

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Adam Lindsay                  +44(0)1524 594 537
 [EMAIL PROTECTED]
 http://www.comp.lancs.ac.uk/computing/users/atl/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://ref.ntg.nl/mailman/listinfo/ntg-context

Reply via email to