help-octave
[Top][All Lists]
Advanced

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

Is there an easy way to create a plot with filled markers?


From: JokerOne
Subject: Is there an easy way to create a plot with filled markers?
Date: Wed, 24 Sep 2014 00:48:44 -0700 (PDT)

Hi all,

I am looking for an easy way to create a plot with filled markers.

I hope, that the following example code will clearify my point:

graphics_toolkit('gnuplot');            
setenv GNUTERM windows; 

%       example plot
a = rand(4);
figure(1);      % circles
plot(a,'o');


%       same plot with filled markers --> quite complicate!
colormap_plot   =        get(gca(),'colororder');
figure(2)       
for c1 = 1:4

plot(a(:,c1),'o','color',colormap_plot(c1,:),'markerfacecolor',colormap_plot(c1,:));
        hold on
endfor
hold off;

figure(3) %     easier way of creating figure(2) ??
plot(a,'o','filled'); % ??? 
% or at least anything that will get rid of the for loop, like
plot(a,'o','color',colormap_plot(1:4,:),'markerfacecolor',colormap_plot(1:4,:));
 
% ???


Any help is appreciated!

Max





--
View this message in context: 
http://octave.1599824.n4.nabble.com/Is-there-an-easy-way-to-create-a-plot-with-filled-markers-tp4666672.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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