Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty lines + pgfplotstableread does not work #496

Open
f380cedric opened this issue Nov 22, 2024 · 0 comments
Open

Empty lines + pgfplotstableread does not work #496

f380cedric opened this issue Nov 22, 2024 · 0 comments

Comments

@f380cedric
Copy link

f380cedric commented Nov 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant