I would like to generate random colours for the markers in a polar plot (for
example), but not sure what is needed.
adding: f.color_map = rand(jetcolormap(64)); will give random colours for
each new plot, but what I would like to try is to randomise the colours of
the markers. In the following script, the polar plot generates point markers
but all red, is it possible to plot with random colours?
// Enter the upper range
x = input("Enter the upper range : ");
f = gcf();
a.mark_foreground = 21 // <- sets the current marker colour from figure
// plot the prime number in polar coordinates
That is a good solution. Would be nice if that was available directly in Polarplot
There is no actual interest having all properties combinations
available at calling time.
It's possible and easy to post-process the polarplot display to
get what you require.
clfresett=linspace(0,2*%pi,30);polarplot(t,-1+sin(t));c=gca().children.children; // the curve
Le 28/06/2020 à 08:28, arctica1963 a écrit :
> Thanks Samuel. Always good to learn different methods.
The fact that .mark_foreground and similarly .mark_background and
can be a vector to customize the marks individually was introduced in
but is still not documented in the polyline_properties page of 6.1.0.
The page is updated for the next 6.1.1 release.