From: Dee W. <DAW...@sa...> - 2004-09-30 14:51:35
|
Thanks Leo, =0D That's what I think is happening as well, but as you know, with gnuplot no= way to prove it. I guess it is time to experience the world of Python and= gnuplot-py. =0D Thanks again, Dee >>> lm...@ud... 09/30/04 10:00AM >>> Hi Dee: > I was thinking about using gnuplot-py to try to take of a problem I am= having with gnuplot itself. I have a gnuplot script that runs in a= endless 6 second loop (on purpose) that reads a data file that is updated= with new data every 4 seconds. Eventually though, it will abort with the= following message: >=0D >=0D > gnuplot> plot 'gnuplot.txt' index 0 using 1:2 with points 09, =0D > 'gnuplot.txt' index 1 using 1:2 with points 04, > 'gnuplot.txt' index 2 using 1:2 with points 03, > 'deviation_upper.txt' thru (( $1 * $2)/(-10.*55.1))**2 = with lines 12, =0D > 'deviation_lower.txt' thru ((($1 * $2)/(-10. *55.1))**2)*= -1 with lines 12 , =0D > U_CPS2 with lines 11 , L_CPS2 with lines 11 > ^ > "/emsdat/santee/scripts/gplot/cps.pl", line 25395: no data point= found in specified file >=0D > Attached is the script and I would appreciate any suggestions on how to= make it work before I dive into Python. If anyone thinks gnuplot-py can= fix the problem I would be most thankful for some help in getting started. maybe gnuplot, everyonce in a while, trys to read a data file while it is being updated ? If the period of data update and data reading from gnuplot are 6 and 4 seqs, chances are they'll meet at 12, 24, 36 sec.= (assuming they start at the same time) The advantage I would see on using gnuplot-py is that. within a python script, you can check for existance/sanity of the data files before feeding the gnuplot. So, you could, within the loop: start endless loop: * import data files data into python arrays if files exist =0D * check that the data is actually there, check types, value ranges, etc. * plot * wait some time =0D Hope this helps, Leo =0D ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl=0D _______________________________________________ Gnuplot-py-users mailing list Gnu...@li...=0D https://lists.sourceforge.net/lists/listinfo/gnuplot-py-users=0D ____________________ Confidentiality Notice: This message is intended exclusively for the individual or entity to which= it is addressed. This communication may contain information that is= proprietary, privileged, confidential or otherwise legally exempt from= disclosure. If you are not the named addressee, you are not authorized to= read, print, retain, copy or disseminate this message or any part of it.= If you have received this message in error, please notify the sender= immediately either by phone or reply to this e-mail, and delete all copies= of this message. |