ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* mpost problem [graph]
@ 2000-11-28 12:38 Marc van Dongen
  2000-11-28 17:16 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Marc van Dongen @ 2000-11-28 12:38 UTC (permalink / raw)


Hello there,

Again, this is one of my mpost and non-ConTeXt postings.
Appologies to those who are offended.

I would be delighted if somebody could help me out
with the following. I am using the mpost program as
appended below. It produces an eps which doesn't show
the minus-signs in the formula
 $\upb_{{\cal{D}}} - \avg_{{\cal{D}}}$
and on the vertical axis of the graph that is drawn.

I must have overlooked something. Any suggestions?
Thanks a mille advance.

Marc van Dongen
-- 
     Marc van Dongen, CS Dept | phone:  +353 21 4903578
University College Cork, NUIC | Fax:    +353 21 4903113
  College Road, Cork, Ireland | Email: dongen@cs.ucc.ie
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
verbatimtex
\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathptm}
\DeclareMathOperator{\avg}{avg}
\DeclareMathOperator{\upb}{upb}
\begin{document}
etex;

defaultfont := "cmr12";
defaultscale := 12pt /fontsize defaultfont;
input mp-tool;
input graph;

beginfig(1);
  draw begingraph(3u,2u);
        gdraw "data.dat";
        glabel.lft (btex $\upb_{{\cal{D}}} - \avg_{{\cal{D}}}$ etex, 9, 1);
  endgraph;
endfig;

end.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
data.dat
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1 -1.0
2 -1.375
3 -1.0430000000000001
4 -0.6229999999999993
5 -0.2870000000000008
6 -0.05799999999999983
7 0.09050000000000047
8 0.17599999999999838
9 0.23140000000000072
10 0.2619000000000007
11 0.2789999999999999
12 0.2886000000000024
13 0.2933000000000021
14 0.29620000000000246
15 0.2972999999999999
16 0.2989999999999995
17 0.2989999999999995
18 0.29949999999999477
19 0.2996999999999943
20 0.2997999999999976


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

end of thread, other threads:[~2000-11-28 18:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-28 12:38 mpost problem [graph] Marc van Dongen
2000-11-28 17:16 ` Hans Hagen
2000-11-28 17:50   ` Marc van Dongen
2000-11-28 18:50     ` Marc van Dongen

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).