Is it possible to change the style of the plot produced by ODEPLOT function in MATLAB 7.6 (R2008a) ?
3 views (last 30 days)
Show older comments
I would like ODEPLOT to format the plot it produced in a different way. For instance, I would like to get rid of the "o" line markers.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
You will need to write your own function that will collect all the handles to the objects that you wish to modify and set the value to a particular property.
For example, the following code removes the marker 'o' from the lines plotted by the ODEPLOT option.
% find all the lines with the Marker to be 'o'
hlines = findall(gca,'type','line','marker','o')
% change the marker type to none or some other shape
set(hlines(:),'marker','none')
You can interactively change the appearance of the plot by turning on PLOTTOOLS once the ODE plot has been created. This can be done by typing the following at the MATLAB command prompt.
plottools
0 Comments
More Answers (0)
See Also
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!