Hello,
I seem to have stumbled upon an obscure bug in pgfplots (1.1)
using ConTeXt (ver: 2008.05.21 15:21 MKII).
A (close to) minimal example is:
%\enableregime[utf]
\usemodule[pgfplots]
\starttext
\starttikzpicture
\startaxis[xmode=log,ymode=normal,xlabel=$T$ (K),ylabel=$dV/dT$ ($\mu$V/K)]
\addplot[blue,mark=none] table[x index=0,y index=2] {thermocoupleE.dat};
\addlegendentry{Chromel-Constantan (type E)}
\stoploglogaxis
\stoptikzpicture
\stoptext
which compiles fine. However, uncommenting
\enableregime[utf]
yields a compile error, as the data file contains a utf8
extended character (\mu).
A work-around for the time being is to avoid extended
characters in the data file column headers...
Thanks.
Alan
...
systems : begin file thermocoupleE at line 3
! Missing \endcsname inserted.
<to be read again>
\relax
\mathematics #1->\relax
\ifmmode #1\else $#1$\fi
<argument> pgfplotstableread@impl@COLNAME@EMF(µ
V)
\pgfutil@ifundefined ...xpandafter \ifx \csname #1
\endcsname \relax
\expanda...
\pgfplotstableread@impl@ITERATE@NEXT@ ...LNAME@#1}
{\def
\pgfplotstable@loc@T...
\pgfplotstableread@impl@ITERATE@NEXT ...NEXT@ {#1}
\pgfplotstableread@impl@IT...
...
l.7 ...e[x index=0,y index=2] {thermocoupleE.dat};
?
[thermocoupleE.tex]
\enableregime[utf]
\usemodule[pgfplots]
\starttext
\starttikzpicture
\startaxis[xmode=log,ymode=normal,xlabel=$T$ (K),ylabel=$dV/dT$ ($\mu$V/K)]
\addplot[blue,mark=none] table[x index=0,y index=2] {thermocoupleE.dat};
\addlegendentry{Chromel-Constantan (type E)}
\stoploglogaxis
\stoptikzpicture
\stoptext
#Thermocouple Type E (TRef = 273.15 K)
T(K) EMF(µV) dV/dT(µV/K)
3.2 -9834.9 1.59
4.2 -9833 2.09
10 -9813.3 4.66
20 -9747 8.51
30 -9643.8 12.1
40 -9505.5 15.5
50 -9334.2 18.7
75 -8777.7 25.6
100 -8063.4 31.4
150 -6238.1 41.2
200 -3967.4 49.3
250 -1328.7 56
300 1608 61.1
350 4777.7 65.6
400 8159.8 69.6
500 15426 75.3
600 23138 78.6
670 28694 80
700 31100 80.4
800 39179 81
900 47256 80.4
1000 55247 79.3
1100 63119 78.1
1200 70842 76.3
1270 76136 75.2
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users