[NTG-context] m-graph label
John Kitzmiller
jkitzm at gmail.com
Sat Jul 16 19:21:06 CEST 2022
The horizontal axis label of mwe below has 0.0 (showing tenths; pdf
attached; filename is mwe.tex).
I expected it to show -1, 0, 1, 2, 3, (integers only). Can this be
formatted?
% -1 1
% 0 1
% 0 2
% 1 1
% 2 1
% 2 2
% 2 3
% 2 4
% 3 1
% 3 2
\usemodule[m-graph]
\startMPpage[instance=graph, offset=5mm]
labeloffset:=3mm;
draw begingraph(8cm,4cm);
setrange(-1.5,0.5,3.5,5);
picture symbol ;
symbol := image(draw fullcircle scaled 5mm withcolor red;);
gdata("mwe.tex", v,
clearxy;
glabel(symbol,v1,v2) ;
);
frame.bot shifted(0,-2mm) ;
autogrid(otick.bot,) shifted(0,-2mm);
endgraph;
\stopMPpage
Thanks! John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220716/b218bb84/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mwe.pdf
Type: application/pdf
Size: 7211 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220716/b218bb84/attachment.pdf>
More information about the ntg-context
mailing list