bytebrew / slope

C/Gtk+ data visualization library.
GNU Lesser General Public License v3.0
102 stars 16 forks source link
c cairo charts gtk visualization

License: LGPL v3 Version

SLOPE

Slope is a free (LGPL) C data visualization library for the Gtk+ toolkit.

Slope integrates with Gtk+ 3.X and all the drawing is made with cairo, so it doesn't depend on nothing outside the Gtk stack.

Instalation

Install the required development packages:

Compile and install slope:

mkdir build
cd build
cmake ..
make
sudo make install

Using the library

After the library is installed you can compile your applications adding the -lslope flag to the compiler command line. An example for a simple program, like the ones in the demos directory would be:

gcc simple.c -lslope -lm -o simple `pkg-config --cflags --libs gtk+-3.0`

Roadmap

For examples of basic usage see the demos directory in the source tree.

If you want to try, just download or clone the repository and use CMake to build (yes, we would appreciate if some one contribute automake scripts). If you want to contribute to Slope feel free to issue a pull request. Your help and feedback will be appreciated.