# set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 600, 400 # set output 'iris.2.png' set border 3 front lt black linewidth 1.000 dashtype solid set style fill transparent solid 0.30 border set key title "Iris Species" enhanced font ":Bold" center set key outside right top vertical Left reverse enhanced autotitle nobox set key invert samplen 4 spacing 1 width 0 height 0 set key maxcolumns 0 maxrows 0 offset screen -0.3, -0.2 set offsets 0.5, 0.5, 0.5, 0.5 set datafile separator "," set datafile columnheaders set size ratio 1 1,1 set style data lines set xtics border in scale 1,0.5 nomirror norotate autojustify set xtics rangelimit autofreq set ytics border in scale 1,0.5 nomirror norotate autojustify set ytics rangelimit autofreq set cbtics border in scale 1,0.5 nomirror norotate autojustify set title "{/:Bold Concave Hull chi\\_length = 1.5 expand 0.1}" set title offset character 0, -2, 0 font "" textcolor lt -1 norotate set xlabel "Sepal Width" set ylabel "Petal Length" species(name) = strstrt(name,"setosa") ? 1 : strstrt(name,"versicolor") ? 2 : strstrt(name,"virginica") ? 3 : 0 NO_ANIMATION = 1 chi_length = 1.5 ## Last datafile plotted: "iris.dat" plot for [s=1:3] 'iris.dat' using (species(strcol(5)) == s ? $2 : NaN) : 3 concavehull smooth path expand 0.1 with polygon lc s notitle, '' using 2:3:(species(strcol(5))) with points pt 12 lc variable notitle, keyentry with ellipse lc species("setosa") title "setosa", keyentry with ellipse lc species("versicolor") title "versicolor", keyentry with ellipse lc species("virginica") title "virginica"