anti_alias shrinks plot letters

44 views
Skip to first unread message

Pila

unread,
Jan 11, 2020, 4:56:45 AM1/11/20
to weewx-user

daySmarttemp alias1.png

If I change Smartphone skin.conf anti_alias from 1 to 2, plots clean up nicely but all letters shrink to illegible size, as evidenced by attached plots. Why would anti_alias affect letters at all?


What is a solution? To change all plot letter sizes manually back to regular size experimenting what it is?

Plus, this illustrates my inability to change plot line colors. I have defined:
chart_line_colors = 0xff0000, 0x3333ff, 0x00cc00, 0xffc300
red, blue, green and yellow but my plots are ignoring me completely. Both order and colors are wrong. Where this cyan came from?


Pila

unread,
Jan 11, 2020, 6:59:05 AM1/11/20
to weewx-user
Thanks to gjr80, now I finally see in color :) So, this second part of my post is now solved. Answer was: I was using HTML color RGB codes and colors must be BGR.

Thomas Keffer

unread,
Jan 11, 2020, 8:45:01 AM1/11/20
to weewx-user
The anti-alias scheme increases the image size, does the drawing, then shrinks it back down.

The font size will fail if the plotting routine is forced to use a default font, which does not have an ability to scale it.

Try specifying fonts that you know are available on your machine.

-tk

On Sat, Jan 11, 2020 at 4:59 AM Pila <mrzim...@gmail.com> wrote:
Thanks to gjr80, now I finally see in color :) So, this second part of my post is now solved. Answer was: I was using HTML color RGB codes and colors must be BGR.

--
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/42a117ae-837f-46b8-958d-c194e0b96c93%40googlegroups.com.

Pila

unread,
Jan 16, 2020, 3:03:37 PM1/16/20
to weewx-user
Thanks, you are absolutelly right! Now I can see it easily: skin.conf points to non-existing fonts. Yes, docs says what will happend in such case, but...

I added a font, entered it into the skin.conf and now anti_alias = 3 does perfect job of smoothing nervous DS18B20 IC digital temperature sensors and I can read everything nicely :).

daySmarttemp prozori 3.png



Thanks again! Now it is easy to check various heating zones and check how my SmartHome heating is doing its job.



Reply all
Reply to author
Forward
0 new messages