How to import matplotlib._cntr using the LTS (2.2.0) version of Matplotlib?

0

To build GeoJson files, use the ._cntr

import matplotlib._cntr as cntr

When trying to load it using matplotlib 2.2.0 it returns error:

ImportError: No module named _cntr

How can this module be imported? Older versions of matplotlib allow for loading, especially 2.1.0 or earlier LTS.

    
asked by anonymous 07.03.2018 / 19:22

1 answer

1

The Code has been discontinued from Matplotlib, due to some particularities to resolve the functions of contour and contourf ( link ). However, some solutions are being reused by contributor Benjamin Root through the Repository: link

    
09.03.2018 / 23:04