|
From: <pl...@pi...> - 2011-04-06 13:04:07
|
Hi, I have to plot some data that depend on a parameter (pump speed) that I read in with each line of data. I need to calculate a plot value dependant on this value. I had it parametised as a function I call form the plot command but this is not accurate enough. I need it to be a look-up table (ie array) of values. flo(dac)=flo_grad*(dac-16)+flo_0; this needs to be flo(dac)=speed[n]; I know use of variables is somewhat limited in gnuplot and I can't find any documentation that seems relevant. (array keyword referring to input format) I have 16 values so a whole stack of 'if's would be pretty messy. now am I missing a trick or is this simply not possible with the kind of algebra available within a gnuplot script? best regards. Peter. |