diff --git a/src/Plots.jl b/src/Plots.jl index e730e65c..e2ffa95c 100644 --- a/src/Plots.jl +++ b/src/Plots.jl @@ -138,12 +138,15 @@ module PlotMeasures import Measures import Measures: Length, AbsoluteLength, Measure, BoundingBox, mm, cm, inch, pt, width, height, w, h const BBox = Measures.Absolute2DBox -export BBox, BoundingBox, mm, cm, inch, pt, px, pct, w, h + +# allow pixels and percentages +const px = AbsoluteLength(0.254) +const pct = Length{:pct, Float64}(1.0) +export BBox, BoundingBox, mm, cm, inch, px, pct, pt, w, h end using .PlotMeasures import .PlotMeasures: Length, AbsoluteLength, Measure, width, height -export BBox, BoundingBox # --------------------------------------------------------- include("types.jl") diff --git a/src/layouts.jl b/src/layouts.jl index 9e90a2f1..9bd4d3b2 100644 --- a/src/layouts.jl +++ b/src/layouts.jl @@ -1,10 +1,6 @@ # NOTE: (0,0) is the top-left !!! -# allow pixels and percentages -const px = AbsoluteLength(0.254) -const pct = Length{:pct, Float64}(1.0) - to_pixels(m::AbsoluteLength) = m.value / 0.254 const _cbar_width = 5mm