Skip to main content

License: GPL v3 C++20 PyPi Documentation

SciQLopPlots

A high-performance scientific plotting library built on C++20/Qt6 with Python bindings via Shiboken6 (PySide6). Designed for the SciQLop data analysis platform but usable standalone.

Try it in your browser: the gallery runs the same library as WebAssembly, with examples you can edit and run. The JavaScript guide shows how to use it in your own pages.

A panel of three time-synced plots: magnetic field components, density on a log axis and an ion flux spectrogram, with a highlighted interval
Projection plots of a spacecraft trajectory in three planes, with bow shock and magnetopause models

Features

  • Async resampling — render millions of points smoothly; data is downsampled in background threads via NeoQCP pipelines
  • Multiple plot types — time series (line graphs), spectrograms (color maps), 2D histograms, parametric curves, N-D projection curves, waterfall plots
  • Interactive — pan, zoom, data-driven callbacks, vertical/horizontal/rectangular spans, tracers, straight lines, text, shapes, pixmaps
  • Multi-plot panels — synchronized axes, aligned margins, drag-and-drop from product trees
  • Interval timelines — events and instrument modes as bars on named lanes, drawn like a logic analyzer's wave view; overlaps stacked by time or category, or forbidden; editable with the mouse
  • Reactive pipelines — connect plot properties with >> to build live data flows
  • Export — PDF (vector), PNG, JPG, BMP for both individual plots and panels
  • Busy indicator — visual feedback when data is loading or being processed
  • Runtime inspector — tree model/view for inspecting and editing plot properties
  • Signal processing — gap-aware filters, FFT, spectrograms and rolling statistics on NumPy arrays (SciQLopPlots.dsp)
  • In the browser — the same plots from JavaScript, compiled to WebAssembly (gallery, guide)
  • Cross-platform — Linux, macOS and Windows, on x86-64 and ARM64

Architecture

Your Python code or web page goes through the bindings to the C++ library: panels hold plots, plots hold plottables and items. It draws with NeoQCP on Qt 6.

Data flow

A pan or zoom calls your data function on its own thread, worker threads reduce the points to what the pixels can show, and the main thread draws them.

Quick start

The user guide walks through everything below and more: plot types, live data, time series, panels, overlays, pipelines and export. Every example in it is tested. The API reference lists every class and method.

pip install SciQLopPlots

Wheels exist for Python 3.12 to 3.14. They pin PySide6 to an exact version, so installing replaces any other PySide6 in the environment.

import numpy as np
from PySide6.QtWidgets import QApplication
from SciQLopPlots import SciQLopPlot

app = QApplication([])
plot = SciQLopPlot()

# Static data and a data function, both on the same plot
x = np.arange(0, 1000, dtype=np.float64)
y = np.sin(x / 100) * np.cos(x / 10)
plot.plot(x, y, labels=["signal"])

# Data callback (called on pan/zoom with visible range)
def get_data(start, stop):
    x = np.arange(start, stop, dtype=np.float64)
    y = np.column_stack([np.sin(x / 100), np.cos(x / 100)])
    return x, y

plot.plot(get_data, labels=["sin", "cos"])

plot.show()
app.exec()

Reactive pipelines

Connect plot properties with the >> operator, optionally through a function:

import numpy as np
from PySide6.QtGui import QColor
from SciQLopPlots import SciQLopPlot, SciQLopPlotRange

plot = SciQLopPlot()
x = np.linspace(0, 10, 1000)
plot.plot(x, np.sin(x), labels=["sin"])
span = plot.vertical_span(SciQLopPlotRange(2.0, 4.0), QColor(100, 200, 100, 80),
                          read_only=False, visible=True, tooltip="")

def describe(event):
    return f"{event.value.start():.2f} .. {event.value.stop():.2f}"

span.on.range >> describe >> span.on.tooltip   # the tooltip follows the span

zoomed = SciQLopPlot()
zoomed.plot(x, np.sin(x), labels=["zoom"])
span.on.range >> zoomed.x_axis().on.range      # a second plot shows the span's interval

