Reset UIAxes to show only the X and Y axis

1 次查看(过去 30 天)
My program uses a single UIAxes graph to show different lines when each button is pressed. However one of them uses a Z axis. This means that when I want to return to the graph with just a X and Y Axis, the Z axis is still there.
I have tried lines like, cla(app.UIAxes). However this does not reset the axis to 2 but only removes the previous line.
Thank you :)

采纳的回答

Cris LaPierre
Cris LaPierre 2019-11-15
You could try the reset function.
reset(app.UIAxes)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by