summaryrefslogtreecommitdiff
path: root/tex/context/base/m-graph.mkiv
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/m-graph.mkiv')
-rw-r--r--tex/context/base/m-graph.mkiv25
1 files changed, 13 insertions, 12 deletions
diff --git a/tex/context/base/m-graph.mkiv b/tex/context/base/m-graph.mkiv
index c80e4ad91..25933d9eb 100644
--- a/tex/context/base/m-graph.mkiv
+++ b/tex/context/base/m-graph.mkiv
@@ -67,11 +67,12 @@
if unknown context_grap: input "mp-grap.mpiv" ; fi ;
\stopMPdefinitions
-% gone:
-%
-% \startMPextensions
-% if unknown Fe_plus : picture Fe_plus ; Fe_plus := textext("+") ; fi ;
-% \stopMPextensions
+% For backwards compatibility (for the moment), also load the graph macros in
+% the standard MP instance (scaled integer):
+
+\startMPdefinitions
+ if unknown context_grap: input "mp-grap.mpiv" ; fi ;
+\stopMPdefinitions
\protect
@@ -79,7 +80,7 @@
\starttext
-\startMPpage
+\startMPpage[instance=graph]
label(format("@g","1e-8"), (0, 0)) ;
label(format("@g","1e+8"), (2cm, 0)) ;
label(format("@g","1e-10"), (0, -0.5cm)) ;
@@ -94,19 +95,19 @@
label(format("@g","1e+102"),(2cm,-2.5cm)) ;
\stopMPpage
-% \startMPpage
+% \startMPpage[instance=graph]
% draw begingraph(3in,2in);
% gdraw "t:/metapost/grphdata/agepop91.d";
% endgraph;
% \stopMPpage
-% \startMPpage
+% \startMPpage[instance=graph]
% draw begingraph(3in,2in);
% gdraw "agepop91.d" plot btex $\bullet$ etex;
% endgraph;
% \stopMPpage
-% \startMPpage
+% \startMPpage[instance=graph]
% draw begingraph(3in,2in);
% glabel.lft(btex \vbox{\hbox{Population} \hbox{in millions}} etex, OUT);
% glabel.bot(btex Age in years etex, OUT);
@@ -114,7 +115,7 @@
% endgraph;
% \stopMPpage
-% \startMPpage
+% \startMPpage[instance=graph]
% draw begingraph(3in,2in);
% glabel.lft(btex \vbox{\hbox{Population} \hbox{in millions}} etex, OUT);
% glabel.bot(btex Age in years etex, OUT);
@@ -123,7 +124,7 @@
% endgraph;
% \stopMPpage
-% \startMPpage
+% \startMPpage[instance=graph]
% draw begingraph(2.3in,2in);
% setcoords(log,log);
% glabel.lft(btex Seconds etex,OUT);
@@ -136,7 +137,7 @@
% endgraph;
% \stopMPpage
-% \startMPpage
+% \startMPpage[instance=graph]
% draw begingraph(6.5cm,4.5cm);
% setrange(80,0, 90,whatever);
% glabel.bot(btex Year etex, OUT);