help-octave
[Top][All Lists]
Advanced

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

Plotting a color gamut?


From: Alasdair McAndrew
Subject: Plotting a color gamut?
Date: Mon, 26 Jan 2015 12:09:48 +1100

I'm trying to plot a CRT gamut, similar to the picture at

http://en.wikipedia.org/wiki/Gamut

I have an N x 2 array "pts" of all the points to be plotted, and a corresponding N x 3 list "clrs" of the RGB color of each one.  However, the commands

hold on
for i = 1:N,plot(pts(i,1),pts(i,2),'color',clrs(i,:),'.'),end;

works, but is very very slow.  Is there a way of speeding this up; or in general for plotting a very large amount of points (100,000, say), each with a particular color?

Thanks,
Alasdair

--
http://www.facebook.com/alasdair.mcandrew https://plus.google.com/+AlasdairMcAndrew/posts https://www.linkedin.com/pub/alasdair-mcandrew/a/178/108 https://twitter.com/amca01 http://numbersandshapes.net

reply via email to

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