Make Main_menu and Temp_panel look equal

This commit is contained in:
alfrix
2022-02-05 12:17:12 -03:00
parent d0b651c9dd
commit 8375606771
3 changed files with 72 additions and 33 deletions

View File

@@ -144,9 +144,9 @@ class HeaterGraph(Gtk.DrawingArea):
ctx.fill()
def graph_lines(self, ctx, gsize, max_num):
nscale = 5
nscale = 10
while (max_num / nscale) > 5:
nscale += 5
nscale += 10
# nscale = math.floor((max_num / 10) / 4) * 10
r = int(max_num/nscale) + 1
hscale = (gsize[1][1] - gsize[0][1]) / (r * nscale)