plot and set y color

12 Ansichten (letzte 30 Tage)
Vincent I
Vincent I am 11 Jul. 2012
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 Kommentare
John Petersen
John Petersen am 11 Jul. 2012
Did you try
set(handles.Axes1,'YColor','r')
Vincent I
Vincent I am 11 Jul. 2012
yes, i remember trying and i think it didnt work... however it does work thank you

Melden Sie sich an, um zu kommentieren.

Antworten (1)

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

Kategorien

Mehr zu Graphics Object Properties finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by