From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9734 Path: main.gmane.org!not-for-mail From: "Adam Lindsay" Newsgroups: gmane.comp.tex.context Subject: MP graph auto axes Date: Wed, 6 Nov 2002 19:13:56 +0000 Sender: ntg-context-admin@ref.ntg.nl Message-ID: <20021106191356.7160@news.comp.lancs.ac.uk> Reply-To: ntg-context@ref.ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1036610215 22007 80.91.224.249 (6 Nov 2002 19:16:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 6 Nov 2002 19:16:55 +0000 (UTC) Return-path: Original-Received: from [131.211.172.13] (helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 189Vfa-0005ip-00 for ; Wed, 06 Nov 2002 20:16:54 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 3DA2410AF4; Wed, 6 Nov 2002 20:18:22 +0100 (MET) Original-Received: from tungsten.btinternet.com (tungsten.btinternet.com [194.73.73.81]) by ref.ntg.nl (Postfix) with ESMTP id DC6FC10AE6 for ; Wed, 6 Nov 2002 20:17:19 +0100 (MET) Original-Received: from host213-122-175-151.in-addr.btopenworld.com ([213.122.175.151]) by tungsten.btinternet.com with esmtp (Exim 3.22 #15) id 189Vfy-0005Lu-00 for ntg-context@ntg.nl; Wed, 06 Nov 2002 19:17:19 +0000 Original-To: "Ntg Context" X-Mailer: CTM PowerMail 4.0.1 carbon Errors-To: ntg-context-admin@ref.ntg.nl X-BeenThere: ntg-context@ref.ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:9734 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9734 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/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=