Skip to content

Commit e1941b0

Browse files
committed
add threshold for histogram switch
1 parent f2a28d6 commit e1941b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/napari_matplotlib/scatter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ def draw(self) -> None:
4444
# don't plot if there isn't data
4545
return
4646

47-
if self._histogram_for_large_data and (data[0].size > 500):
47+
if self._histogram_for_large_data and (
48+
data[0].size > self._threshold_to_switch_to_histogram
49+
):
4850
self.axes.hist2d(
4951
data[0].ravel(),
5052
data[1].ravel(),

0 commit comments

Comments
 (0)