Skip to content

Commit

Permalink
fix #805
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer committed Oct 16, 2021
1 parent 217a16d commit 817bccd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/makielayout/layoutables/scene.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ function layoutable(::Type{LScene}, fig_or_scene; bbox = nothing, scenekw = Name
layoutobservables = LayoutObservables{LScene}(attrs.width, attrs.height, attrs.tellwidth, attrs.tellheight,
attrs.halign, attrs.valign, attrs.alignmode; suggestedbbox = bbox)

# We also set `raw = false` because otherwise the scene will not automatically
# pick a camera and draw axis.
scenekw = merge((raw = false, clear = false), scenekw)
# These attributes are inherited from the parent scene. We set them because:
# raw = true stops the scene from picking a camera and drawing axis
# show_axis = false stops the scene from drawing axis
scenekw = merge((raw = false, show_axis = true), scenekw)
scene = Scene(topscene, lift(round_to_IRect2D, layoutobservables.computedbbox); scenekw...)

ls = LScene(fig_or_scene, layoutobservables, attrs, Dict{Symbol, Any}(), scene)
Expand Down

0 comments on commit 817bccd

Please sign in to comment.