Re: [NTG-context] Pgfplots - "reverse legend" by Lua

2015-12-24 Thread Lukáš Procházka
Hello, On Tue, 22 Dec 2015 18:21:01 +0100, Hans Hagen wrote: t = {["legend entries"]="{Cos,Sin2,Sin}", "reverse legend"} such a table is valid lua (mixture of indexed and hashed) but of course the application using it has to know how to use it OK, so when '{["legend

Re: [NTG-context] Pgfplots - "reverse legend" by Lua

2015-12-22 Thread Aditya Mahajan
On Tue, 22 Dec 2015, Hans Hagen wrote: On 12/22/2015 5:36 PM, Aditya Mahajan wrote: On Tue, 22 Dec 2015, Procházka Lukáš Ing. - Pontex s. r. o. wrote: > > \starttikzpicture > %\startaxis[legend entries={Cos,Sin2,Sin},reverse legend] > \cldcommand{startaxis{["legend entries"] =

Re: [NTG-context] Pgfplots - "reverse legend" by Lua

2015-12-22 Thread Aditya Mahajan
On Tue, 22 Dec 2015, Procházka Lukáš Ing. - Pontex s. r. o. wrote: \starttikzpicture %\startaxis[legend entries={Cos,Sin2,Sin},reverse legend] \cldcommand{startaxis{["legend entries"] = "{Cos,Sin2,Sin}", "reverse legend"}} This is not valid lua. On a lua prompt, try t = {["legend

Re: [NTG-context] Pgfplots - "reverse legend" by Lua

2015-12-22 Thread Hans Hagen
On 12/22/2015 5:36 PM, Aditya Mahajan wrote: On Tue, 22 Dec 2015, Procházka Lukáš Ing. - Pontex s. r. o. wrote: \starttikzpicture %\startaxis[legend entries={Cos,Sin2,Sin},reverse legend] \cldcommand{startaxis{["legend entries"] = "{Cos,Sin2,Sin}", "reverse legend"}} This is not

[NTG-context] Pgfplots - "reverse legend" by Lua

2015-12-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, one more question about pgfplots & Lua: how to specify "reverse legend" by Lua? Here are some examples: - Plot 1 contains no Lua code and gives the desired result (OK); - Plot 2 uses Lua to specify "legend entries" successfully (OK); - Plot 3 tries to use Lua to specify "reverese