How can I maintain visible axes when using imagesc (box on doesn't work)?
Mostra commenti meno recenti
I'm displaying an image using imagesc. This makes the black axes disappear. I've tried setting the 'xcolor' and 'yxolor' properties of the axes to black, and I've made sure to use 'box on'. What am I doing wrong? Cheers
4 Commenti
Kristoffer Walker
il 29 Gen 2023
I have the same issue. Two things for me that are annoying: (1) the "box" around the axes disappears, (2) "grid on/off" does not overlay on top of the image I am plotting. I am using 2022b, and I'm referring to imagesc plots in App Designer axes.
Jan
il 30 Gen 2023
@Kristoffer Walker: Again: Please post a minimal working example. Prefer to open a new thread for your question.
re:App Designer: See This answer for the grid problem, or if your version of Matlab is current (I don't know what version it was introduced), do this for the axes in your component browser:

As for the box, there is a "Box Styling" section with a checkbox to enable it.
If the image is dark, the ticks may not be discernable. You could visit the "Rulers" section and change XColor and YColor there, to confirm it is still a problem.
Risposte (0)
Categorie
Scopri di più su Line Plots in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!