Introduction
The r.out.colorbar program is a simple export tool for saving GRASS raster colorbars. The program uses GTK+ and CairoGraphics to handle the image output.
The colorbar is saved at a user defined size (in pixels) and orientation. The user can choose between 3 output formats supported by Cairo.
The output formats are:
- PNG Image with transparent background
- PDF document
- Encapsulated Postscript (EPS)
Requirements
The GTK+ development package must be installed in order to build r.out.colorbar. The Makefile uses:
pkg-config --cflags gtk+-2.0
and
pkg-config --libs gtk+-2.0
Building Source
- Download the source tarball here
- Extract the tar file in the GRASS(v.6) source tree in the raster directory
- Change to the r.out.colorbar directory
- Run make to build the program
ToDo
- Include category label support
- Include custom labeling
- Include units labeling
- Add font options
- Update for GRASS 7
Categories: