What does the plot generator do when values exceed the y-axis maximums?

45 views
Skip to first unread message

Dale

unread,
Aug 15, 2023, 6:47:41 PM8/15/23
to weewx...@googlegroups.com
I am playing with getting a cumulative graph of rain for an additional plot.

The problem is, we've been basically in a drought and at best get a few
one-hundredths (with one exception) when we do get rain, so I have no
way of watching what happens.


I have a plot which accumulates rain over the last 24 hours, and have
set the y-axis to 1.0" total, with markers at 0.1".

What happens when we get a 1 or more inch rainfall in that time period? 
Some graphs I've seen on other weather programs drop the cumulative line
back down to zero and start incrementing again. Others level off at the
max value, and still others just keep going on upwards.


What is WeeWx's behavior.  Obviously this is sort of a problem with bar
graphs, too, if the hourly amount exceeds the y-max.

Dale


Tom Keffer

unread,
Aug 16, 2023, 5:50:50 PM8/16/23
to weewx...@googlegroups.com
If you lock the max value of the y-axis by using option yscale, then it is locked in. So, if you get more than 1", the cumulative plot will go off the graph.

One thing you can do in this situation is lock in the minimal interval size to something that allows you to see small amounts of rain, but let the minimum and maximum values float. If 0.1" is not working for you, try 0.05"

yscale = None, None, 0.05

Or, just remove option yscale and let the plot generator pick reasonable values.

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c42bd1fc-2188-d36f-01ec-9978afa86924%40gmail.com.

Dale

unread,
Aug 16, 2023, 6:46:39 PM8/16/23
to weewx...@googlegroups.com
Thank  you.

Let's hope that I get to try the suggestion with some much needed rain
tonight.

Thanks for the clear explanation and the various options, allowing me to
choose the one which works best.  I was trying to fix a scale so that a
quick glance at the plots in the Seasons skin output would be sort of an
quick indication.  That really isn't needed, but more like seeing where
the indicator on a volume knob is pointed to know how loud something
might be.

Dale


Reply all
Reply to author
Forward
0 new messages