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

Attachment: mwe.pdf
Description: Adobe PDF document

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

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

Reply via email to