dat.d=2;
dat.n=3;
dat.C=[-0.976,-0.251,0.368;..
        0.401,-0.506,0.327];
dat.R=[ 0.98;  0.653;0.816];
rangeX=[min(dat.C(1,1:(dat.n))-dat.R'),max(dat.C(1,1:(dat.n))+dat.R')];
rangeY=[min(dat.C(2,1:(dat.n))-dat.R'),max(dat.C(2,1:(dat.n))+dat.R')];
itemColorMap=list('#aa0000','#00aa00','#0000aa');
function centres()
    for i=1:1:dat.n
        cntr=plot(dat.C(1,i),dat.C(2,i),'Color',itemColorMap(i));
        cntr.mark_style=0; cntr.mark_size=5; cntr.line_mode="off";
    end
endfunction
function circles()
    for i=1:1:dat.n
        a=-%pi:0.01:%pi;
        x=dat.C(1,i)+dat.R(i)*sin(a); y=dat.C(2,i)+dat.R(i)*cos(a);
        crcl=plot(x,y,'Color',itemColorMap(i)); crcl.thickness=2;
    end
endfunction
gwh0=scf(); clf();
xlfont("../../fonts/cm-unicode-0.7.0/CMU_Typewriter_Text-Medium.otf",0);
ax0=gca(); ax0.grid=[1,1,1]; ax0.grid_style=[9,9]; ax0.isoview="on";
ax0.font_style=0; ax0.font_size=3; ax0.filled="off";
ax0.x_label.font_style=0; ax0.x_label.font_size=3;
ax0.y_label.font_style=0; ax0.y_label.font_size=3; ax0.y_label.font_angle=0;
xlabel(ax0,"x"); ylabel(ax0,"y");
centres(); circles(); xstring(-0.30,-0.15,["a"]);
gwh0.figure_size=[480,480]; gwh0.anti_aliasing="16x";
//xs2svg(gwh0,"../drafts/fig1.svg");/* add "fill-opacity:0;" to svg-background */
