plot and set y color

3 次查看(过去 30 天)
Vincent I
Vincent I 2012-7-11
I'm trying to plot and set the y color in the same time but it doesnt work
plot(handles.Axes1,x,y,'Color','r','YColor','r')
i also tried
plot(handles.Axes1,x,y,'Color','r')
set(gca,'ycolor','r')
but didnt work... Thank you
  3 个评论
John Petersen
John Petersen 2012-7-11
Did you try
set(handles.Axes1,'YColor','r')
Vincent I
Vincent I 2012-7-11
yes, i remember trying and i think it didnt work... however it does work thank you

请先登录,再进行评论。

回答(1 个)

Luffy
Luffy 2012-7-11
Try this,
figure;
plot(sind(1:360));
set(gca,'YColor','r');

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by