C/Gtk+ data visualization library.
Switch branches/tags
Nothing to show
Clone or download
elvismt Merge pull request #21 from phako/master
Some CMake clean-ups
Latest commit fec28aa Aug 14, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
demos Use GNU style Jan 12, 2018
slope Rely on NDEBUG for assert() to do anything Aug 14, 2018
.clang-format Use GNU style Jan 12, 2018
.gitignore Added view's scene memory management Sep 12, 2016
AUTHORS Add Remis contributions May 30, 2015
CMakeLists.txt Update CMake settings Sep 17, 2017
LICENSE Added README Feb 25, 2015
README.md Update README.md Aug 30, 2017
scripts.sh Added scripts.sh and clang-format Aug 13, 2017


License: LGPL v3 Version


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.


Install the required development packages:

  • On Debian/Ubuntu
sudo apt-get install build-essential cmake libgtk-3-dev
  • On Fedora:
sudo dnf install gcc cmake gtk3-devel

Compile and install slope:

mkdir build
cd build
cmake ..
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`


  • Legend (done)
  • More elaborate plots e.g. like boxplots (planned)
  • Contours and variance matrices visualization (planned)

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.