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

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fastplotlib/layouts/_plot_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,9 +597,9 @@ def auto_scale(
width, height, depth = (1, 1, 1)

# make sure width and height are non-zero
if width < 0.01:
if width <= np.finfo(np.float32).smallest_normal:
width = 1
if height < 0.01:
if height <= np.finfo(np.float32).smallest_normal:
height = 1

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