From baa3520af696a138c8e4e47a1c7a8ccba6d48dbf Mon Sep 17 00:00:00 2001 From: mattbk Date: Thu, 16 Nov 2017 20:41:57 +0000 Subject: [PATCH] Change colors. --- pi_temp.py | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/pi_temp.py b/pi_temp.py index 75744bc..3f21c63 100755 --- a/pi_temp.py +++ b/pi_temp.py @@ -105,13 +105,15 @@ def history(): temp = Scatter( x=time_series_adjusted_temperatures, y=time_series_temperature_values, - name='Temperature' + name='Temperature', + mode='lines', + line=Line(color='red') ) hum = Scatter( x=time_series_adjusted_humidities, y=time_series_humidity_values, name='Humidity', - yaxis='y2' + line=Line(color='aqua') ) data = Data([temp, hum]) @@ -123,18 +125,10 @@ def history(): autorange=True ), yaxis=YAxis( - title='Fahrenheit', + title='Fahrenheit / Percent', type='linear', autorange=True ), - yaxis2=YAxis( - title='Percent', - type='linear', - autorange=True, - overlaying='y', - side='right' - ) - ) fig = Figure(data=data, layout=layout)