Bug in \usetikzlibrary{datavisualization}?
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? Best, Florian
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@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 -----------------------------------------------------------------
On 06.10.16, at 00:27, Hans Hagen
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@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@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@temp{#1}% 675 \ifx\pgf@temp\tikz@lib@dv@auto@attribute% 676 \tikzdatavisualizationset{\tikz@dv@axis/label/.expanded=$\noexpand\mathit{\pgfkeysvalueof{\tikz@dv@axis/attribute}}$}% 677 \else 678 \tikzdatavisualizationset{\tikz@dv@axis/label={#1}}% 679 \fi 680 }, 681 label/.default=\tikz@lib@dv@auto@attribute, 682 >> % 683 % Strategies 684 % 685 tick placement strategy/.style={\tikz@dv@axis/@compute at positions={#1}}, 686 linear steps/.style={tick placement strategy=\tikz@lib@dv@compute@at@linear}, 687 % 688 % Attribute setter 689 % 690 goto/.code={\tikz@dv@goto{\tikz@dv@axis}{#1}}, 691 goto pos/.code={\tikz@dv@goto@pos{\tikz@dv@axis}{#1}}, 692 anchor at min/.code={\tikz@lib@dv@special@at{\tikz@dv@axis}{\tikz@dv@min@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@dv@temp}[rgb]{tikzdvcolorseries#1!![##1]}, 2405 visualizer color=tikz@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
participants (2)
-
Florian Leupold
-
Hans Hagen