Graphing problem

Discussion about generation of graphs and tables
Post Reply
oliverb
Posts: 38
Joined: Wed Mar 31, 2010 8:38 am
Location: Kenley Surey UK
Contact:

Graphing problem

Post by oliverb » Sun Feb 12, 2012 6:57 am

I am having problems getting a graph to work. I want to show Gas use from my gas meter sensor and outdoor temperature.
I use the following definition.

timeframe=365D #last 365 days
res=DAY1 #SHOWS WHOLE DAY DATA
zoom=1M # select actual day

gtitle=Gas_Use_Daily # name of graph
gheight=600 # height in pixels of graph
gwidth=900 # width in pixels of graph
glunit=kWh # unit of left y-axis
grunit=°C # unit of right y-axis
gtype=line # type of graph
gtrim=0

sid0=data2 sname0=Total ssel0=suminc sfill0=20 sfactor0=0.00121 scolor0=FF0000
sid1=th0 sname1=Temp°C ssel1=temp scolor1=0000FF # sensor 0, temperature

I can't get the units to show on the right of the y axis and also the temperature is showing as kWh not °C on the top of the graph.

I have tried setting grunit on other graphs with no problem at all.
Attachments
gas_temp.jpg
gas_temp.jpg (51.42 KiB) Viewed 5248 times

User avatar
admin
Site Admin
Posts: 332
Joined: Sun Feb 07, 2010 9:22 pm

Re: Graphing problem

Post by admin » Sun Feb 12, 2012 6:38 pm

There is a statement missing for sensor #1, that it should plot against right y-axis. Please add: "syaxis1=r"

oliverb
Posts: 38
Joined: Wed Mar 31, 2010 8:38 am
Location: Kenley Surey UK
Contact:

Re: Graphing problem

Post by oliverb » Sun Feb 12, 2012 8:19 pm

Thanks for that.

Anne
Posts: 4
Joined: Sun Jan 15, 2012 9:12 am
Contact:

Re: Graphing problem

Post by Anne » Wed Mar 14, 2012 11:29 am

I was also having the same issue. It's good that I read about this topic here & was able to resolved it, awesome!
Read my review about Digital SLRs at http://www.buydigitalcamera.us

Post Reply