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

* Re: mpost problem [graph]
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2000-11-28 17:16 UTC (permalink / raw)
  Cc: Mailing List

At 12:38 PM 11/28/00 +0000, Marc van Dongen wrote:
>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.

You may try different values of prologues, say prologues := 0 ; after
loading mp-tool. 

Otherwise, use mptopdf to convert the mp graphic to pdf and view that one
[or convert it back to ps afterwards]. 

BTW, i have an experimental extension to the graph macros doing real tex
instead of pseudo tex. 

Hans
-------------------------------------------------------------------------
                                                  Hans Hagen | PRAGMA ADE
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* Re: mpost problem [graph]
  2000-11-28 17:16 ` Hans Hagen
@ 2000-11-28 17:50   ` Marc van Dongen
  2000-11-28 18:50     ` Marc van Dongen
  0 siblings, 1 reply; 4+ messages in thread
From: Marc van Dongen @ 2000-11-28 17:50 UTC (permalink / raw)
  Cc: Mailing List

Hans Hagen (pragma@wxs.nl) wrote:

: You may try different values of prologues, say prologues := 0 ; after
: loading mp-tool. 

That didn't work. I tried 0, 1, 2.

: Otherwise, use mptopdf to convert the mp graphic to pdf and view that one
: [or convert it back to ps afterwards]. 

mptopdf. Isn't that a tex-thingy? I don't have mptopdf
at the moment. I'll try to find it over the weekend and
see if that solves the problem.  I recll I had it some
time ago. Possibly as part of a ConTeXt distribution.

: BTW, i have an experimental extension to the graph macros doing real tex
: instead of pseudo tex. 

Now that would be interesting...
Thanks for the suggestions.

Regards,

Marc


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

* Re: mpost problem [graph]
  2000-11-28 17:50   ` Marc van Dongen
@ 2000-11-28 18:50     ` Marc van Dongen
  0 siblings, 0 replies; 4+ messages in thread
From: Marc van Dongen @ 2000-11-28 18:50 UTC (permalink / raw)
  Cc: Mailing List

Marc van Dongen (dongen@cs.ucc.ie) wrote:

: Hans:
: : You may try different values of prologues, say prologues := 0 ; after
: : loading mp-tool. 
: 
: That didn't work. I tried 0, 1, 2.

It does work! I must check out my ghostview. If I include the
eps (yes I am not producing pdf at the moment) it comes out
fine. Thanks.

Regards,

Marc


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