Hide trendlines on plots, via app designer

7 views (last 30 days)
I am using App designer to design my App. This App has multiple plots. Each plots has few trends.
Is there away to hide certain trends, either directly on the plot or via another function associated with radio or check box?
Dharmesh Joshi
Dharmesh Joshi on 20 Jan 2023
This is my plot. I would like to be able to select any of the three trends as the only dataset to display on the plot, without any other datashet, but it has to be dynamic either an option on the plot or i can create a function via the GUI.

Sign in to comment.

Accepted Answer

dpb on 20 Jan 2023
Edited: dpb on 21 Jan 2023
You forgot to show us how you're creating the plot, but if you will save the line handles when plotting, then you can toggle the 'Visible' property on/off. If you'll add a 'DisplayName' property value to the lines as well, you could have a user-selectable listbox or the like to choose which to show with given name, linestyle, etc., etc., etc., ...

Sign in to comment.

More Answers (0)


Find more on Develop Apps Using App Designer in Help Center and File Exchange




Community Treasure Hunt

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

Start Hunting!

Translated by