Gnuplot: Ugly Figures

Gnuplot is a portable command-line driven graphing utility for many platforms. In the basic way, it does render figures in a pixelized and not nice way. This is how to deal with it…

Native bitmap way

To export bitmap figures, the following can be used:

set term png

However, the libgd does not support antialiasing. Therefore, pngcairo needs to be used instead:

set term pngcairo

Vector workaround

The bitmap can be produced externally, by the imagemagick program for instance. First, the figure is exported to a vector format (a SVG, PDF, etc.) and consequently, converted using the convert program into a bitmap (PNG, JPG, etc.)

convert figure.png


This entry was posted in Apple, BSD, Linux and tagged , , , , , , , , , . Bookmark the permalink.