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

Skip to content

Remove threshold from SubPlot.auto_scale #810

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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