Hot Gym Anomaly Plot Error

Tried the ./run.py python script. The csv (non plot) generated fine, yet when plotting ran into this. Tried for a while to find issue, must be too close to see it?
fursty@ubuntu:~/nupic/examples/opf/clients/hotgym/anomaly/one_gym$ ./run.py --plot
Creating model from rec-center-hourly…
Importing model params from model_params.rec_center_hourly_model_params
Traceback (most recent call last):
File “./run.py”, line 152, in
runModel(GYM_NAME, plot=plot)
File “./run.py”, line 142, in runModel
runIoThroughNupic(inputData, model, gymName, plot)
File “./run.py”, line 102, in runIoThroughNupic
output = nupic_anomaly_output.NuPICPlotOutput(gymName)
File “/home/fursty/nupic/examples/opf/clients/hotgym/anomaly/one_gym/nupic_anomaly_output.py”, line 167, in init
plt.ion()
NameError: global name ‘plt’ is not defined

Full dump is here

1 Like

See: