This commit is contained in:
Thomas Breloff 2016-05-17 15:55:54 -04:00
parent 606229a08f
commit 80b9115393
4 changed files with 5 additions and 3 deletions

View File

@ -201,7 +201,7 @@ _subplot_defaults[:aspect_ratio] = :none # choose from :
const _axis_defaults = KW()
_axis_defaults[:label] = :auto
_axis_defaults[:label] = ""
_axis_defaults[:lims] = :auto
_axis_defaults[:ticks] = :auto
_axis_defaults[:scale] = :identity

View File

@ -316,7 +316,7 @@ function _plot!(plt::Plot, d::KW, args...)
end
# get the Subplot object to which the series belongs
sp = slice_arg(kw[:subplot], i)
sp = slice_arg(get(kw,:subplot,1), i)
if sp == :auto
sp = 1 # TODO: something useful
end

View File

@ -123,6 +123,8 @@ function upadte_child_bboxes!(layout::GridLayout) #, parent_bbox::BoundingBox =
freeh /= sum(layout.heights)
@show freew, freeh
@show layout.bbox
# TODO: this should really track used/free space for each row/column so that we can align plot areas properly
# l, b = 0.0, 0.0

View File

@ -64,7 +64,7 @@ Base.(:*)(m1::Length{:pct}, m2::AbsoluteLength) = AbsoluteLength(m2.value * m1.v
Base.(:/)(m1::AbsoluteLength, m2::Length{:pct}) = AbsoluteLength(m1.value / m2.value)
Base.(:/)(m1::Length{:pct}, m2::AbsoluteLength) = AbsoluteLength(m2.value / m1.value)
const defaultbox = BoundingBox(0mm, 0mm, 20mm, 20mm)
const defaultbox = BoundingBox(0mm, 0mm, 0mm, 0mm)
# left(bbox::BoundingBox) = bbox.left
# bottom(bbox::BoundingBox) = bbox.bottom