ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* m-graph label
@ 2022-07-16 17:21 John Kitzmiller via ntg-context
  2022-07-20 13:48 ` Alan via ntg-context
  0 siblings, 1 reply; 7+ messages in thread
From: John Kitzmiller via ntg-context @ 2022-07-16 17:21 UTC (permalink / raw)
  To: ntg-context; +Cc: John Kitzmiller


[-- Attachment #1.1: Type: text/plain, Size: 656 bytes --]

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 #1.2: Type: text/html, Size: 1464 bytes --]

[-- Attachment #2: mwe.pdf --]
[-- Type: application/pdf, Size: 7211 bytes --]

[-- Attachment #3: Type: text/plain, Size: 496 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-07-30 21:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-16 17:21 m-graph label John Kitzmiller via ntg-context
2022-07-20 13:48 ` Alan via ntg-context
2022-07-21 21:56   ` John Kitzmiller via ntg-context
2022-07-26 17:51     ` Alan via ntg-context
2022-07-30 21:04       ` John Kitzmiller via ntg-context
2022-07-26 18:26     ` Alan via ntg-context
2022-07-30 21:14       ` John Kitzmiller via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).