From: Paul Menzel <paulepanter@users.sourceforge.net>
To: ntg-context@ntg.nl
Subject: MetaFun manual: Incorrect label of ordinate axis on page 382, section 9.3 drawing functions (was: Confusion with `function()` and `xyscaled`)
Date: Sun, 23 Oct 2011 15:17:22 +0200 [thread overview]
Message-ID: <1319375842.4815.12.camel@mattotaupa> (raw)
In-Reply-To: <1319152475.12677.8.camel@mattotaupa>
[-- Attachment #1.1.1: Type: text/plain, Size: 1666 bytes --]
Dear MetaFun folks,
Am Freitag, den 21.10.2011, 01:14 +0200 schrieb Paul Menzel:
> looking at the example for grid and functions in the MetaFun manual [1]
> section 9.3
>
> drawoptions(withpen pencircle scaled .25pt withcolor .5white) ;
> draw hlingrid(0, 20, .2, 20cm, 10cm) ;
> draw vloggrid(0, 10, .5, 10cm, 20cm) ;
> drawoptions(withpen pencircle scaled .50pt) ;
> draw hlingrid(0, 20, 1, 20cm, 10cm) ;
> draw vloggrid(0, 10, 1, 10cm, 20cm) ;
>
> fmt_pictures := false ; % use TeX as formatting engine
> textextoffset := ExHeight ; % a variable set by ConTeXt
> draw hlintext.lft(0, 20, 5, 20cm, "@3e") ;
> draw vlogtext.bot(0, 10, 9, 10cm, "@3e") ;
>
> draw
> function(1,"log(x)","x",1,10,1) xyscaled (10cm,2cm)
> withpen pencircle scaled 5mm withcolor transparent(1,.5,yellow) ;
the labeling of the vertical axis (y-coordinate) is not incorrect.
The maximum value is 10 and therefore it should probably be corrected as
follows.
- draw hlingrid(0, 20, 1, 20cm, 10cm) ;
+ draw hlingrid(0, 20, 2, 20cm, 10cm) ;
- draw hlintext.lft(0, 20, 5, 20cm, "@3e") ;
+ draw hlintext.lft(0, 10, 5, 20cm, "@3e") ;
Furthermore on the bottom labels seem to be incorrect in the figure, it
goes from 1 to 0, but this seems to be a bug in the used ConTeXt
version, since I do not have that problem when compiling(?) that example
locally.
Please find the corrected example attached.
[…]
Thanks and I hope I did not mess up,
Paul
> [1] http://www.pragma-ade.com/general/manuals/metafun-s.pdf
[-- Attachment #1.1.2: function.pdf --]
[-- Type: application/pdf, Size: 12725 bytes --]
[-- Attachment #1.1.3: function.tex --]
[-- Type: text/x-tex, Size: 651 bytes --]
\starttext
\startMPcode
drawoptions(withpen pencircle scaled .25pt withcolor .5white) ;
draw hlingrid(0, 20, .2, 20cm, 10cm) ;
draw vloggrid(0, 10, .5, 10cm, 20cm) ;
drawoptions(withpen pencircle scaled .50pt) ;
draw hlingrid(0, 20, 2, 20cm, 10cm) ;
draw vloggrid(0, 10, 1, 10cm, 20cm) ;
fmt_pictures := false ; % use TeX as formatting engine
textextoffset := ExHeight ; % a variable set by ConTeXt
draw hlintext.lft(0, 10, 5, 20cm, "@3e") ;
draw vlogtext.bot(0, 10, 9, 10cm, "@3e") ;
draw
function(1,"log(x)","x",1,10,1) xyscaled (10cm,2cm)
withpen pencircle scaled 5mm withcolor transparent(1,.5,yellow) ;
\stopMPcode
\stoptext
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2011-10-23 13:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-20 23:14 MetaFun: Confusion with `function()` and `xyscaled` Paul Menzel
2011-10-21 11:38 ` Paul Menzel
2011-10-21 15:02 ` Peter Rolf
2011-10-21 15:26 ` MetaPost: " Paul Menzel
2011-10-21 16:08 ` Peter Rolf
2011-10-23 14:12 ` Paul Menzel
2011-10-23 15:17 ` Peter Rolf
2011-10-23 21:39 ` Hans Hagen
2011-10-21 20:53 ` MetaFun: " Aditya Mahajan
2011-10-22 7:24 ` Hans Hagen
2011-10-23 13:17 ` Paul Menzel [this message]
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=1319375842.4815.12.camel@mattotaupa \
--to=paulepanter@users.sourceforge.net \
--cc=ntg-context@ntg.nl \
/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).