File \"C:/Users/Vrushab PC/Downloads/Dissertation/untitled0.py\", line 125, in
matplotlib.rcParams[\'figure.figsize\'] = (50, 50)
NameError: name \'matplotlib\'
Try this:
import matplotlib as mpl
mpl.rcParams['figure.figsize'] = (50, 50)
From matplotlib docs.
You are importing pyplot framework from matplotlib(a part of matplotlib), you don't have access to the full matplotlib library until you do the above import as mpl. Now, you can use mpl alias to access rcParams.