Using an ASCII file as a "live data source" does not update the plotted curve when the underlying file gets overwritten, even if user clicks the "refresh" button that appears into the properties explorer. The only way I've found to force the data refresh is to add another live data source with the very same source file as the previous one. That way, the file is re-read.
which version of LabPlot did you compile from sources? The last available release or the current version from our git repository in the master branch?
On 19/01/18 20:37, Alexander Semke wrote: > https://bugs.kde.org/show_bug.cgi?id=389212 > > --- Comment #1 from Alexander Semke <alexander.semke@web.de> --- > which version of LabPlot did you compile from sources? The last available > release or the current version from our git repository in the master branch? > The one from git repo (commit afa030aeb2a5eb76afa38780e2e5e971a36b1b29) Orestes.
Ok. Looks like we have an issues in the current code. Do you have a reproducible example? How do you change the file? Do you modify the file manually in a text editor or do you have kind of a script or device writing to the file?
On 21/01/18 10:51, Alexander Semke wrote: > https://bugs.kde.org/show_bug.cgi?id=389212 > > --- Comment #3 from Alexander Semke <alexander.semke@web.de> --- > Ok. Looks like we have an issues in the current code. Do you have a > reproducible example? How do you change the file? Do you modify the file > manually in a text editor or do you have kind of a script or device writing to > the file? The second. I tried to obtain a live plot update from data coming from Gnucap circuit simulation software. Give me some days (I'm in the middle of exam assessements) and perhaps I can provide you an example. Anyway, Labplot2 is a really great application, and its development seemed stalled few years ago but with your recent work and the porting to Frameworks I foresee a bright future for it. One suggestion: I used (and still do) Grace to plot my data, mainly because obtaining a rough graph from command-line is super-easy: simply "xmgrace <data file>" and you got it. It will be very helpful if Labplot had such a feature. Regards, Orestes.
(In reply to Orestes Mas from comment #4) > The second. I tried to obtain a live plot update from data coming from > Gnucap circuit simulation software. Give me some days (I'm in the middle > of exam assessements) and perhaps I can provide you an example. This would be really great. > Anyway, Labplot2 is a really great application, and its development > seemed stalled few years ago but with your recent work and the porting > to Frameworks I foresee a bright future for it. thank you for the your kind feedback! > > One suggestion: I used (and still do) Grace to plot my data, mainly > because obtaining a rough graph from command-line is super-easy: simply > "xmgrace <data file>" and you got it. It will be very helpful if Labplot > had such a feature. In principle this is easy to implement in LabPlot, too. The problem is that the different users have different scenarios here. Some people want to get the data automatically imported into a spreadsheet or into a matrix with 'labplot2 <data file> for further editing first, some people want to get the import dialog shown so they can set the settings for the file parsing, some people deal with live data and want our "add live data source" dialog to be shown where they can set the read options, some other users want to directly get the plots generated like in xmgrace. We're thinking about this already, we need to come up with a user-friendly command line interface to cope with all these possible use-cases. For example, xmgrace <data file> on a file with a custom header having the string values for the column names has issues - the error message "Column count incorrect" is shown and nothing is plotted. Also, how to generate one plot with one curve for every y-column in the data and how to add all curves to the same plot? This kind of different scenarios has to be taken care of here. But I agree with you in general, a 'labplot2 <data file>' with all the read, parse and plot parameters set internally to reasonable values so that the user can directly see the plotted data would be great.
Created attachment 110030 [details] attachment-14999-0.html A 2018-01-21 12:36, Alexander Semke escrigué: > https://bugs.kde.org/show_bug.cgi?id=389212 [1] > > --- Comment #5 from Alexander Semke <alexander.semke@web.de> --- > (In reply to Orestes Mas from comment #4) > >> The second. I tried to obtain a live plot update from data coming from Gnucap circuit simulation software. Give me some days (I'm in the middle of exam assessements) and perhaps I can provide you an example. > > This would be really great. > >> Anyway, Labplot2 is a really great application, and its development seemed stalled few years ago but with your recent work and the porting to Frameworks I foresee a bright future for it. > > thank you for the your kind feedback! > >> One suggestion: I used (and still do) Grace to plot my data, mainly because obtaining a rough graph from command-line is super-easy: simply "xmgrace <data file>" and you got it. It will be very helpful if Labplot had such a feature. > > In principle this is easy to implement in LabPlot, too. The problem is that the > different users have different scenarios here. Some people want to get the data > automatically imported into a spreadsheet or into a matrix with 'labplot2 <data > file> for further editing first, some people want to get the import dialog > shown so they can set the settings for the file parsing, some people deal with > live data and want our "add live data source" dialog to be shown where they can > set the read options, some other users want to directly get the plots generated > like in xmgrace. > > We're thinking about this already, we need to come up with a user-friendly > command line interface to cope with all these possible use-cases. For example, > xmgrace <data file> on a file with a custom header having the string values for > the column names has issues - the error message "Column count incorrect" is > shown and nothing is plotted. Also, how to generate one plot with one curve for > every y-column in the data and how to add all curves to the same plot? This > kind of different scenarios has to be taken care of here. Various cases can be handled with suitable command-line options. For instance, Grace uses the "-nxy" switch to indicate that following file is organised in several data columns, the first one being the common abcissa and the rest the curves to plot. Anyway, a bug tracker is not the best place to discuss that. I'll try to subscribe to some labplot mailing list and eventually make there my humble contribution to the discussion. Orestes. Links: ------ [1] https://bugs.kde.org/show_bug.cgi?id=389212
(In reply to Orestes Mas from comment #6) > Various cases can be handled with suitable command-line options. For > instance, Grace uses the "-nxy" switch to indicate that following file > is organised in several data columns, the first one being the common > abcissa and the rest the curves to plot. > > Anyway, a bug tracker is not the best place to discuss that. I'll try to > subscribe to some labplot mailing list and eventually make there my > humble contribution to the discussion. Agree. kde-edu mailing list would be the appropriate place for such discussions. P.S.: at the moment, 'labplot2 <data file>' opens the import file dialog only. The same happens when doing drag&drop with a data file.