diff options
author | Karl Berry <karl@freefriends.org> | 2014-08-06 22:47:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-08-06 22:47:59 +0000 |
commit | 1da164bf9c4fed03b30b98439a239f5a1873f9ae (patch) | |
tree | 2ed76752cb203cacf4135b821206b45c24b1a534 /Master/texmf-dist/tex/generic/pgfplots/numtable | |
parent | e16354c1642ffdd8e82798c9f0f60108e85059c6 (diff) |
pgfplots (6aug14)
git-svn-id: svn://tug.org/texlive/trunk@34851 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgfplots/numtable')
-rw-r--r-- | Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex | 13 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstableshared.code.tex | 4 |
2 files changed, 17 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex b/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex index 84971e5045f..4d44a17c005 100644 --- a/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex +++ b/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstable.code.tex @@ -1130,6 +1130,19 @@ \pgfutil@ifnextchar[{\pgfplotstablenew@impl}{\pgfplotstablenew@impl[]}} \def\pgfplotstablenew@impl[#1]#2#3{% + \ifx#3\pgfutil@undefined + \else + \ifx#3\relax + \else + % oh - there *is* already such a table. The 'getcolumnbyname' method suffers from a flaw in 'ifexists' that I do not want to fix right now. + % To work around that flaw, I merely clear the old table here: + % let's hope that '#3' really *was* a table and not some other junk... + \pgfplotslistforeachungrouped#3\as\pgfplotstable@loc@TMPa{% + \expandafter\let\csname\string#3@\pgfplotstable@loc@TMPa\endcsname=\relax% + }% + \fi + \fi + % \pgfplotsscanlinelengthinitzero % create a temporary column with the desired number of rows: \pgfutil@in@\pgfplotstablegetrowsof{#2}% diff --git a/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstableshared.code.tex b/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstableshared.code.tex index f8cf773826b..cfd13a74a58 100644 --- a/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstableshared.code.tex +++ b/Master/texmf-dist/tex/generic/pgfplots/numtable/pgfplotstableshared.code.tex @@ -360,6 +360,10 @@ % #2: table struct % #3: true code % #4: false code + % FIXME : THIS IS BUGGY: the macro may exist, but is it + % (still) part of the table!? Currently, there is a workaround + % such that \pgfplotstablenew cleans up and avoids that case.. + % and we have no "drop column" currently. ifexists =\pgfutil@ifundefined{\string##2@##1}{##4}{##3}, % % Low level method to return (the actual content) of column #1 of |