From: <pl...@pi...> - 2007-08-15 18:24:07
|
Hi, an idea just sprung out of the assign() discussion but I'll split it her= e = so as not to mix the two. I've long found the most cumbersome and unreadable lines in my gnuplot = files are plot commands. These can get very long , split over several lines since there is quite = a = lot of definitions to get in there and they become pretty hard to scan, = = especially if using the abreviated forms. a separate idea for cleaning up 'using' clauses and making the whole thi= ng = more readable would be 'using macros'. One could define a set of 'using'= = parameters and reference them with a macro-like structure. eg. A=3D'with lines color rgb gold linestye dotted smooth acspline'; = # = (E&OE) plot 1:2: using use_sytle(A) t 'line one'; This would be nice and easy to code. The definition is a simple variable= = which gets subsituted as the plot command is parsed, the string is = inserted at the current position and the rest of the parse continues fro= m = where it stopped. Just a thought , now back to assign(). regards, Peter. |