Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7b48bc3

Browse files
p-j-smithdstansby
authored andcommitted
convert bins array to list to make mypy happy
1 parent75bfe52 commit7b48bc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/napari_matplotlib/histogram.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ def draw(self) -> None:
8282
fori,cinenumerate("rgb"):
8383
self.axes.hist(
8484
data[...,i].ravel(),
85-
bins=bins,
85+
bins=bins.tolist(),
8686
label=c,
8787
histtype="step",
8888
color=_COLORS[c],
8989
)
9090
else:
91-
self.axes.hist(data.ravel(),bins=bins,label=layer.name)
91+
self.axes.hist(data.ravel(),bins=bins.tolist(),label=layer.name)
9292

9393
self._contrast_lines= [
9494
self.axes.axvline(lim,color="white")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp