scikit-image / scikit-image

Image processing in Python

Home Page:https://scikit-image.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Collections attribute is used in gallery but was deprecated in Matplotlib 3.8.

mkcor opened this issue · comments

Description:

We can see this output in the Segment human cells gallery example:

/home/runner/work/scikit-image/scikit-image/doc/examples/applications/plot_human_mitosis.py:59: MatplotlibDeprecationWarning:

The collections attribute was deprecated in Matplotlib 3.8 and will be removed two minor releases later.


[14000, 4731, 1057, 353, 59, 15]

Way to reproduce:

Visit https://scikit-image.org/docs/0.22.x/auto_examples/applications/plot_human_mitosis.html

Version information:

v0.22.x

Oops! Current main (9e8bf68 ?) doesn't show this deprecation warning, but the values are entirely different:
len_seg

Different again from v0.21.x and prior:

[0, 320, 270, 48, 19, 3, 1, 0]