Skip to content

Commit 663caf5

Browse files
committed
logic: advanced_forecast: render rainfall bars at the bottom of the plot
Signed-off-by: Paweł Cichowski <pcichowski@pcichowski.com>
1 parent e0b7b08 commit 663caf5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

logic/advanced_forecast.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ def graph_rainfall(canvas, hours, rainfall, humidity):
4848

4949
secondary_canvas = canvas.twinx()
5050
secondary_canvas.plot(hours, humidity, color='#ff9914', linewidth=4.0)
51-
canvas.bar(hours[:-1], rainfall[:-1], width=0.8, color='#29bf12', edgecolor='#006400', linewidth=2.0, align='edge')
51+
canvas.bar(hours[:-1], rainfall[:-1], width=0.8, color='#29bf12', edgecolor='#006400', linewidth=4.0, align='edge')
52+
canvas.set_ylim(bottom=0)
5253

5354
canvas.margins(x=0.0)
5455

0 commit comments

Comments
 (0)