I need to draw a scatter-plot with semitransparent filled markers. As an example I need to set alpha color on the filled markers in the following code.
I'm using graphics_toolkit('gnuplot') and Octave 4.0.3 on Debian 9 Stretch.
I know that in Matlab is possible to modify the transparency of the markers on the scatter plots. I need to have the same in Octave 4.0.3
clf
h=figure(1);
n = 100;
x = randn(n, 1);
y = randn(n, 1);
S = rand(n, 1)*50;
hold on
s1=scatter(x(1:50), y(1:50), S(1:50), 'red', "filled")
s2=scatter(x(51:100), y(51:100), S(51:100), "green", "filled")
set(s1,'edgecolor','none');
set(s1,'facealpha',0.2);
set(s2,'edgecolor','none');
set(s2,'facealpha',0.2);
this code produces the following figure.
hold off
saveas(h, 'bubbleplot.png');
