mirror of https://github.com/Desuuuu/klipper.git
graphstats: Allow graphing of temperature_sensor logs
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
c4a37756ea
commit
d339839a91
|
@ -228,8 +228,8 @@ def plot_temperature(data, heater):
|
|||
continue
|
||||
times.append(datetime.datetime.utcfromtimestamp(d['#sampletime']))
|
||||
temps.append(float(temp))
|
||||
pwm.append(float(d[pwm_key]))
|
||||
targets.append(float(d[target_key]))
|
||||
pwm.append(float(d.get(pwm_key, 0.)))
|
||||
targets.append(float(d.get(target_key, 0.)))
|
||||
# Build plot
|
||||
fig, ax1 = matplotlib.pyplot.subplots()
|
||||
ax1.set_title("Temperature of heater %s" % (heater,))
|
||||
|
|
Loading…
Reference in New Issue