[Matplotlib-users] matplotlib._cntr.Cntr gone in 2.2

Thomas Caswell tcaswell at gmail.com
Mon Mar 5 09:03:13 EST 2018


Fabien,

I suggest looking at skimage (
http://scikit-image.org/docs/dev/auto_examples/edges/plot_contours.html )
for contouring code.

If you are absolutely dependent on that API, the source is available from
previous releases and you are welcome to vendor or create a stand-alone
library (not sure how hard that would actually be).

Please do not use private APIs.  We can (and will!) change them with no
notice.

Tom

On Mon, Mar 5, 2018 at 3:45 AM Fabien <fabien.maussion at gmail.com> wrote:

> Hi all,
>
> matplotlib._cntr.Cntr is gone in version 2.2. I know this was a private
> module but it ended up being used by some (a quick online search will
> show you some examples. ie this SO post:
>
> https://stackoverflow.com/questions/18304722/python-find-contour-lines-from-matplotlib-pyplot-contour
> ).
>
> The use case for this class (as shown by the examples online) was to
> obtain polygon contours of labeled regions in a 2D array.
> Is there an alternative implementation available? The solutions I've
> found online imply making a plot, which isn't really what I'm looking for.
>
> Thanks a lot!
>
> Fabien
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20180305/a12f7b43/attachment.html>


More information about the Matplotlib-users mailing list