[Scilab-users] Random colours for plot markers
Rafael Guerra
jrafaelbguerra at hotmail.com
Sat Jun 27 11:31:33 CEST 2020
Hi,
Maybe you could complement polarplot with scatter, as in rush example below:
clear
clf()
x = 300;
angle= %pi;
p=primes(x);
rad= p;
theta= -angle + 5*p*angle/x;
n = length(p);
f = gcf();
f.figure_size=[1024,1024];
mcolors = int(n*rand(p));
polarplot(theta,rad)
scatter(rad.*cos(theta),rad.*sin(theta),20,mcolors,"fill")
Regards,
Rafael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200627/a6342fcc/attachment.htm>
More information about the users
mailing list