A piece of code to create a treemap which worked before does not work any longer. I am using Spyder IDE which I installed together with Anaconda.
import matplotlib.pyplot as plt
import squarify
squarify.plot(
sizes=[13,22,35,5],
label=["group A", "group B", "group C", "group D"],
)
plt.axis('off')
plt.show()
When I run the code it throws the following error:
AttributeError: module 'squarify' has no attribute 'plot'
I don't know what I have changes that the code is not working any longer. I can run other matplotlib
*** Update ***
I found a source suggesting I should run pip3 install -U matplotlib
which yields another error
WARNING: Error parsing requirements for descartes: [Errno 2] No such file or directory: 'c:\\users\\USER\\anaconda3\\envs\\uba\\lib\\site-packages\\descartes-1.1.0.dist-info\\METADATA'
I was able to fix this error by deleting the folder descartes-1.1.0.dist-info
and reinstalling descartes. However, the initial squairy error persists.