From: Jorge Manuel <desdechaves@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: lmt_chart_bar with data from luacode
Date: Fri, 23 Jul 2021 10:07:40 +0100 [thread overview]
Message-ID: <53fc6164-10c3-4ed2-be00-3ff4af97c44f@Spark> (raw)
In-Reply-To: <8298719e-3e97-4525-ba6f-c168fef2788f@Spark>
[-- Attachment #1.1: Type: text/plain, Size: 1119 bytes --]
Dear Sirs
If I tried:
\starttext
\startluacode
sample = {10,30,30,40}
function MP.GetP()
mp.print(sample)
end
\stopluacode
\startMPcode
draw lmt_chart_bar [
width = 8cm,
height = 10mm,
samples = {lua.MP.GetP()} ,
trace = true,
maximum = 100,
linewidth = 1mm,
showlabels = false,
originsize = 0,
labelanchor = "lft",
labelcolor = "black"
labelstyle = "bfxx"
legendstyle = "tfxx",
labelstrut = "yes",
] ;
\stopMPcode
\stoptext
This works.
But with an extra element in the sample table:
\starttext
\startluacode
sample = {10,30,30,40,50}
function MP.GetP()
mp.print(sample)
end
\stopluacode
\startMPcode
draw lmt_chart_bar [
width = 8cm,
height = 10mm,
samples = {lua.MP.GetP()} ,
trace = true,
maximum = 100,
linewidth = 1mm,
showlabels = false,
originsize = 0,
labelanchor = "lft",
labelcolor = "black"
labelstyle = "bfxx"
legendstyle = "tfxx",
labelstrut = "yes",
] ;
\stopMPcode
\stoptext
Don't works anymore. Why?
Thanks for your time and support.
Sent with a Spark
[-- Attachment #1.2: Type: text/html, Size: 1975 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
___________________________________________________________________________________
next parent reply other threads:[~2021-07-23 9:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <8298719e-3e97-4525-ba6f-c168fef2788f@Spark>
2021-07-23 9:07 ` Jorge Manuel [this message]
2021-07-23 15:58 ` Hans Hagen
2021-07-23 21:56 ` Jorge Manuel
2021-07-24 7:40 ` Floris van Manen
2021-07-24 7:44 ` Jorge Manuel
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=53fc6164-10c3-4ed2-be00-3ff4af97c44f@Spark \
--to=desdechaves@gmail.com \
--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).