- Posted by jonathan at 09:53:37 // //
Let’s say you have an existing plot, saved as a .fig file, and you’d like to change the width of one of the plot lines. How do you do it? Do you have to generate the plot again? Nope - you can use MATLAB’s handle graphics to update the existing figure. For more info on how to do this, see this excellent page at MIT:
If, for example, you want to change the ordering (layering) of two separate plot lines, you can do something similar to:
>> h = gca; >> get(h, 'children') >> set(h, 'children', [ans(2), ans(1)]);
- Add a comment // // Add to...