Skip to content

Commit

Permalink
fix aspect_ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Nov 13, 2024
1 parent ad47d73 commit 5361eae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions PlotsBase/src/Commons/Commons.jl
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ function get_aspect_ratio(sp)
end
end
ar isa Bool && (ar = Int(ar)) # NOTE: Bool <: ... <: Number
ar isa Rational && (ar = float(ar))
ar
end

Expand Down

0 comments on commit 5361eae

Please sign in to comment.