ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with usemodule[graph]
@ 2017-03-02  8:33 Antoine Cailliau
  2017-03-02 14:56 ` Alan Braslau
  0 siblings, 1 reply; 2+ messages in thread
From: Antoine Cailliau @ 2017-03-02  8:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 538 bytes --]

Hi,

I'd like to use graph to draw my plots with metapost. However, the
following minimal file does not work:

\usemodule[graph]
> \starttext
> \startMPcode
>   draw begingraph(3in,2in);
>     gdraw "agepop91.d";
>   endgraph;
> \stopMPcode
> \stoptext


The complete output log is available here: http://pastebin.com/zuGaT87W

Thank you for your help !

I can generate the proper picture by writing only metapost code such as :

input graph
> beginfig(0);
> draw begingraph(3in,2in);
>   gdraw "agepop91.d";
> endgraph;
> endfig;
> end;

[-- Attachment #1.2: Type: text/html, Size: 1057 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Problem with usemodule[graph]
  2017-03-02  8:33 Problem with usemodule[graph] Antoine Cailliau
@ 2017-03-02 14:56 ` Alan Braslau
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Braslau @ 2017-03-02 14:56 UTC (permalink / raw)
  To: Antoine Cailliau; +Cc: mailing list for ConTeXt users

On Thu, 2 Mar 2017 09:33:38 +0100
Antoine Cailliau <antoinecailliau@gmail.com> wrote:

> Hi,
> 
> I'd like to use graph to draw my plots with metapost. However, the
> following minimal file does not work:
> 
> \usemodule[graph]
> > \starttext
> > \startMPcode
> >   draw begingraph(3in,2in);
> >     gdraw "agepop91.d";
> >   endgraph;
> > \stopMPcode
> > \stoptext

You have to use the "graph" MP instance:

\startMPcode{graph}
...
\stopMPcode

Alan
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2017-03-02 14:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-02  8:33 Problem with usemodule[graph] Antoine Cailliau
2017-03-02 14:56 ` Alan Braslau

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