How should matplotlib. _cntr be imported using LTS version (2.2.0) of Matplotlib?

Asked

Viewed 60 times

0

The . _cntr module is used to build Geojson files

import matplotlib._cntr as cntr

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

ImportError: No module named _cntr

How should this module be imported? Older versions of matplotlib allow loading, especially 2.1.0 to earlier LTS.

  • Our official language is Português. Translate your question.

  • I found almost nothing about this module. It seems to be undocumented. I looked at the site and nothing available under this name. There is no other similar module?

  • Hi @Guto really has no description of the module, because it is the implementation of the method, as every function started with _ My intention is to find out how to import this in the current version of matplotlib

  • At a glance in these options. I have no more ideas, I could not find more mentions to it in matplotlib.

  • 1

    Thanks @Guto the staff at Github answered me that this module has been implemented and that it has been discontinued in Matplotlib, Benjamin Root is giving segment to these functions, through the code https://github.com/matplotlib/legacycontour

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.