Plotora
Scientific visualization, simplified.
Powerful scientific plots. Minimal Python. Publication-ready results.
Documentation · Quick start · LTspice guide · Examples · API reference
Made by students at
Plotora is an independent student-built project. It is not an official product of, or endorsed by, Delft University of Technology (TU Delft).
What is Plotora?
Plotora is a Python toolkit for scientific plotting, numerical analysis, and engineering visualization. It builds on Matplotlib, NumPy, SciPy, pandas, and SymPy to make professional figures easy to create, customize, and export.
If you are preparing a lab report, examining an LTspice simulation, plotting a transfer function, analyzing experimental measurements, or writing a LaTeX document, Plotora aims to let you spend less time configuring figures and more time understanding your data.
import plotora as pt
pt.ltspice("simulation.txt").save("simulation.pdf").show()
That's a complete LTspice-text-to-PDF plotting workflow in two lines. Plotora uses Matplotlib under the hood, so you can still fine-tune every graph.
Why use Plotora?
- Less boilerplate: short, readable functions for common scientific plotting tasks.
- Report-ready by default: sensible labels, themes, legends, grids, and export options.
- Native Matplotlib windows: call
.show()to open Matplotlib's interactive figure window with zoom, pan, and save controls (with a supported GUI backend). - Engineering-focused: LTspice exports, Bode diagrams, pole-zero plots, signals, and transient measurements.
- Numerically grounded: analysis builds on well-established scientific Python libraries.
- Your figure, your rules: access the underlying Matplotlib
FigureandAxesdirectly. - Offline workflow: no API key or cloud service is required for plotting and analysis after installation.
Accuracy note: Plotora is designed for reliable numerical analysis, but results depend on input data quality, sampling, solver assumptions, and the chosen analysis method. Verify calculations that matter for your report or design.
Installation
Plotora requires Python 3.11 or newer.
Install Plotora from PyPI:
python -m pip install plotora==1.0.0
Or install a specific version:
python -m pip install plotora==1.0.0
If you have downloaded the source project instead, open its root folder (the folder containing pyproject.toml) and run:
python -m pip install .
Optional installation groups
Some specialized features require additional dependencies. Install only the extras you need:
# LTspice RAW reader, extended control-system tools, units and uncertainties
python -m pip install "plotora[engineering]"
# Plotly HTML exports and interactive Jupyter integration
python -m pip install "plotora[interactive]"
# Qt-based Matplotlib windows
python -m pip install "plotora[qt]"
# MP4 animation support using a bundled FFmpeg executable
python -m pip install "plotora[video]"
# All optional runtime dependencies
python -m pip install "plotora[all]"
To install extras from a local source checkout, use python -m pip install ".[engineering]", or replace engineering with your chosen extra.
Verify your installation
import plotora as pt
print(pt.__version__)
print(pt.__file__)
Quick start
1. Draw a graph
import numpy as np
import plotora as pt
x = np.linspace(0, 2 * np.pi, 500)
y = np.sin(x)
pt.plot(
x, y,
title="Sinusoidal signal",
xlabel="Time (s)",
ylabel="Amplitude",
theme="academic"
).show()
2. Save it in different formats
import numpy as np
import plotora as pt
x = np.linspace(0, 10, 500)
graph = pt.plot(x, np.exp(-x) * np.cos(5*x))
graph.save("figure.pdf")
graph.save("figure.svg")
graph.save("figure.png", dpi=600)
graph.save("figure.jpeg", dpi=300)
Export several formats in one call:
graph.save_all("figure", formats=["pdf", "svg", "png", "jpeg"], dpi=300)
Tip: prefer PDF or SVG for line graphs in LaTeX reports: they retain vector sharpness at any scale. Use PNG or JPEG when raster images are required.
3. Customize with native Matplotlib
graph = pt.plot([0, 1, 2, 3], [0, 1, 4, 9])
graph.ax.set_title("Quadratic growth")
graph.ax.set_xlim(0, 3)
graph.ax.axhline(4, linestyle="--", alpha=0.5)
graph.save("quadratic.pdf").show()
Plotora intentionally does not lock you into a custom renderer. graph.fig and graph.ax are actual Matplotlib objects.
Gallery
These figures were generated using Plotora's included demonstration data. The capacitor example is synthetic, not a measured or independently validated power-supply simulation.
LTspice-style transient comparison
Bode diagram
FFT spectrum
Linear regression
3D surface
Features
| Category | Available tools |
|---|---|
| Everyday plots | Line, scatter, bar, histogram, stem, area, box, pie, polar, heatmap, contour, quiver, error-bar plots, and multi-series comparisons |
| LTspice | Text and CSV exports, stepped text runs, transient and complex AC traces, simulation comparison, windowed waveform metrics; optional .raw reader |
| Electrical engineering | Bode and asymptotic Bode plots, poles and zeros, Nyquist, root locus, step and impulse responses, phasors, impedances, and power triangles |
| Signal processing | FFT, spectra, spectrograms, harmonics, peaks, phase differences, ripple, RMS, resampling, and timing diagrams |
| Mathematics | Function and parametric plots, Taylor and Fourier series, derivatives, integrals, ODEs, sequences, implicit curves, and vector visualization |
| Data analysis | Regression, curve fitting, residuals, distributions, correlations, smoothing, interpolation, uncertainty propagation, and descriptive statistics |
| 3D figures | Surfaces, wireframes, 3D lines, scatter plots, contours, and vector fields |
| Data files | CSV, TXT, TSV, XLSX, JSON, MATLAB .mat (with limitations), and numerical Python arrays |
| Publication | Scientific themes, high-resolution raster files, vector figures, LaTeX figure snippets, selected HTML output, and animations |
For the complete API and supported arguments, see the documentation.
LTspice integration
LTspice calculates the circuit's behavior; Plotora visualizes and analyzes the exported results. Plotora is not an alternative SPICE simulator.
Export from LTspice
- Open your schematic and run the simulation in LTspice.
- Activate the waveform viewer and select the voltage or current traces you need.
- Choose File → Export data as text in the waveform viewer.
- Save the export as
simulation.txtin the same folder as your Python script.
Plot a waveform
import plotora as pt
pt.ltspice(
"simulation.txt",
traces=["V(out)"],
time_unit="ms",
title="Output voltage",
theme="academic"
).save("output_voltage.pdf").show()
Trace names must match the names in your exported file. Inspect the available traces:
sim = pt.read_ltspice("simulation.txt")
print(sim.traces)
Compare simulations
Useful when comparing smoothing capacitors or different circuit parameters:
pt.compare_ltspice(
"4700uF.txt",
"6800uF.txt",
trace="V(out)",
labels=["4700 µF", "6800 µF"],
time_unit="ms",
title="Power supply output comparison"
).save_all(
"capacitor_comparison",
formats=["pdf", "svg", "png"]
).show()
Calculate ripple and RMS
sim = pt.read_ltspice("simulation.txt")
# The window is expressed in the original simulation time units.
results = sim.metrics("V(out)", window=(0.06, 0.10))
print("Average:", results["average"])
print("RMS:", results["rms"])
print("Peak-to-peak ripple:", results["peak_to_peak"])
This calculation uses the selected part of the waveform. Choose the steady-state window before reporting ripple measurements.
What about LTspice .raw files?
The optional spicelib integration supports loading .raw files:
import plotora as pt
pt.ltspice("circuit.raw").show()
Release-candidate limitation: native RAW import has not yet been validated against a representative set of real LTspice files. For critical work, export text data and verify the resulting plots and measurements.
Engineering and signal analysis
Bode plots
import plotora as pt
# H(s) = 1 / (0.01s + 1)
pt.bode(num=[1], den=[0.01, 1], unit="rad/s").show()
Pole-zero diagrams
pt.poles_zeros(
poles=[-10, -40],
zeros=[0]
).show()
FFT and numerical signals
import numpy as np
import plotora as pt
t = np.linspace(0, 0.5, 2000, endpoint=False)
v = 2.0 * np.sin(2 * np.pi * 50 * t)
pt.spectrum(t, v).show()
Additional tools include Nyquist diagrams, root locus, response curves, impedance graphs, phasors, harmonics, ripple analysis, and power triangles.
Mathematics and 3D visualization
Plot expressions directly:
import plotora as pt
pt.function("sin(x) * exp(-x)", domain=(0, 10)).show()
pt.taylor("sin(x)", degree=5, center=0).show()
Create a 3D surface:
pt.surface("sin(sqrt(x**2 + y**2))", colorbar=True).show()
Other mathematical tools support parametric plots, vector fields, derivatives, numerical integration, differential equations, and Fourier series.
Statistics and laboratory measurements
import plotora as pt
x = [0, 1, 2, 3, 4]
y = [1.0, 3.1, 5.0, 7.2, 8.9]
fit = pt.regression(x, y, degree=1, interval="confidence")
print("Coefficients:", fit.metadata["coefficients"])
print("R-squared:", fit.metadata["r_squared"])
fit.save("regression.pdf").show()
Plotora also provides error bars, residuals, distribution plots, smoothing, correlation visualization, and uncertainty calculations. Statistics require attention to the underlying assumptions; for example, a high R² alone does not establish a valid physical model.
Styling and themes
Choose a theme globally:
pt.set_theme("academic")
Or for an individual figure:
pt.function("cos(x)", theme="midnight").show()
The included presets are:
academic · engineering · minimal · midnight · blueprint · monochrome · ieee · latex · presentation · pastel · colorblind
Presets are convenience styles; ieee and latex do not guarantee compliance with a particular publisher template.
Exports and LaTeX reports
| Type | Formats | Notes |
|---|---|---|
| Vector figures | PDF, SVG, SVGZ, EPS, PS, PGF | PGF requires a compatible TeX installation |
| Raster figures | PNG, JPEG/JPG, TIFF, WebP, RAW/RGBA | Available formats can depend on the Matplotlib backend |
| Interactive figures | HTML | Plotly extra; supports selected simple 2D plots |
| Animations | GIF, MP4 | Animations must be created first; MP4 needs FFmpeg |
| Numerical data | CSV, TXT, XLSX, JSON | Requires graph-associated tabular data |
| Reproducible outputs | TEX, selected PY exports | Python exports have restricted scope |
Generate a LaTeX snippet:
graph = pt.function("sin(x)")
graph.save("sine.pdf")
print(graph.latex(
filename="sine.pdf",
caption="Plot of the sine function.",
label="fig:sine"
))
In your LaTeX preamble, include:
\usepackage{graphicx}
PDF is usually the recommended format for sharp line-based figures in LaTeX reports.
Export and LaTeX documentation →
Command-line interface
Plotora also provides a command-line tool:
plotora --version
plotora ltspice simulation.txt --trace "V(out)" --time-unit ms -o output.pdf
plotora plot measurements.csv --x time --y voltage --show
Use plotora --help for CLI usage and available options.
Test and develop locally
When working from the source repository or project ZIP:
# Install development tools
python -m pip install ".[dev]"
# Run the sample figure generator
python test.py
# Generate files without opening GUI windows
python test.py --headless
# Run the automated tests
python -m pytest -q
The initial RC1 test report recorded 64 passing and 2 skipped automated tests in a Linux/Python 3.13 headless environment. This does not establish complete validation across all operating systems, optional backends, or real RAW files.
Documentation
Full documentation: https://rishanpan.com/docs/platora
Topics include:
- Getting started
- Plotting and themes
- LTspice integration
- Engineering and signals
- Mathematics and 3D
- Data and statistics
- Export and LaTeX
- API reference
- Troubleshooting
- Verification and limitations
Project status
Current package version: 1.0.0 (initial v1 release).
Plotora is being developed as a concise, Matplotlib-native scientific plotting toolkit. The custom Plotora Studio graphical editor is deferred; .show() uses native Matplotlib windows.
Known limitations and verification gaps of this release include:
- Native LTspice
.rawhandling needs real-world compatibility testing. - Selected HTML and Python exports do not reproduce arbitrary Matplotlib figures.
- Interactive backend behavior has not been fully verified on Windows and macOS.
- Advanced controls, optional dependency combinations, and large-dataset performance need further testing.
- Plotora aims to reduce coding effort; it does not claim faster Matplotlib rendering performance.
See the verification notes for more context.
Contributing and feedback
Suggestions, bug reports, documentation improvements, and test cases are welcome. If reporting an issue, include your Python version, Plotora version, operating system, a minimal example, and any relevant error output. Please remove private or sensitive information from shared simulation files.
License
License selection is pending. A license and the necessary project metadata must be chosen before public open-source redistribution. Until then, do not assume that the source code is granted an open-source license.
Acknowledgments
Plotora builds on the work of the open-source scientific Python community, including Matplotlib, NumPy, SciPy, pandas, and SymPy.
Made by students at TU Delft
Independent student project — not officially affiliated with or endorsed by TU Delft.
Metadata
Release files for plotora 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| plotora-1.0.1.tar.gz | 572.4 kB | Without provenance | Details for plotora-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plotora-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for plotora-1.0.1-py3-none-any.whl |
Total release size: 602.8 kB
Release files / plotora-1.0.1.tar.gz
| Download URL | plotora-1.0.1.tar.gz |
|---|---|
| Size | 572.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e3a4b85d02578f815294fca983e61a7af48700f35895a7c794d5cda2495a84d
|
|
BLAKE2b-256 checksum How to use checksums |
1bc8d9c36283854a7a7282f9c37adb69d9bce29bb42c37af00c610fa9a502072
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / plotora-1.0.1-py3-none-any.whl
| Download URL | plotora-1.0.1-py3-none-any.whl |
|---|---|
| Size | 30.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e43b35eaf5ff4d81365e7ce06efcfa667b3b694d7ecf110891e2111112c13c10
|
|
BLAKE2b-256 checksum How to use checksums |
48a07e8413aeae81077e90c9e7edb47b2fc0331e91f2ff07fe46f00b821dc7ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for plotora 1.0.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.