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

Hans Hagen pragma at wxs.nl
Tue Dec 22 18:21:01 CET 2015


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 valid lua. On a lua prompt, try
  >
> 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

Hans



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list