User avatar
some_evil
Posts: 205
Joined: Thu Dec 18, 2014 3:16 am
Location: Albury, Australia

Re: Trying to Learn Ploticus - need help

Fri May 01, 2015 7:46 am

Ok, so the suggestion from ame today was the winner, xstubfmt="hh:mm" works. See below for resultant graph and code.

Is there a way to remove the 'white space' from the left and right of the data? it seems to automatically be generated, but as you can see the white is quite a waste.

Cheers

Code: Select all

sqlite3 -csv /home/pi/temperature.db "select * from PivotTemps1min where timeslot > datetime('now','-1 hour');" | ploticus -png -o /home/pi/1h.png -prefab chron data=- delim=comma header=no gapmissing=yes unittype=datetime mode=line datefmt="yyyy-mm-dd.hh:MM" x=2 y=9 xinc="15 minute" legendfmt=singleline title="Temperature over the last 1 hour" xlbl="Time" xlbldet="adjust=0,-0.15" ylbl="°C" xstubfmt="hh:mm" autodays=yes yrange="10 30" xgrid=yes ygrid=yes name="Value" xmargin=0
1h.png
graph with working X-Axis, now looking at removing all the white space from each side of the data line.
1h.png (1.48 KiB) Viewed 274 times
PiZeroW - May 2017
Pi 3 - Oct 2016
PiZero - June 2016
Pi 2 - Jan 2016
Pi B+ - Dec 25 2014

Return to “Graphics, sound and multimedia”