R2025b Figure datatips appearing below colorbars or other elements

21 views (last 30 days)
Hi all,
I recently upgraded from R2024a to R2025b, and I observed that the datatips are now displayed below other elements of the figures, such as colorbars or other figures when using subplots. Below is a comparison of the behavior in R2024a and R2025b for the same figure.
Is there a way to have the datatip always be at the front ? Or to keep using legacy figures of R2024a in Matlab R2025b ?
This is very important for me because I often edit the datatip content to contain additionnal information, which can result in big datatips and I want them to be over any other element of the figure.
R2024a
R2025b
  3 Comments
Adam Danz
Adam Danz on 21 Nov 2025
Edited: Adam Danz on 21 Nov 2025
Thanks for reporting this @Alexis Fouineau, we're looking into it.
Thanks for chipping in @Mathieu NOE. Copilot is right about this changing in R2025a but the rest about stacking order is only partially correct. The z-order it's refering to via uistack is only helpful within a layer but there is a back & front layer component and other annotation layering behind the scenes that is coming into play here as well.
I'll share a workaround if I find one.
Alexis Fouineau
Alexis Fouineau on 21 Nov 2025
Edited: Alexis Fouineau on 21 Nov 2025
Hi, @Mathieu NOE thank you for the answer, I tried all of the options above and unfortunately none seems to work..
@Adam Danz thanks for looking into this ! For now I will probably keep using R2024a until I have a solution.

Sign in to comment.

Answers (1)

Catalytic
Catalytic on 30 Nov 2025
Edited: Catalytic on 30 Nov 2025
Pull the data box to the left of the data tip anchor point, so that it won't overlap with the colorbar -
  1 Comment
Alexis Fouineau
Alexis Fouineau on 1 Dec 2025
Thank you, I know I can do that, but as I said I typically edit the datatip with a lot of information and sometimes I can't work this around, I have to recenter the figure and go fullscreen, a problem I did not have in MATLAB R2024a.
Moreover, I also have the problem with subplots, where the datatip goes behind other axes of the figure.

Sign in to comment.

Categories

Find more on App Building in Help Center and File Exchange

Products


Release

R2025b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!