# set terminal canvas rounded size 600,400 enhanced fsize 10 lw 1.6 fontscale 1 name "iris_2" jsdir "." # set output 'iris.2.js' set border 3 front lt black linewidth 1.000 dashtype solid set style fill transparent solid 0.30 border set key title "Iris Species" 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 xrange [ * : * ] noreverse writeback set x2range [ * : * ] noreverse writeback set ylabel "Petal Length" set yrange [ * : * ] noreverse writeback set y2range [ * : * ] noreverse writeback set zrange [ * : * ] noreverse writeback set cbrange [ * : * ] noreverse writeback set rrange [ * : * ] noreverse writeback set colorbox vertical origin screen 0.9, 0.2 size screen 0.05, 0.6 front noinvert bdefault species(name) = strstrt(name,"setosa") ? 1 : strstrt(name,"versicolor") ? 2 : strstrt(name,"virginica") ? 3 : 0 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"