Can I gray out the UIAxes?

3 views (last 30 days)
Mateusz Zagórski
Mateusz Zagórski on 2 Oct 2023
Edited: Voss on 27 Oct 2023
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
Mario Malic
Mario Malic on 2 Oct 2023
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
Mateusz Zagórski
Mateusz Zagórski on 27 Oct 2023
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

Find more on Spline Postprocessing in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!