Why do plot related commands by default overwrite existing axes properties in MATLAB?
Understand why MATLAB plot commands overwrite axes properties by default. Explore the design choices behind this behavior and learn how to control your plot app
Understand why MATLAB plot commands overwrite axes properties by default. Explore the design choices behind this behavior and learn how to control your plot app
MATLAB used to work on old consoles that had no windowing system. If you called PLOT, then it would switch to graphics mode and draw the plot. You then had to hit ESC or something to get the command line back. If you called plot again, it would start over. There was no handle graphics at the time. Translating this to a window system, it now looks like the following:
% >> do some hard math stuff plot(mydata) % >> think then do more math stuff. plot(mydata)
In this case, the second plot replaces the first, instead of adding to it. If you want two lines in the figure that is where HOLD ON comes in. That is why the axes properties are replaced by default. The question to ask is if the axes had been configured because someone wrote a script that adds titles for instance, should those features stay on the axes when the data is replaced? The answer is no, this is a new fresh plot unless the user specified that it should not be.
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.