フィルターのクリア

How can i specify not to use blue line for a plot

3 ビュー (過去 30 日間)
ekko ekkosen
ekko ekkosen 2015 年 4 月 25 日
コメント済み: Star Strider 2015 年 4 月 25 日
ok say i have this matlab script. this code plots 15 different plots in one plot and it gives each function a color. so how do i specify to not use the color blue for any of those 15 functions if this is possible?
clear all
clear variables
clc
Z = 1:1:20;
O = rand(20,15);
plot(Z,O);

採用された回答

Star Strider
Star Strider 2015 年 4 月 25 日
編集済み: Star Strider 2015 年 4 月 25 日
You can take the initial blue out of the default colour order (in R2015a here) by setting the 'defaultAxisColorOrder' property to exclude it:
cd = get(groot,'defaultAxesColorOrder');
set(groot, 'defaultAxesColorOrder', cd(2:end,:))
x = randi(10, 6, 2);
y = randi(10, 6, 2);
figure(1)
plot(x(:,1), y(:,1), 'p', 'MarkerSize',10)
hold on
plot(x(:,2), y(:,2), 'p', 'MarkerSize',10)
hold off
EDIT — For details see the documentation for ColorOrder.
  2 件のコメント
ekko ekkosen
ekko ekkosen 2015 年 4 月 25 日
Thanks it helped a lot!
Star Strider
Star Strider 2015 年 4 月 25 日
My pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDiscrete Data Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by