Closed smaginmi closed 3 weeks ago
Thanks for reporting this issue and providing a good indication of how to resolve it.
To do:
matplotlib
the register_cmap
function was deprecated.register_cmap
, and register the colour map in newer versions according to this example.The breaking change was introduced in matplotlib
version 3.9.0
Please use the below template to submit your issue:
Expected behavior
I'm running through this TCIA_MIRP notebook and when running this snippet:
And it should just show the image with mask of the mass.
Observed behavior
But instead of the image I get this error msg:
Steps to reproduce the problem
The problem seems to stem from the matplotlib version (3.9.0) and downgrading to 3.7.0 and restarting the kernel solves my issue. Here is a similar problem from a different project for reference thread, where their solution is to pin their matplotlib to 3.8.x.
Specifications