ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jean-Philippe Rey via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Jean-Philippe Rey <jean-philippe.rey@centralesupelec.fr>
Subject: Re: Problem with log coordinates in metafun graph module
Date: Fri, 10 Dec 2021 08:34:26 +0100	[thread overview]
Message-ID: <33B117AD-5CFF-491F-BAC7-531EE4D8EA77@centralesupelec.fr> (raw)
In-Reply-To: <4479561F-D6F3-415A-B97F-F2BBC2A3F5D8@centralesupelec.fr>


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

Dear list,

I dived into m-grap.mpiv and found that "log" coordinates are now called "logarithmic". So

   setcoords(logarithmic, linear)

is the new way and it works with the last ConTeXt version.

Jean-Philippe,

> Le 8 déc. 2021 à 11:49, Jean-Philippe Rey via ntg-context <ntg-context@ntg.nl> a écrit :
> 
> Dear list,
> 
> Log coordinates seem to be broken in the last version of ConTeXt/metafun/graph.
> 
> Here is my failing example
> 
> ===================================
> \usemodule[graph]
> \starttext
> \startMPcode{graph}
> draw begingraph(100mm, 100mm);
> 	setcoords(log, linear);   % works fine with setcoords(linear, linear);
> 	gdraw (1e-3, 10) -- (10, 30);
> 	endgraph;
> \stopMPcode
> \stoptext
> ===================================
> 
> which produces nothing but works with ConTeXt  ver: 2021.01.05 10:45 LMTX.
> 
> You will find attached the log file which contains
> 
> metafun         > log > error: A primary expression can't begin with ','
> 
> Thank you for your help.



[-- Attachment #1.2: Type: text/html, Size: 4450 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2021-12-10  7:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-08 10:49 Jean-Philippe Rey via ntg-context
2021-12-10  7:34 ` Jean-Philippe Rey via ntg-context [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=33B117AD-5CFF-491F-BAC7-531EE4D8EA77@centralesupelec.fr \
    --to=ntg-context@ntg.nl \
    --cc=jean-philippe.rey@centralesupelec.fr \
    /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).