Cookbook¶
Each recipe links to a complete runnable example.
| Use case | Covers |
|---|---|
| Basic static plot | Axes, several curves, markers, and a legend |
| Real-time scrolling data | A fixed window updated once per rendered frame, with dropouts as gaps |
| Axis formats | Date/time, categories, logarithmic scales, and custom labels |
| Multiple axes | Secondary scales and signals with different domains |
| Styling and transitions | Dashes, markers, gradients, fills, and animated updates |
| Annotations and tools | Data-attached labels, regions, measurement tools, and mouse handling |
| Data inspection | Crosshair, tooltip, nearest-data-point queries, region statistics, and selection |
| Point clouds | Large unconnected scatter data, coloring points by value, color bars, and hover picking |
| Heatmaps | Grids of values colored through a colormap, color bars, and reading cells |
| Rectangle zoom | Drag a region to zoom all axes, or zoom from a custom tool |
| Bar charts | Vertical, horizontal, and grouped bars, baselines, category colors, and hover |
| Histograms | Equal and uneven bins, counts or density, from QML or C++ |
| Bands | Confidence intervals and envelopes between a low and a high value, with edge lines |
| Error bars | Symmetric and asymmetric errors, vertical and horizontal, on points and grouped bars |
| Background data production | Safe high-throughput worker-to-UI handoff |
| Exporting images | PNG, JPEG, and other raster files, the clipboard, and QImage capture |
For method-by-method detail, use the API reference. For choosing a data path, use the Performance guide.