ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* MP graph auto axes
@ 2002-11-06 19:13 Adam Lindsay
  2002-11-07  8:55 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Adam Lindsay @ 2002-11-06 19:13 UTC (permalink / raw)


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
 atl@comp.lancs.ac.uk
 http://www.comp.lancs.ac.uk/computing/users/atl/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-11-07 16:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-06 19:13 MP graph auto axes Adam Lindsay
2002-11-07  8:55 ` Hans Hagen
2002-11-07 12:11   ` Adam T. Lindsay
2002-11-07 13:36   ` Jens-Uwe Morawski
2002-11-07 15:03     ` Adam T. Lindsay
2002-11-07 16:50       ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).