The function gets an event whose .value is the new value. The user guide lists the properties you can connect.

To see every feature, try the browser gallery, or run the desktop gallery from a source checkout:

python tests/manual-tests/gallery.py

Runtime tracing

A built-in tracer writes Chrome trace JSON, to open in Perfetto, Speedscope or chrome://tracing. It is always compiled in and costs about 1 ns when off. Your own Python zones show next to the library's:

import numpy as np
from SciQLopPlots import tracing

with tracing.session("/tmp/sciqlop.json"):
    with tracing.zone("my.fetch", cat="data"):
        data = np.random.default_rng().normal(size=1_000_000)   # your code here

SCIQLOP_TRACE=/tmp/sciqlop.json python my_script.py turns it on for a whole run. The API reference lists the rest: decorators, counters, and Tracy when built with tracy_enable=true.

Building from source

You need Qt 6.12, a C++20 compiler, libclang (for Shiboken) and, in a virtual environment, the exact PySide6 version the package pins:

pip install pyside6==6.12.0 shiboken6==6.12.0 shiboken6-generator==6.12.0 \
    numpy meson meson-python ninja

# Qt's tools must be on PATH
export PATH=/path/to/Qt/6.12.0/gcc_64/bin:$PATH
export PKG_CONFIG_PATH=/path/to/Qt/6.12.0/gcc_64/lib/pkgconfig:$PKG_CONFIG_PATH

# debugoptimized, not debug: without optimisations the resampling is slow
meson setup build --buildtype=debugoptimized
meson compile -C build

# or build and install it as a Python package
pip install . --no-build-isolation

Build options: -Dtracy_enable=true turns on Tracy profiling, -Dtrace_refcount=true traces Python reference counts, and -Dwith_opengl=false builds without OpenGL. The browser build is described in the JavaScript guide.

Contributing

Bug reports, feature requests and pull requests are welcome on GitHub. A bug fix comes with a test that fails without it. Run the tests from outside the source tree, so the built package is the one imported:

cd /tmp && PYTHONPATH=/path/to/SciQLopPlots/build python -m pytest \
    /path/to/SciQLopPlots/tests/{integration,unit,fuzzing,resampler,tracing}

Credits

Development is supported by CDPP. We acknowledge support from Plas@Par.

Thanks

  • PySide6 — Qt bindings and Shiboken6 binding generator
  • NeoQCP — our fork of QCustomPlot, which draws on the GPU and plots large data without copying it

Metadata

Release files for SciQLopPlots 0.53.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for SciQLopPlots 0.53.1
File Size Uploaded Provenance Actions
sciqlopplots-0.53.1.tar.gz 5.7 MB Without provenance Details for sciqlopplots-0.53.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for SciQLopPlots 0.53.1
File Actions
sciqlopplots-0.53.1-cp312-abi3-win_arm64.whl CPython 3.12 abi3 Windows ARM64 Details for sciqlopplots-0.53.1-cp312-abi3-win_arm64.whl
sciqlopplots-0.53.1-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for sciqlopplots-0.53.1-cp312-abi3-win_amd64.whl
sciqlopplots-0.53.1-cp312-abi3-manylinux_2_39_aarch64.whl CPython 3.12 abi3 Linux glibc 2.39+ ARM64 Details for sciqlopplots-0.53.1-cp312-abi3-manylinux_2_39_aarch64.whl
sciqlopplots-0.53.1-cp312-abi3-manylinux_2_34_x86_64.whl CPython 3.12 abi3 Linux glibc 2.34+ x86-64 Details for sciqlopplots-0.53.1-cp312-abi3-manylinux_2_34_x86_64.whl
sciqlopplots-0.53.1-cp312-abi3-macosx_13_0_x86_64.whl CPython 3.12 abi3 macOS 13.0+ x86-64 Details for sciqlopplots-0.53.1-cp312-abi3-macosx_13_0_x86_64.whl
sciqlopplots-0.53.1-cp312-abi3-macosx_13_0_arm64.whl CPython 3.12 abi3 macOS 13.0+ ARM64 Details for sciqlopplots-0.53.1-cp312-abi3-macosx_13_0_arm64.whl

