Open
Description
Hello,
Using pgfplotstableread
to load a csv seems to disable the default behavior of empty lines
, which in a usual 2D plot is jump
.
Is it expected?
MWE
\documentclass[]{standalone}
\usepackage{pgfplots,pgfplotstable}
\pgfplotsset{compat=newest}
\begin{filecontents}{data1.txt}
-1 -1
0 0
1 1
2 2
\end{filecontents}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot [color=black] table[x index =0, y index = 1,] {./data1.txt};
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\pgfplotstableread[x index =0, y index = 1]{data1.txt}{\mytable}
\begin{axis}
\addplot [color=black] table {\mytable};
\end{axis}
\end{tikzpicture}
\end{document}
Metadata
Metadata
Assignees
Labels
No labels