GUI panel axis displaying when set to axis off

3 views (last 30 days)
Hello all,
I am working on a project for Mechanics of Materials undergraduate course. For the project I made a GUI that the user inputs the sigma_x, sigma_y, tau_xy, and desired orientation and outputs the calculations, a plot of Mohrs Circle, a plot of the Stress Data as a function of theta, and plots the state of stress elements. For the state of stress elements I have the used the command 'axis off' and it takes the axes off for the first two but for some reason the third one is still there. I am not sure why it is not getting taken off.
Thanks for y'all's help.
  1 Comment
Chase Johnston
Chase Johnston on 10 Dec 2018
Forgot to mention that the axis that is staying on is located in the StateOfStressElement function in the attached script

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 10 Dec 2018
Pass the appropriate axis handle to axis off . Do not rely upon the current axes being the one you are interested in.
axes(ax_File4, 'off')

More Answers (0)

Categories

Find more on Stress and Strain 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!