How to Solve NameError: name 'Figure' is not defined -- matplotlib
Solution: Import the 'Figure' module
To Solve the error, add the following line to the top of your code.
from matplotlib.figure import Figure
For more information:
Python matplotlib Figure