Better Real-time Plotting

A powerful data visualization tool that works as both a standalone application and as a library. Plot data in real-time with support for C, Python, and JavaScript.

Why Choose Brplot?

Real-time Performance

Handle millions of data points with smooth, real-time visualization. Optimized for high-performance plotting.

Multi-language Support

Use as a library in C, Python, or JavaScript. Single header library for C, pip package for Python, and WebAssembly for JS.

Command Line Ready

Works seamlessly with Unix pipes. Plot data from any command output, device, or streaming sources.

Interactive Controls

Zoom, pan, and explore your data with intuitive mouse and keyboard controls.

Customizable

Multiple line groups, custom colors, labels, and extraction rules. Tailor the visualization to your needs.

Quick Examples

Basic Plotting

# Plot Fibonacci numbers
echo "1 1 2 3 5 8 13 21" | brplot

Real-time CPU Temperature

# Monitor CPU core temperature
while :; do
  echo $(sensors | grep 'Core' | awk -p '{print substr($3, 1, 4) ";" $2}');
  sleep 0.1;
done | brplot

Python Integration

import brplot
import math
for i in range(100):
    brplot.plot(i, math.sin(i/50))

C Library Usage

#define BRPLOT_IMPLEMENTATION
#include "brplot.h"

int main(void) {
    for (double t = -100; t < 100; t += 0.1) {
        brp_2(t, t * t, 0);
    }
    brp_wait();
    return 0;
}

Get Brplot

Linux

Linux install

wget https://github.com/branc116/brplot/releases/download/v0.0.2/brplot-0.0.2.tar.gz
tar xvf brplot-0.0.2.tar.gz
sudo install brplot-0.0.2/lib/brplot.a /usr/lib/brplot.a
sudo install brplot-0.0.2/lib/brplot.so /usr/lib/brplot.so
sudo install brplot-0.0.2/bin/brplot /bin/brplot
sudo install brplot-0.0.2/include/brplot.h /usr/include/brplot.h
sudo install brplot-0.0.2/include/brplot.c /usr/include/brplot.c
sudo install -d brplot-0.0.2/share/licenses/brplot /usr/share/licenses/brplot
sudo install brplot-0.0.2/share/licenses/brplot/LICENSE /usr/share/licenses/brplot/LICENSE
                    

Python Package

Install via pip for Python integration

pip install brplot

JavaScript / Web

Use in web browsers with WebAssembly

npm install brplot

Screenshots