Why can't I specify the markers for the lines in contour plots?
2 views (last 30 days)
Show older comments
According to the documentation for CONTOUR, using the syntax CONTOUR(...,'LINESPEC'), will allow me to specify the Color and the LineStyle of the lines. It won't allow the setting of a Marker for the lines.
Why doesn't it allow the full LineSpec, including the Marker. like the PLOT function?
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
This issue has been forwarded to our development staff as an enhancement request.
As a workaround, the Marker can be specified after the CONTOUR function:
linespec = 'k:';
[c,h] = contour(peaks,linespec);
set(h,'Marker','o')
0 Comments
More Answers (0)
See Also
Categories
Find more on Contour Plots 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!