Plot command changing the graph background and grid line colours in GUIDE
古いコメントを表示
Hi.
Im using GUIDE and have several axes components that I use to display graphs. One of them i want to have a dark background. I noticed when I set the background colour to my choice in the property inspector, when the GUI ran, it was correct. But as soon as I plotted the background went white.
so I tried to put the following in the opening function:
ax=axes(handles.axes1)
set(ax,'Color',[0.15 0.15 0.15])
grid on
ax.GridColor=[1 1 1];
ax.GridAlpha=0.5;
drawnow;
But again, when I plot my grapg (from a push button callback), it again turns back to default white.
Is there a way to stop the plot command changing the graph background and grid line colours?Is there a way to stop the plot command changing the graph background and grid line colours?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Graphics Performance についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!