I am trying to plot a very large .csv file with multiple columns using pgfplots. I want to use the first column for all my plots. My usual routine is to do something like:
\addplot [solid] table [x=A,y=B]{mydata.cvs};
\addplot [solid] table [x=A,y=C]{mydata.cvs};
\addplot [solid] table [x=A,y=nth]{mydata.cvs};
This work fines in combination with LuaLatex (dynamic memory) and it does not take that much time to generate the plot. However, I decided to improve my coding (think that it could also increase the compiling speed) by just reading the table once at the beginning using:
\pgfplotstableread[col sep=semicolon]{mydata.csv}\mytableone
and then:
\addplot [solid] table [x=A,y=B]{\mytableone};
\addplot [solid] table [x=A,y=C]{\mytableone};
\addplot [solid] table [x=A,y=nth]{\mytableone};
After doing this, the process take a LOT more time and sometimes it does not even compile and crash. Can someone explain me why there is a huge difference in compiling speed and what could be causing the crash?
Sorry but I don't have a good example and cannot share my data (anyway is very big).
Thanks =)
P.D. I also want to select a range in the column, for that I use this solution select rows table pgfplots. Not sure if this can cause problem too.