let you plot large dataset of coordinate, colored with velocity, in 1 line:
And it's a lot faster!!
04 Aug 2008
Carlos Adrian Vargas Aguilera
This is nice Pekka, I recommend you to include a screenshot.
My 'low' rating is because if the length of the series is short (10 elements for example) the colors are different for the same y-values. My suggestion is to generate colorbands in the y-axis and make linear interpolations in these bands.
31 Jul 2008
Useful function which avoids creating separate line segments for each color. The coloured line produced is a single MATLAB graphics object.
14 Apr 2008
thanks--this is a useful routine for plotting 2-d vectors (e.g. U=[u,v]) on a [u,v] plane, where the color gives the sense of rotation (time evolution) of the vector.