From: Dave H. <da...@ho...> - 2014-09-19 20:45:02
|
On Fri, 19 Sep 2014, Marek W. Gutowski wrote: > First run the command > gnuplot> test Neat! Thanks; I'm going to laminate that page... > gnuplot> plot "your_data_file" using 1:2 with linespoints ilne type 3 > pointype 4 Ah, that reminds me: I'm also plotting -- or rather, trying to plot -- my BMI (body mass index), which is weight divided by height squared (pref. in metric units). I have: # # BMI stuff (kg/m^2). # height = 1.83 # A bit over 6ft - must check bmi(weight) = weight/(height*height) [...] set style data linespoints [...] plot datafile using 1:($3) title 'Weight (kg)', \ bmi($3) title 'BMI (kg/m^2)' with linespoints, \ datafile using 1:($4) title 'Girth (cm)', \ datafile using 1:($5) title 'Sys (Hg)', \ datafile using 1:($6) title 'Dia (Hg)', \ datafile using 1:($7) title 'HR (bpm)' Now, without the "linespoints" on the bmi() line, the BMI key is just a line; with it, the BMI key gains a point, so I assume that the style is defaulted for plotting user functions. The thing is, no BMI data is printed, no matter how much I fake the numbers from lightweight to heavyweight, so please, what am I missing? I've tried setting some sort of a range, but I get syntax errors. Thanks. -- Dave |