Filter löschen
Filter löschen

Axes in GUI

1 Ansicht (letzte 30 Tage)
Ean Soo
Ean Soo am 20 Mär. 2011
Hie guys, can i know how do we change the axes scale color? Like if we change at the properties table, it only appear when we run the GUI. But when we plot out the graph, the color change back to black color. So, can i know how to change it?
Regards, Ean

Akzeptierte Antwort

Paulo Silva
Paulo Silva am 20 Mär. 2011
%after plotting set the colors
set(gca,'XColor',[1 0 0]) %x scale in red
set(gca,'YColor',[0 1 0]) %y scale in green
You can also keep the scale colors by doing
hold all
before the first plot, be aware that this will also do other things to your axes that you might not want.
If you want to remove the scale on top and on the right
box off
  1 Kommentar
Ean Soo
Ean Soo am 20 Mär. 2011
THank you Paulo

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Line Plots 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