-
Notifications
You must be signed in to change notification settings - Fork 0
Examples
github-actions[bot] edited this page Apr 22, 2026
·
16 revisions
FastPlot includes 80+ runnable examples in the examples/ directory. Each demonstrates specific features with realistic data.
install;
cd examples
example_basic; % Run a specific example
run_all_examples; % Run all (non-interactive)
demo_all; % Interactive demo (keeps all plots open)| Example | Points | Description |
|---|---|---|
example_basic |
10M | Noisy sine wave with upper/lower thresholds and warning levels. Shows basic FastSense workflow: addLine, addThreshold, render |
example_multi |
5x1M | Five sensor lines with shared thresholds. Demonstrates auto color cycling and multiple lines |
example_100M |
100M | Stress test with 100 million points (~800 MB). Proves FastSense handles extreme datasets |
| Example | Description |
|---|---|
example_dashboard |
2x2 FastSenseGrid with bands, shading, fills, and markers. Shows setTileSpan, tileTitle |
example_dashboard_9tile |
3x3 grid with 9 different signal types (15M+ total). Shows large grid layouts |
example_mixed_tiles |
2x3 grid mixing FastSense plots with raw MATLAB axes (bar, scatter, histogram) |
example_dock |
FastSenseDock with 5 tabbed dashboards, datetime axes, metadata. Full dock workflow |
example_dock_disk |
Five disk-backed tabs with 35 sensors, ~100M points total, dynamic thresholds |
example_dock_many_tabs |
20 tabs in a single dock window to exercise the scrollable tab bar |
example_linked |
3 synchronized subplots using LinkGroup. Zoom one, all follow |
example_multi_sensor_linked |
4-channel dashboard (2M pts) with state-dependent thresholds per channel |
| Example | Points | Description |
|---|---|---|
example_nan_gaps |
1M | Data with NaN dropout regions. Shows seamless gap handling |
example_uneven_sampling |
Variable | Variable-rate event-driven data (sparse monitoring + dense bursts) |
example_vibration |
20M | Accelerometer data at 50 kHz with bearing fault bursts |
example_ecg |
5M | ECG signal at 1 kHz with QRS complexes, PVCs, and baseline wander |
| Example | Description |
|---|---|
example_alarm_bands |
Industrial 4-level HH/H/L/LL alarm zones with colored bands |
example_lttb_vs_minmax |
Side-by-side comparison of LTTB and MinMax downsampling on same data |
example_themes |
Same data rendered in all theme presets |
example_toolbar |
Interactive toolbar with data cursor, crosshair, grid toggle, autoscale, PNG export |
example_datetime |
50M points with datetime X-axis, comparing with and without toolbar |
example_visual_features |
2x2 dashboard showcasing bands, shading, fill, markers |
example_navigator_overlay |
Standalone NavigatorOverlay demo for custom overview+detail views |
| Example | Description |
|---|---|
example_sensor_static |
Basic Sensor with static upper/lower thresholds |
example_sensor_threshold |
Dynamic thresholds that change based on machine state (idle/run/boost) |
example_sensor_multi_state |
Two state channels (machine + zone) with compound conditions |
example_sensor_registry |
Using SensorRegistry API: list(), get(), getMultiple() |
example_sensor_dashboard |
2x2 dashboard combining FastSenseGrid with sensors from registry |
example_sensor_todisk |
Moving large sensor datasets to disk-backed storage |
| Example | Description |
|---|---|
example_event_detection_live |
Live event detection with 3 industrial sensors (temperature, pressure, vibration). Mock data generation with random violations, EventViewer with Gantt timeline and hover tooltips, click-to-plot drill-down, console logging via eventLogger(), and a live FastSense dashboard with linked axes and startLive file-polling |
example_event_viewer_from_file |
Event store demo with 6 sensors. Auto-saves events to .mat file with backups, opens EventViewer from file with manual/auto-refresh controls, simulates background detection process updating the store while the viewer polls it |
example_live_pipeline |
Complete live event detection pipeline with data sources, notifications, and snapshots |
| Example | Description |
|---|---|
example_stress_test |
5-tab FastSenseDock with 26 sensors across 60M total points. Tests rendering performance at scale |
example_dynamic_thresholds_100M |
10 sensors with 100M points each, dynamic thresholds, state channels |
| Example | Description |
|---|---|
example_dashboard_engine |
DashboardEngine with sensor-bound FastSenseWidgets, dynamic thresholds, JSON save/load |
example_dashboard_all_widgets |
Every widget type in a single dashboard: FastSense, Number, Status, Gauge, Table, RawAxes, Timeline, Text, Heatmap, BarChart, Histogram, Scatter, Image, MultiStatus |
example_dashboard_live |
DashboardEngine in live mode with periodic data updates |
example_dashboard_groups |
Panel, collapsible, and tabbed groups with GroupWidget |
example_dashboard_info |
Dashboard with InfoFile property linking to rendered Markdown documentation |
| Example | Description |
|---|---|
example_disk_storage |
FastSenseDataStore with SQLite-backed chunked storage for 100M+ datasets |
| Example | Description |
|---|---|
example_sensor_detail |
SensorDetailPlot with state bands and threshold context |
example_sensor_detail_basic |
Basic sensor detail view without state channels |
example_sensor_detail_dashboard |
Sensor detail view in a dashboard layout |
example_sensor_detail_datetime |
Sensor detail view with datetime X axis |
example_sensor_detail_dock |
Sensor detail views in a tabbed dock |
| Example | Description |
|---|---|
benchmark |
FastPlot vs plot() across 10K to 100M points. Measures render time, zoom latency, point reduction, GPU memory |
benchmark_zoom |
Per-frame zoom latency analysis. Measures actual ms per zoom/pan interaction |
benchmark_features |
Overhead of visual features: bands, shading, fill, markers, themes |
benchmark_resolve |
Sensor.resolve() performance: naive per-point vs optimized segment-based approach |
- Getting Started — Step-by-step tutorial
- Performance — Benchmark results
FastPlot Wiki
API Reference
Guides
Use Cases
Internals
Resources