#!/usr/local/bin/gnuplot -persist # set terminal pngcairo background "#ffffff" enhanced fontscale 2.5 size 500, 500 # set output 'cities.1.png' unset border unset key unset parametric set datafile separator " " set size ratio 1 1,1 set style data lines unset xtics unset ytics set xrange [ * : * ] noreverse writeback set x2range [ * : * ] noreverse writeback 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 Scale(size) = 0.25*sqrt(sqrt(column(size))) CityName(String,Size) = sprintf("{/=%d %s}", Scale(Size), stringcolumn(String)) NO_ANIMATION = 1 save_encoding = "utf8" ## Last datafile plotted: "cities.dat" plot 'cities.dat' using 5:4:($3 < 5000 ? "-" : CityName(1,3)) with labels