exponent in color specs
Brought to you by:
cfeuersaenger,
ludewich
Using exponents in color components results in errors (Illegal unit of measure (pt inserted)., etc). MWE below.
Of course specifying colors like this manually is nonsensical, in this case they came from another tool that uses pgfplots as a backend.
I am wondering if this is a bug, or just something at is not supported.
\documentclass[tikz]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture} \begin{axis} \addplot[color={rgb,1:red,1.0e-10;green,1.0;blue,1.0}, thick] table[row sep={\\}] { \\ 0 0 \\ 1 1 \\ } ; \end{axis} \end{tikzpicture} \end{document}
Thanks for the request.
This might be possible to fix, although probably not in pgfplots but in pgf/tikz (or in xcolor?).
Depending on how many colors you have to export, you might be better off if you generate a sequence of \definecolor invocations (see the xcolor manual or the pgfmanual.pdf for details). This saves lots of time for the TeX translation.
Example invocation in the RGB space (range 0-255):
\pgfutil@definecolor{BuGn-A}{RGB}{247,252,253}
I believe the space 'rgb' (lower case) accepts values [0,1].
I have to close the report here as it cannot be fixed in pgfplots (at least not alone)