Total release size: 43.5 MB

Release files / sciqlopplots-0.53.1.tar.gz

Download URL sciqlopplots-0.53.1.tar.gz
Size 5.7 MB
Tags Source
SHA-256 checksum
How to use checksums
bdf160b60b5040c7855f1f4b226e06ef7640ea66c04bf89ca802afcb12f0d7dd
BLAKE2b-256 checksum
How to use checksums
9a41ee8291f0ec8b3ec1f5cf4e5a27de0af182cd920f72a7a6a6d71aa003841b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / sciqlopplots-0.53.1-cp312-abi3-win_arm64.whl

Download URL sciqlopplots-0.53.1-cp312-abi3-win_arm64.whl
Size 5.1 MB
Tags CPython 3.12 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
cacfd226be0407f8740c349381d43a559e67d414fb0c64f8832999e5bc3eb4d7
BLAKE2b-256 checksum
How to use checksums
08f8f66f2154932f7f419ee1eec413f1de198af4cbed3147938a260142605989
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / sciqlopplots-0.53.1-cp312-abi3-win_amd64.whl

Download URL sciqlopplots-0.53.1-cp312-abi3-win_amd64.whl
Size 4.8 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
c818c89fa76b24a0eef820f30acacf6ce6493964d72bddb1c0c56a78b713726f
BLAKE2b-256 checksum
How to use checksums
6d6c1ca198a50994ef36c801f37f21be7d7f4f61088581ce2dea1f2e6619d6e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / sciqlopplots-0.53.1-cp312-abi3-manylinux_2_39_aarch64.whl

Download URL sciqlopplots-0.53.1-cp312-abi3-manylinux_2_39_aarch64.whl
Size 7.7 MB
Tags CPython 3.12 Linux glibc 2.39+ ARM64 abi3
SHA-256 checksum
How to use checksums
a5dccdce11651b5c08dcfce9ae5aa12f8fa5453db0e3dd49f5fe801cac3c6ad6
BLAKE2b-256 checksum
How to use checksums
1d6247e60657b586cc7e4bc3705c705e384fcc989736d67ce93554aab10328ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / sciqlopplots-0.53.1-cp312-abi3-manylinux_2_34_x86_64.whl

Download URL sciqlopplots-0.53.1-cp312-abi3-manylinux_2_34_x86_64.whl
Size 8.2 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
e3073a060b62fac61ebe15cdff643bf45b276c501dfb6736d3568938fbe126a2
BLAKE2b-256 checksum
How to use checksums
640214d745370d5f2067609ed2088aecbc2fd592c0e77f630daee6c54b74aaf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / sciqlopplots-0.53.1-cp312-abi3-macosx_13_0_x86_64.whl

Download URL sciqlopplots-0.53.1-cp312-abi3-macosx_13_0_x86_64.whl
Size 6.3 MB
Tags CPython 3.12 abi3 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
6a20518151d1f79ddfafad4d95249b8d8d78c5abb30aeb3efa99b6640235cd82
BLAKE2b-256 checksum
How to use checksums
6256a895e95a038b6bcd4d103ffcf9f4af4fe49b49261be466ae2ca2c75e91fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / sciqlopplots-0.53.1-cp312-abi3-macosx_13_0_arm64.whl

Download URL sciqlopplots-0.53.1-cp312-abi3-macosx_13_0_arm64.whl
Size 5.8 MB
Tags CPython 3.12 abi3 macOS 13.0+ ARM64
SHA-256 checksum
How to use checksums
26d04fc1d0c24b84d294eef1e6e98ebe6f12c9bc41fda3f26a5a564f05ba01d4
BLAKE2b-256 checksum
How to use checksums
f0df34ba82081ed34413f59f2bda33c91248c9083074a11acfb74d9ad7c313cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for SciQLopPlots 0.53.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.53.1 This release

7 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page