-
-
Notifications
You must be signed in to change notification settings - Fork 361
Open
Labels
Axis3related to Axis3related to Axis3MakieLayoutenhancementFeature requests and enhancementsFeature requests and enhancements
Description
Reposted from discourse
The protrusions space is allocated even when decorations are hidden.
let
fig = Figure(resolution=(700, 300))
for i in 1:4
ax1 = Axis3(fig[1, i])
hidedecorations!(ax1) # same place taken if this is commented out
ax2 = Axis(fig[2, i])
hidedecorations!(ax2)
end
fig
endSetting protrusions to 0 or (0, 0, 0, 0) shrink the gaps, yielding the expected figure.
I would have expected hidedecorations! to do that automatically.
protrusions can not be fully automatic (as explained on discourse),
but maybe the presence of tick labels and/or axis label could be partially taken into account,
with separate hard-coded values for elements that belong to the protrusions, say
protrusions = (
(xlabelvisible ? 15 : 0) + (xticklabelsvisible ? 15 : 0),
...
)?
Metadata
Metadata
Assignees
Labels
Axis3related to Axis3related to Axis3MakieLayoutenhancementFeature requests and enhancementsFeature requests and enhancements
Type
Projects
Status
No status
