From 5361eae2d439ebfeeffc0c343b0478c556e94cc1 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Wed, 13 Nov 2024 07:46:18 +0100 Subject: [PATCH] fix aspect_ratio --- PlotsBase/src/Commons/Commons.jl | 1 + 1 file changed, 1 insertion(+) 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