QuickGraphLib 0.1.0a9 documentation
The QuickGraphLib module provides a collection of types that can be composed to create complex and fast scientific graphs.
The QuickGraphLib module provides a QML API and a C++/Python API.
Using the Module
The QML types of the module are available through the QuickGraphLib
import. To use the types, add the following import statement to your .qml file:
import QuickGraphLib
Important Concepts
- Graph structure - The basics of how a graph is constructed
- Interaction - How to construct interactive graphs
- Exporting graphs - How to export graphs
Reference
- QuickGraphLib QML Types - a list of QML types provided by the
QuickGraphLib
import- QuickGraphLib.GraphItems - a submodule containing components to be used inside a GraphArea
- QuickGraphLib.PreFabs - a submodule containing pre-fabricated groups of components for common graph types
- QuickGraphLib.PythonHelpers - a submodule containing Python helpers functions for constructing graphs
- QuickGraphLib C++/Python Classes - a list of C++/Python types available from
QuickGraphLib
Examples
The example gallery can be run using (provided the Python environment has PySide6 and contourpy installed):
python examples\gallery.py
A simple histogram of a normal function. | |
A simple graph of a sin function. | |
A simple graph of a sin function (without prefabs). | |
All of the builtin color maps. | |
Colorised Sierpinski triangles using 4 of the builtin color maps. | |
Displays an image on an axes. | |
A complex graph with lines, histograms, changing data and user interaction. | |
A graph with contour lines and fills. | |
A implementation of Conway's Game of Life cellular automaton (and variants). | |
An example of customising colors to make a dark theme. | |
A graph with a draggable and resizable region. | |
A simple graph of a sin function with all four axes shown. | |
Various image alignments and fills. | |
Example of inverted axes. | |
A graph with a movable line that shows the X and Y value at that position. | |
A simple graph with a fixed size which is scaled to fit the UI. | |
A simple scatter graph with transparent markers. | |
Axis spans and lines. | |
Four subgraphs with hidden axes. | |
Two graphs with different GraphAreas sharing the same X axis. | |
Zoom into a graph as if it were an image. | |
Zooming adjusts the axes' limits. |
Licenses and Attributions
QuickGraphLib is distributed under the MIT licence (displayed below). However, the Qt (and PySide6) libraries it depends on are licenced under the LGPL v3 unless you have a commercial licence.
MIT License Copyright (c) 2024 Refeyn Ltd and other QuickGraphLib contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.