From: "Adam Lindsay" <atl@comp.lancs.ac.uk>
Subject: MP graph auto axes
Date: Wed, 6 Nov 2002 19:13:56 +0000 [thread overview]
Message-ID: <20021106191356.7160@news.comp.lancs.ac.uk> (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/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
next reply other threads:[~2002-11-06 19:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-06 19:13 Adam Lindsay [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021106191356.7160@news.comp.lancs.ac.uk \
--to=atl@comp.lancs.ac.uk \
--cc=ntg-context@ref.ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).