weird yscale behaviour?

36 views
Skip to first unread message

Paolo Benvenuto

unread,
Mar 23, 2017, 9:21:14 AM3/23/17
to weewx-user
Hi!

In a temperature graph I'm setting

yscale = None, None, 1

I intend that this means that the "minimum tick interval" is 1 degree, but in the graphs where temperature ranges from -20 to 20 the spacing between the lines is 5 degrees

Ok, the 1 I set is the minimum, and thus 5 is ok, but... why doesn't weewx accept my value?

And: is there a way to set the actual tick interval to 1 degree?



Paolo Benvenuto

unread,
Mar 23, 2017, 9:41:36 AM3/23/17
to weewx-user
In another graph where y ranges from 10 to 21 when yscale is not set, setting

yscale = None, None, 2

makes the graph have ymin = 10 and ymax = 30. None of the plotted lines raises above 21

This is weirder...

Thomas Keffer

unread,
Mar 23, 2017, 10:18:27 AM3/23/17
to weewx-user
Where in skin.conf are you setting yscale? See the specs for plot [[[dayrain]]] for an example.

-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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paolo Benvenuto

unread,
Mar 23, 2017, 10:24:42 AM3/23/17
to weewx-user
Apparently it's in the correct position:


    [[day_images]]
        x_label_format = %k
        time_length = 133200    # == 37 hours

       
[[[daytemp]]]
            image_height
= 400

            yscale
= None, None, 2

           
[[[[inTemp]]]]
                color
= green
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

Thomas Keffer

unread,
Mar 23, 2017, 10:29:53 AM3/23/17
to weewx-user
It works for me. What are you getting? And, what were you expecting?

Inline image 1

To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.

Paolo Benvenuto

unread,
Mar 23, 2017, 11:00:57 AM3/23/17
to weewx...@googlegroups.com
ymax is far bigger than it must be, it should be 22 (as when yscale is unset), it's 36!


don Paolo Benvenuto

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/6gevHcrAoDk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.

Thomas Keffer

unread,
Mar 23, 2017, 11:03:45 AM3/23/17
to weewx-user
I'm sorry.

-tk

Paolo Benvenuto

unread,
Mar 23, 2017, 6:08:35 PM3/23/17
to weewx-user
proposed a pull request
I'm sorry.

-tk



don Paolo Benvenuto

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/6gevHcrAoDk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages