diff --git a/PlotsBase/src/Commons/Commons.jl b/PlotsBase/src/Commons/Commons.jl index 970514ff9..bdd925862 100644 --- a/PlotsBase/src/Commons/Commons.jl +++ b/PlotsBase/src/Commons/Commons.jl @@ -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