Can I gray out the UIAxes the same way I gray out a whole panel with buttons? I see that I can use
app.UIAxes.Visible = "on/off";
but it makes the plot appear/disappear and I want it to be grayed out.

1 Comment

You can make probably combine some color and transparency changes and change PickableParts to none to limit the interactivity. https://uk.mathworks.com/help/matlab/ref/matlab.ui.control.uiaxes-properties.html#bu6ewif_sep_shared-PickableParts

Sign in to comment.

 Accepted Answer

Mateusz Zagórski
Mateusz Zagórski on 27 Oct 2023
Thanks for your ideas, but I've found that I can put it in the panel and graying out the panel will make the graph also grayed out

4 Comments

Which was previously checked by me, but for some reason hadn't worked.
@Mateusz Zagórski: Nice solution! +1
Just to be clear, when you say "to gray out the panel", you mean to set the panel's Enable property to 'off', correct?
Exactly. Plots unfortunately do not have this property afaik
Voss
Voss on 27 Oct 2023
Edited: Voss on 27 Oct 2023
That's right, axes and uiaxes do not have an Enable property, but panels do, and disabling a panel effectively disables whatever's in it, including axes and uiaxes (apparently).

Sign in to comment.

More Answers (1)

Image Analyst
Image Analyst on 2 Oct 2023
To change just about anything you can think of on a graph see the attached demo.

Categories

Tags

Community Treasure Hunt

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

Start Hunting!