When I want to plot a 2-D line plot, for example:
plot(peaks,'Color','r','LineWidth',2,...
'MarkerSize',10,...
'MarkerEdgeColor','b',...
'MarkerFaceColor',[0.5,0.5,0.5])
I will plot some figures and have the same properties, so I have some doubts.
- Can I pre-define the properties? Then I can only use plot(peaks)
- If I create a function file, its function is to draw some 2-D line plot, so I want to pass some properties into this function, such as
function myplot(input_properties)
plot(peaks)
plot(peaks)
end
myplot('Color','r','LineWidth',2)
So I hope someone will help me, thanks.
0 Comments
Sign in to comment.