From: Alan via ntg-context <ntg-context@ntg.nl>
To: John Kitzmiller via ntg-context <ntg-context@ntg.nl>
Cc: Alan <braslau.list@comcast.net>, John Kitzmiller <jkitzm@gmail.com>
Subject: Re: m-graph label
Date: Wed, 20 Jul 2022 07:48:29 -0600 [thread overview]
Message-ID: <20220720074829.691a4c13@boo.my.domain> (raw)
In-Reply-To: <CAHYz2AU9cvYCSX_156OK9Pi7JaE=4_dL7efjiJoofj5vrQ8sog@mail.gmail.com>
On Sat, 16 Jul 2022 13:21:06 -0400
John Kitzmiller via ntg-context <ntg-context@ntg.nl> wrote:
> 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
% Autoform is the format string used by autogrid
% Autoform_X, Autoform_Y if defined, are used instead
string Autoform ; Autoform = "%g";
% string Autoform_X ; Autoform_X := "@.0e" ;
% string Autoform_Y ; Autoform_Y := "@.0e" ;
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2022-07-20 13:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-16 17:21 John Kitzmiller via ntg-context
2022-07-20 13:48 ` Alan via ntg-context [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220720074829.691a4c13@boo.my.domain \
--to=ntg-context@ntg.nl \
--cc=braslau.list@comcast.net \
--cc=jkitzm@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).