|
From: ivana r. <iva...@mf...> - 2017-12-28 17:12:59
|
Hi Sergei, although to use external simple filter was intended in such cases, under unix-like OS e.g. "cut": gnuplot> plot '<cut -b 11-14,16- --output-delimiter=" " datafile' you can do this directly by gnuplot as well: # begin gnuplot code # replace datafile with real filename file="datafile" # set the data separator to a char missed in the file set datafile separator ";" # use string functions to extract columns of a given width to a named datablock set table $mydata plot file u (stringcolumn(1)[11:14]):(stringcolumn(1)[16:]) w table unset table # reset the data separator set datafile separator # uncomment to print the preprocessed datablock if you wish # print $mydata # plot the preprocessed datablock plot $mydata w lp t "extracted data" # end of gnuplot code sincerely Iva |