File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 28
28
def _get_bins (
29
29
data : npt .NDArray [Any ],
30
30
num_bins : int = 100 ,
31
- ) -> npt .NDArray [Any ]:
31
+ ) -> npt .NDArray [np . floating ]:
32
32
"""Create evenly spaced bins with a given interval.
33
33
34
34
Parameters
@@ -161,13 +161,13 @@ def draw(self) -> None:
161
161
for i , c in enumerate ("rgb" ):
162
162
self .axes .hist (
163
163
data [..., i ].ravel (),
164
- bins = bins .tolist (),
164
+ bins = bins .tolist (), # type: ignore[arg-type]
165
165
label = c ,
166
166
histtype = "step" ,
167
167
color = _COLORS [c ],
168
168
)
169
169
else :
170
- self .axes .hist (data .ravel (), bins = bins .tolist (), label = layer .name )
170
+ self .axes .hist (data .ravel (), bins = bins .tolist (), label = layer .name ) # type: ignore[arg-type]
171
171
172
172
self ._contrast_lines = [
173
173
self .axes .axvline (lim , color = "white" )
@@ -297,7 +297,7 @@ def draw(self) -> None:
297
297
298
298
bins = _get_bins (data )
299
299
300
- _ , bins , patches = self .axes .hist (data , bins = bins .tolist ())
300
+ _ , bins , patches = self .axes .hist (data , bins = bins .tolist ()) # type: ignore[arg-type]
301
301
patches = cast (BarContainer , patches )
302
302
303
303
# recolor the histogram plot
You can’t perform that action at this time.
0 commit comments