Problems using a Nupic example (Hotgym)

Do you know why the “–plot” is not working?

acheron@ubuntu:~/nupic/examples/opf/clients/hotgym/prediction/one_gym$ python run.py --"plot"
Starts a NuPIC model from the model params returned by the swarm
and pushes each line of input from the gym into the model. Results
are written to an output file (default) or plotted dynamically if
the --plot option is specified.
NOTE: You must run ./swarm.py before this, because model parameters
are required to run NuPIC.

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 149, in <module>
    runModel(GYM_NAME, plot=plot)
  File "run.py", line 139, in runModel
    runIoThroughNupic(inputData, model, gymName, plot)
  File "run.py", line 99, in runIoThroughNupic
    output = nupic_output.NuPICPlotOutput([gymName])
  File "/home/acheron/nupic/examples/opf/clients/hotgym/prediction/one_gym/nupic_output.py", line 116, in __init__
    plt.ion()
NameError: global name 'plt' is not defined