octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

More help with line()


From: Rik
Subject: More help with line()
Date: Wed, 12 Dec 2018 11:37:57 -0800

Could someone try this bit of code in Matlab and send me the resulting
image?  I want to check whether line() will cycle through the "colororder"
property of the axes.

--- Code Start ---
set(groot,'defaultAxesColorOrder', [1 0 0;0 1 0;0 0 1], ...
          'defaultAxesLineStyleOrder', '-|--|:')

t = 0:pi/20:2*pi;
a = ones (length (t), 9);
for i = 1:9
  a(:,i) = sin (t-i/5)';
end
h = line (t,a);
print ('tst.png', '-dpng')
--- Code End ---

Thanks,
Rik



reply via email to

[Prev in Thread] Current Thread [Next in Thread]