项目作者: scojo202

项目描述 :
XY plot, density plot, and other related widgets for GTK3
高级语言: C
项目地址: git://github.com/scojo202/libbetta.git
创建时间: 2016-10-06T13:42:28Z
项目社区:https://github.com/scojo202/libbetta

开源协议:GNU General Public License v3.0

下载


LibBetta

LibBetta is a GTK-based C library for plotting, with an emphasis on interactivity and speed
rather than production of publication-quality graphics.

The stable branch contains a GTK3 version. Development of a GTK4 version is ongoing in the master branch.

It is based on code from GUPPI and GOffice and has no dependencies beyond GTK.

LibBetta is approaching usefulness but is under active development. The API is not
yet stable. API reference documentation can be found here.

Interactivity

Current functionality:

  • When the cursor is over the plot area, the position is shown in the toolbar.
  • In zoom mode, the scroll wheel zooms in and out around the cursor position.
  • In zoom mode, clicks zoom in at the cursor position and ALT-click zooms out.
  • In zoom mode, holding the mouse button and dragging creates a zoom box.
    Releasing the button zooms into the box.
  • In pan mode, holding the mouse button and dragging translates the plot.
  • In pan mode, shift-click centers the plot on the cursor.
  • In scatter/line plot, vertical and horizontal cursors, controllable interactively.
  • Context menu controls whether or not axes are autoscaled and whether cursors are visible.
  • Save to PNG, PDF, and SVG.

Installation

Compilation is done using meson. To clone and compile, do something like the following:

  1. $ git clone https://github.com/scojo202/libbetta
  2. $ cd libbetta
  3. $ meson build # may want to use --prefix to set installation directory
  4. $ cd build
  5. $ ninja
  6. # ninja install

LibBetta has been successfully compiled and used in Linux, MacOS X, and Windows 10.