Skip to content

Empty lines + pgfplotstableread does not work #496

Open
@f380cedric

Description

@f380cedric

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}  

tt-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions