www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/ModifyLineAfterCreationExample.m
%% Modify Line After Creation % Create a line plot and return the chart line object created. % Copyright 2015 The MathWorks, Inc. x = logspace(1,3); y = 2*x; s = semilogx(x,y); %% % Change the line color and line width by setting chart line % properties. Starting in R2014b, you can use dot notation to set % properties. If you are using an earlier release, use the |set| function % instead. s.Color = [0 .5 .5]; s.LineWidth = 2;