I discovered about Org-Mode a couple of years
ago. Since then, I have started using it for various tasks. One of the
recent usage is to track my daily weight. This article describes how
to use Org-Mode and Gnuplot to plot your weight measurements.
Here is the list of software that I use in my setup.
For the purpose of this article, it is assumed that you have a similar
setup that works for you.
As part of my daily measurement, I track three measurements namely,
weight, body fat percentage and body water percentage. This data can
be represented in an Org table that has four columns as
follows. Please note that the data provided below is hypothetical.
I use the following Gnuplot script, Weight.plt that plots the
weight, body fat percentage, absolute body fat, body water percentage
and absolute body water.
# Weight plotter.setterminalaquatitle"Weight plot"setxdatatimesettimefmt'"%m/%d/%Y"'setxlabel'Date'setmultiplotsetsize1,0.33# Weight.setorigin0,0.66setylabel'Weight in lb'plot'$datafile'using1:2title'Weight'withlineslinecolor2setsize0.5,0.33# Body fat.# Percentage.setorigin0,0.33setylabel'Body fat %'plot'$datafile'using1:3title'Body fat %'withlineslinecolor1# Absolute.setorigin0.5,0.33setylabel'Body fat in lb'plot'$datafile'using1:($3*$2/100)title'Body fat'withlineslinecolor1# Body water.# Percentage.setorigin0,0setylabel'Body water %'plot'$datafile'using1:4title'Body water %'withlineslinecolor3# Absolute.setorigin0.5,0setylabel'Body water in lb'plot'$datafile'using1:($4*$2/100)title'Body water'withlineslinecolor3unsetmultiplot
Here is the screenshot of the generated plot. Click the thumbnail to
get the actual size.