[NTG-context] Bug in \usetikzlibrary{datavisualization}?

Florian Leupold fleupold at posteo.net
Fri Oct 7 14:36:38 CEST 2016


> On 06.10.16, at 00:27, Hans Hagen <pragma at wxs.nl> wrote:
> 
> On 10/5/2016 9:51 PM, Florian Leupold wrote:
>> Dear list,
>> 
>> Sorry for posting a duplicate, but I guess my previous post got lost during the conference...
>> 
>> When one tries to load the TikZ data visualization library, the documents does not compile anymore. The error is “.../tikzlibrarydatavisualization.code.tex: ! Missing number, treated as zero”.
>> 
>> I have also tried this using ConTeXt online, to the same end:
>> http://live.contextgarden.net/cgi-bin/output.cgi?id=jSjLZO
>> 
>> \usemodule[tikz]
>> \usetikzlibrary{datavisualization}
>> \starttext
>> Hello world!
>> \stoptext
>> 
>> Is this a known bug or could I somehow fix this to get data visualization to work?
> 
> \unprotect
> \usetikzlibrary{datavisualization}
> \protect
> 
> 
>> Best,
>> Florian
>> 
>> 
>> 
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to the Wiki!
>> 
>> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki     : http://contextgarden.net
>> ___________________________________________________________________________________
>> 
> 
> 
> --
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


The \unprotect\protect changes something, but does not do the whole trick. Please see the error messages below.


### Start: without \unprotect\protect
tex error       > tex error on line 682 in file /Users/Florian/context/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.code.tex: ! Missing number, treated as zero

<to be read again>
^
l.682 {\catcode`\^^
                 M=\active%

672       padding/.style={padding min={-#1},padding max={#1}},
673       label/.code={%
674         \def\pgf at temp{#1}%
675         \ifx\pgf at temp\tikz at lib@dv at auto@attribute%
676           \tikzdatavisualizationset{\tikz at dv@axis/label/.expanded=$\noexpand\mathit{\pgfkeysvalueof{\tikz at dv@axis/attribute}}$}%
677         \else
678           \tikzdatavisualizationset{\tikz at dv@axis/label={#1}}%
679         \fi
680       },
681       label/.default=\tikz at lib@dv at auto@attribute,
682 >>    %
683       % Strategies
684       %
685       tick placement strategy/.style={\tikz at dv@axis/@compute at positions={#1}},
686       linear steps/.style={tick placement strategy=\tikz at lib@dv at compute@at at linear},
687       %
688       % Attribute setter
689       %
690       goto/.code={\tikz at dv@goto{\tikz at dv@axis}{#1}},
691       goto pos/.code={\tikz at dv@goto at pos{\tikz at dv@axis}{#1}},
692       anchor at min/.code={\tikz at lib@dv at special@at{\tikz at dv@axis}{\tikz at dv@min at anchor}},
### Stop: without \unprotect\protect


### Start: with \unprotect\protect
tex error       > tex error on line 2410 in file /Users/Florian/context/tex/texmf-modules/tex/generic/pgf/frontendlayer/tikz/libraries/datavisualization/tikzlibrarydatavisualization.code.tex: ! Undefined control sequence


\tikzdvdeclarestylesheetcolorseries ...olorseries
                                                  {tikzdvcolorseries#1}{#2}{...
l.2410 ...eries{vary hue}{hsb}{.4,0.9,0.8}{.213,0,0}


2400       \resetcolorseries{tikzdvcolorseries#1}
2401       \pgfdvdeclarestylesheet{#1}
2402       {
2403         default style/.style={
2404           /utils/exec=\colorlet{tikz at dv@temp}[rgb]{tikzdvcolorseries#1!![##1]},
2405           visualizer color=tikz at dv@temp
2406         }
2407       }
2408     }
2409
2410 >>  \tikzdvdeclarestylesheetcolorseries{vary hue}{hsb}{.4,0.9,0.8}{.213,0,0}
2411     \tikzdvdeclarestylesheetcolorseries{shades of blue}{hsb}{.65,1.4,1}{0,-.4,-.0}
2412     \tikzdvdeclarestylesheetcolorseries{shades of red}{hsb}{0,1.4,1}{0,-.4,-.0}
2413     \tikzdvdeclarestylesheetcolorseries{gray scale}{hsb}{0,0,-.34}{0,0,.34}
2414
2415
2416
2417
2418
2419     %
2420     % Basic Axes & Coordinate Systems
### Stop: with \unprotect\protect
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20161007/809c7d80/attachment.sig>


More information about the ntg-context mailing list