Skip to content

Commit

Permalink
more safety
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer committed May 13, 2024
1 parent bd5296f commit ad2925e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/makielayout/blocks/axis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,13 @@ function getlimits(la::Axis, dim)
bb = boundingbox(la.scene, exclude)
# then undo transform_func so that ticks can handle transform_func
# without ignoring translations, scaling or rotations from model
bb = apply_transform(itf, bb)
try
bb = apply_transform(itf, bb)
catch e
# TODO: Is this necessary?
@warn "Failed to apply inverse transform $itf to bounding box $bb. Falling back on data_limits()." exception = e
bb = data_limits(la.scene, exclude)
end
end

# if there are no bboxes remaining, `nothing` signals that no limits could be determined
Expand Down

0 comments on commit ad2925e

Please sign in to comment.