def plot_sensor_data(df_sensor: pd.DataFrame):
"""
Creates a line plot for the temperature data of the given sensor with a
reference line for the aerial temperature.
:param df_sensor:
Data frame for the sensor to be plotted
"""
figure = Figure(
title='Temperature Data for Sensor #{}'.format(
int(df_sensor.ix[0]['sensor_index'])
),
x_axis_label='Time of Day (Hours)',
y_axis_label='Temperature (Celsius)'
)
figure.line(df_aerial['time'], df_aerial['temperature'])
figure.line(df_sensor['time'], df_sensor['temperature'], color='red')
cd.display.bokeh(figure, scale=0.3)
评论列表
文章目录