Re: New numbersystems for the graph package?
"Densing Martin (PSI)" <[email protected]> Mon, 18 Feb 2019 15:51:37 +0000
| Newsgroups | gmane.comp.tex.metapost |
|---|---|
| Message-ID | <[email protected]> |
Dear Luigi, Thanks you very much. On my computer, the provided test.mp seems still not to work: The output with numbersystem=decimal is attached (test-1-decimal.mps); the y-axis is still wrong. The usual output is test-1.mps; the y-axis labelling is correct (includes negative values). My point is not this particular example, because I do not need this particular code (by introducing your very good hack). But still, thank you very much for your good help! My point is: It seems that the graph-macros were not tested with the new numbersystems, and because you or Taco Hoekwater have introduced the new numbersystems, it would be nice to have a short comment on this how to proceed regarding the new numbersystems and the graph-macro. Best regards, Martin From: luigi scarso <[email protected]> Sent: Montag, 18. Februar 2019 01:32 Cc: [email protected] Subject: Re: [metapost] New numbersystems for the graph package? This should be ok % 0 1.4 % 1 3.2 % 2 -4.5 % 3 8.0 % 4 9.0 % 5 4.0 % Data-file for graph can be included at beginning of source-file, % because %<space>0 1.4 etc. is read by gdata marco until empty line input graph prologues := 3; outputtemplate := "%j-%c.mps"; if numbersystem="decimal": %% numberprecision:=6; vardef Mabs primary x = x/10*10 enddef; fi beginfig(1) draw begingraph(10cm,10cm); path p; gdata("test.mp<http://test.mp>", $, augment.p(i, scantokens $2);); gdraw p; endgraph; endfig; end -- luigi -- http://tug.org/metapost/
test-1.mps
(application/octet-stream, 34.9 KB) - not displayed
test-1-decimal.mps
(application/octet-stream, 21.2 KB) - not displayed