thelfer / tfel-plot

This project defines a C++11 library for generating plots based on TFEL and Qt and an executable called `tplot` which can be used as a drop-in replacement of `gnuplot` but also have a lot of other functionalities.
GNU General Public License v3.0
1 stars 0 forks source link

Update graph window when data file change #1

Closed pgoldbronn closed 6 years ago

pgoldbronn commented 6 years ago

Actualy, when we do a graphical plot, for exemple tplot data.txt -u 2:5, if data.txt is replaced by another file (with same name), tplot could not take care of it and nothing is draw.

It'll be fun if tplot could switch to this new file and draw this new data.

thelfer commented 6 years ago

Hi Patrick, Indeed the qt class to wath a file is based on the inode of the file: it cannot track the fact the file has been deleted and that another file with the same name has been created. I will try to see if this can be improved. Regards, Thomas Helfer

thelfer commented 6 years ago

Hi Patrick, this shall be fixed now. Let me know if it works for you. Thomas

pgoldbronn commented 6 years ago

Great, it works !