Under Python 3.7, this appeared to work, in Python 3.9, I can only get it to work when I change import pylab as pl to import matplotlib.pyplot as pl Can this be changed?