Re: Problema con file .mp

#90283
Up
0
Down
::

giuseppegerax” post=89822Salve a tutti, sono nuovo del mondo Context. Sto iniziando ad usarlo per la tesi. Purtroppo ho un file che mi da problemi di compilazione, ma non riesco a capire dove sia l’errore, potreste darmi gentilmente una mano?

`
input graph
u=0.5cm;
beginfig(0);
draw dashpattern(on 5bp);
picture pa;
pa=currentpicture;
currentpicture:=nullpicture;
draw dashpattern(on 5bp off 2bp);
picture pb;
pb=currentpicture;
currentpicture:=nullpicture;
draw dashpattern(on 1bp off 2bp);
picture pc;
pc=currentpicture;
currentpicture:=nullpicture;
draw dashpattern(on 5bp off 2bp on 1bp off 2bp);
picture pd;
pd=currentpicture;
currentpicture:=nullpicture;
draw dashpattern(on 5bp off 2bp on 5bp off 2bp on 1bp off 2bp on 1bp off 2bp);
picture pe;
pe=currentpicture;
currentpicture:=nullpicture;
draw dashpattern(on 5bp off 2bp on 5bp off 2bp on 1bp off 2bp );
picture pf;
pf=currentpicture;
currentpicture:=nullpicture;
draw dashpattern(on 1bp off 2bp on 1bp off 2bp on 5bp off 2bp );
picture pg;
pg=currentpicture;
currentpicture:=nullpicture;
draw begingraph(6cm,6cm);
glabel.lft(btex Throughput (bps) etex rotated 90, OUT);
glabel.bot(btex sources etex, OUT);
gdraw “thr_olsrmos_20_30_300_0.05_1.txt” withcolor 0.75black dashed pa;
draw (12, 1)*u–(14, 1)*u withcolor 0.75black dashed pa;
label.bot(btex T=1 \Delta=0.05 etex scaled 0.5, (13, 1)*u);
label.top(btex OLSR-MOS: etex scaled 0.5, (13, 2)*u);
gdraw “thr_olsr_20_30_300.txt” withcolor 0.75red;
draw (12, 8)*u–(14, 8)*u withcolor 0.75red;
label.bot(btex OLSR etex scaled 0.5, (13, 8)*u);
autogrid(grid.bot,grid.lft) withcolor 0.95white;
frame.llft;
gdraw “thr_olsrmos_20_30_300_0.05_1.txt” withcolor 0.75black dashed pa;
draw (12, 1)*u–(14, 1)*u withcolor 0.75black dashed pa;
label.bot(btex T=1 \Delta=0.05 etex scaled 0.5, (13, 1)*u);
label.top(btex OLSR-MOS: etex scaled 0.5, (13, 2)*u);
gdraw “thr_olsr_20_30_300.txt” withcolor 0.75red;
draw (12, 8)*u–(14, 8)*u withcolor 0.75red;
label.bot(btex OLSR etex scaled 0.5, (13, 8)*u);
endgraph;
endfig;
end

`

[attachment=813]ftt_olsrmos_20_30_300_0.05_1.txt[/attachment]

[attachment=814]ftt_olsr_20_30_300.txt[/attachment]

[attachment=815]ftt_olsr_20_30_300_2013-11-12.txt[/attachment]

I file hanno un nome diverso da quello che scrivi nel documento di esempio; cambio nome e tutto funziona, purché aggiunga [tt]$[/tt] dove serve:
`btex $T=1$ $\Delta=0.05$ etex`
Ciao
Enrico

Go to top