ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bug in \usetikzlibrary{datavisualization}?
@ 2016-09-28 17:44 Florian Leupold
  0 siblings, 0 replies; 4+ messages in thread
From: Florian Leupold @ 2016-09-28 17:44 UTC (permalink / raw)
  To: ConTeXt List


[-- Attachment #1.1: Type: text/plain, Size: 472 bytes --]

Dear list,

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?

Best,
Florian

[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 842 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug in \usetikzlibrary{datavisualization}?
  2016-10-05 22:27 ` Hans Hagen
@ 2016-10-07 12:36   ` Florian Leupold
  0 siblings, 0 replies; 4+ messages in thread
From: Florian Leupold @ 2016-10-07 12:36 UTC (permalink / raw)
  To: ConTeXt List


[-- Attachment #1.1: Type: text/plain, Size: 5004 bytes --]


> On 06.10.16, at 00:27, Hans Hagen <pragma@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@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

[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 842 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Bug in \usetikzlibrary{datavisualization}?
  2016-10-05 19:51 Florian Leupold
@ 2016-10-05 22:27 ` Hans Hagen
  2016-10-07 12:36   ` Florian Leupold
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2016-10-05 22:27 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Bug in \usetikzlibrary{datavisualization}?
@ 2016-10-05 19:51 Florian Leupold
  2016-10-05 22:27 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Florian Leupold @ 2016-10-05 19:51 UTC (permalink / raw)
  To: ConTeXt List


[-- Attachment #1.1: Type: text/plain, Size: 631 bytes --]

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

[-- Attachment #1.2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 842 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-07 12:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-28 17:44 Bug in \usetikzlibrary{datavisualization}? Florian Leupold
2016-10-05 19:51 Florian Leupold
2016-10-05 22:27 ` Hans Hagen
2016-10-07 12:36   ` Florian Leupold

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).