Open musoke opened 5 months ago
I can reproduce this. The cutting seems caused by the following line in the acs theme
theme_args = (figure_padding=0,
Change figure_padding
to 4, the cutting is gone.
The purpose of this line is to produce a tight layout. However, it seems with colorbars, the Makie padding algo fails.
I am not familiar with AlgebraOfGraphics, but with normal Makie code, figure_padding
can be reset when creating the figure object. Or, we can add a new keyword argument tight=true
. When tight=false
, set figure_padding=4
.
Thanks for checking this out.
I would expect that figure_padding=0
does not cut off any of a figures's
content.
Is it possible that this is a bug in Makie? If so, the best solution may be
a bug report there.
On Thu, May 9, 2024, 09:06 Yi-Xin Liu @.***> wrote:
I can reproduce this. The cutting seems caused by the following line in the acs theme
theme_args = (figure_padding=0,
Change figure_padding to 4, the cutting is gone.
The purpose of this line is to produce a tight layout. However, it seems with colorbars, the Makie padding algo fails.
I am not familiar with AlgebraOfGraphics, but with normal Makie code, figure_padding can be reset when creating the figure object. Or, we can add a new keyword argument tight=true. When tight=false, set figure_padding=4.
— Reply to this email directly, view it on GitHub https://github.com/liuyxpp/MakiePublication.jl/issues/13#issuecomment-2102623385, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD7ET7C6ETHV7ANFNF2DH7LZBNYEDAVCNFSM6AAAAABHJRYU4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBSGYZDGMZYGU . You are receiving this because you authored the thread.Message ID: @.***>
I have created a fresh environment
and generated simple plot
Rendering it with the default theme results in
However,
MakiePublication
'stheme_acs_2col
results in the following figure:This has two issues:
This behaviour is consistent in other MakiePublication themes I have tried.