Turning the visability of the lines of a plot to 'off' if app.UIAxis.Visible = 'off' doesnt hide them.

6 次查看(过去 30 天)
I have an output plot that is created in a startup function in app designer that when a button is pressed I would like to hide.
I have used app.UIAxis.Visible = 'off' and this removes the axis, grid lines etc but not the actual line of the plot.
Is there a way to hide a plotted line on the callback of a pushed button on the same app designer canvas?
Thanks in advance
(Using R2019a)LinePlot3.JPG

采纳的回答

Walter Roberson
Walter Roberson 2019-4-2
set( findobj(app.UIAxis.Children, '-type', 'line'), 'Visible', 'off')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by