I have three figure windows and execute HOLD ON without specifying to which axes I want to apply HOLD ON. The axes I am interested in is not currently in focus, thus the subsequent plot destroys the properties and callbacks of the axes in question. If the PLOT command did not destroy axes properties by default, none of this would not have happened. I want to know why the decision was made that plot-related commands by default destroy the axes properties as opposed to retain those in subsequent plotting commands.
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.