Use Processing to make continuous graph using CSV

first is your data file use what column names?

i changed here to

String infilename = "data/samples2.csv";
Time,Intensity
0.000,-0.335

to fit to my code
( or you change the code… )


second the Y auto ranging not work as your data are all negative
** i jumper it here by invert your data by using

iintensity = table.getFloat(i, "Intensity")*(-1); // invert

in 2 different places of the sketch

if you find a better auto ranging adjustment
please post it here


also that is a very big file, cant you start with the first some 100 lines for test,
anyhow now see

1 Like