1 Jun 2010 11:08
Metapost capacity exceeded
Steve Mohr <stevieboy-frontline <at> hotmail.com>
2010-06-01 09:08:54 GMT
2010-06-01 09:08:54 GMT
Hi
I'm trying to make a large number of plots in Mpost (~1000 of the type below)
I'm getting an error of
! MetaPost capacity exceeded, sorry [independent variables=33554431].
Sample code below
Any ideas how to get around the issue? is there a way to unassign variables?
Many Thanks
Steve
beginfig(377);
draw begingraph(3.5in,2.8in);
gfill "BG\\Countries\\Guyana.txt" withcolor (1,0,0);
gdraw "BG\\Countries\\Guyana.txt";
gfill "BG\\Countries\\Guyana.txt" withcolor (0,0,1);
gdraw "BG\\Countries\\Guyana.txt";
glabel.lft(btex Production (Mt/y) etex rotated 90,OUT);
glabel.bot(btex Time etex,OUT);
setrange("2000","0","2150",".38087595");
autogrid(,otick.lft);
otick.bot(btex 2000 etex, 2000);
otick.bot(btex 2050 etex, 2050);
otick.bot(btex 2100 etex, 2100);
otick.bot(btex 2150 etex, 2150);
closefrom("BG\\Countries\\Guyana.txt");
endgraph;
pair p[], q[], r[], s[], t[];
q[1]:=(-1cm,-1.200000000cm);
r[1]:=(-0.2cm,-1.200000000cm);
s[1]:=(-0.2cm,-1.600000000cm);
t[1]:=(-1cm,-1.600000000cm);
fill q[1]--r[1]--s[1]--t[1]--cycle withcolor (0,0,1);
draw q[1]--r[1]--s[1]--t[1]--cycle;
label.lrt(btex Conventional etex, r[1]);
q[2]:=(4.5cm,-1.200000000cm);
r[2]:=(5.3cm,-1.200000000cm);
s[2]:=(5.3cm,-1.600000000cm);
t[2]:=(4.5cm,-1.600000000cm);
fill q[2]--r[2]--s[2]--t[2]--cycle withcolor (1,0,0);
draw q[2]--r[2]--s[2]--t[2]--cycle;
label.lrt(btex Conventional etex, r[2]);
endfig;
Find it at CarPoint.com.au New, Used, Demo, Dealer or Private?
I'm trying to make a large number of plots in Mpost (~1000 of the type below)
I'm getting an error of
! MetaPost capacity exceeded, sorry [independent variables=33554431].
Sample code below
Any ideas how to get around the issue? is there a way to unassign variables?
Many Thanks
Steve
beginfig(377);
draw begingraph(3.5in,2.8in);
gfill "BG\\Countries\\Guyana.txt" withcolor (1,0,0);
gdraw "BG\\Countries\\Guyana.txt";
gfill "BG\\Countries\\Guyana.txt" withcolor (0,0,1);
gdraw "BG\\Countries\\Guyana.txt";
glabel.lft(btex Production (Mt/y) etex rotated 90,OUT);
glabel.bot(btex Time etex,OUT);
setrange("2000","0","2150",".38087595");
autogrid(,otick.lft);
otick.bot(btex 2000 etex, 2000);
otick.bot(btex 2050 etex, 2050);
otick.bot(btex 2100 etex, 2100);
otick.bot(btex 2150 etex, 2150);
closefrom("BG\\Countries\\Guyana.txt");
endgraph;
pair p[], q[], r[], s[], t[];
q[1]:=(-1cm,-1.200000000cm);
r[1]:=(-0.2cm,-1.200000000cm);
s[1]:=(-0.2cm,-1.600000000cm);
t[1]:=(-1cm,-1.600000000cm);
fill q[1]--r[1]--s[1]--t[1]--cycle withcolor (0,0,1);
draw q[1]--r[1]--s[1]--t[1]--cycle;
label.lrt(btex Conventional etex, r[1]);
q[2]:=(4.5cm,-1.200000000cm);
r[2]:=(5.3cm,-1.200000000cm);
s[2]:=(5.3cm,-1.600000000cm);
t[2]:=(4.5cm,-1.600000000cm);
fill q[2]--r[2]--s[2]--t[2]--cycle withcolor (1,0,0);
draw q[2]--r[2]--s[2]--t[2]--cycle;
label.lrt(btex Conventional etex, r[2]);
endfig;
Find it at CarPoint.com.au New, Used, Demo, Dealer or Private?
-- http://tug.org/metapost/
RSS Feed