Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 70787ce

Browse files
committed
Change threshold from SubPlot.auto_scale
1 parent 29b098d commit 70787ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fastplotlib/layouts/_plot_area.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,9 +597,9 @@ def auto_scale(
597597
width, height, depth = (1, 1, 1)
598598

599599
# make sure width and height are non-zero
600-
if width < 0.01:
600+
if width <= np.finfo(np.float32).smallest_normal:
601601
width = 1
602-
if height < 0.01:
602+
if height <= np.finfo(np.float32).smallest_normal:
603603
height = 1
604604

605605
# scale all cameras associated with this controller else it looks wonky

0 commit comments

Comments
 (0)