Why do LINE and PLOT not honor the default properties for a line that have been set using MATLAB 7.8 (R2009a)?
Show older comments
I have changed the defaults for the line on an axis as below. When I plot a line using LINE or PLOT, the figure does not contain the default properties for the lines drawn as I have set them.
h = gca;
set(h, 'DefaultLineLineStyle', '-.')
set(h, 'DefaultLineMarker', 'o')
set(h, 'DefaultLineColor', 'g')
set(h, 'DefaultLineMarkerEdgeColor', 'r')
set(h, 'DefaultLineMarkerFaceColor', 'b')
hold on
plot(0,0)
plot(1,1, '*')
plot(2,2, 'o')
line([0 4], [0 -4])
line([0 4], [-1 -5], 'Color', 'g')
Accepted Answer
More Answers (0)
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!