Monday, September 19, 2011

Colours and formats

It is a difficult task to control colours in GNUPLOT. Each type of output file (png, ps, eps, etc.) has its own colour definition. In order to know which colour belongs to each line style, an easy method is to type test after selecting the output format.

Example:
  • set term png
  • set output 'test_colour.png'
  • test

Then, the file test_colour.png will look like:

This can be done for all output formats (png, ps, eps...).

No comments:

Post a Comment