linkaxes!
works only when changing the limits of the most recently created axis
#4837
Open
3 tasks done
Labels
When
linkaxes!
(or its variantslinkxaxes!
andlinkyaxes!
) is used, changing the limits of the axis seems to work only if applied to the most recently created axis.In this MWE, changing the limits of
ax1
has no effect (tested with GLMakie and CairoMakie).Note: when executing the code line by line,
xlims!(ax1, 4, 8)
does update correctly all the axis, but thendisplay(f)
resets the limits.If
xlims!
is applied toax2
instead, everything works fineChanging the order of
ax1
,ax2
inlinkaxes!
(i.e. tryinglinkaxes!(ax2, ax1)
instead oflinkaxes!(ax1, ax2)
) does not change the results.From my testing (including trying to link more than two axis),
xlims!
/ylims!
seems to work only if applied to the last one that was created.Same behavior is seen when setting the limits directly with the
limits
attribute when creating the axis.]st -m Makie
)➡ [ee78f7c6] Makie v0.22.2
]activate --temp; add Makie
)➡ Linux, Nvidia RTX A2000
The text was updated successfully, but these errors were encountered: