<div dir="ltr">Fabien,<div><br></div><div>I suggest looking at skimage ( <a href="http://scikit-image.org/docs/dev/auto_examples/edges/plot_contours.html">http://scikit-image.org/docs/dev/auto_examples/edges/plot_contours.html</a> ) for contouring code.</div><div><br></div><div>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).</div><div><br></div><div>Please do not use private APIs. We can (and will!) change them with no notice.</div><div><br></div><div>Tom</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Mar 5, 2018 at 3:45 AM Fabien <<a href="mailto:fabien.maussion@gmail.com">fabien.maussion@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
matplotlib._cntr.Cntr is gone in version 2.2. I know this was a private<br>
module but it ended up being used by some (a quick online search will<br>
show you some examples. ie this SO post:<br>
<a href="https://stackoverflow.com/questions/18304722/python-find-contour-lines-from-matplotlib-pyplot-contour" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/18304722/python-find-contour-lines-from-matplotlib-pyplot-contour</a>).<br>
<br>
The use case for this class (as shown by the examples online) was to<br>
obtain polygon contours of labeled regions in a 2D array.<br>
Is there an alternative implementation available? The solutions I've<br>
found online imply making a plot, which isn't really what I'm looking for.<br>
<br>
Thanks a lot!<br>
<br>
Fabien<br>
<br>
<br>
_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</blockquote></div>