PYPI PACKAGE AUDIT v1.0.1 Incomplete

plotora

Plotagem científica, visualização LTspice, análise numérica e números Matplotlib prontos para publicação.

PyPkgScore plotora
Metodologia & Critérios ♥ Donate
310 / 1000
Instalação Rápida
pip install plotora
1. Governança
0/200
2. Metadados PEP
150/200
3. Segurança
100/200
4. Docs & SEO
60/200
5. Engenharia CI
0/200
📣 Compartilhar Auditoria: Envie este relatório e a prévia visual no idioma atual
Advertisement
PYPI TELEMETRY

Downloads & Adoção na Comunidade

Últimos 30 dias (sem espelhos)
Últimos 7 dias
223
Últimos 30 dias
223
Total (180 dias)
223
Métrica / Ecossistema Status / Valor Fonte
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✕ Not detected PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 310 / 1000 PyPkgScore Engine

Análise de Saúde & Engenharia (5 Pilares)

1. Governança & Comunidade0 / 200 ▾
LICENSE✕ 0 pts
SECURITY.md✕ 0 pts
CONTRIBUTING.md✕ 0 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. Metadados & Empacotamento PEP150 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✕ 0 pts
Trove Classifiers✓ 50 pts
3. Segurança & Supply Chain100 / 200 ▾
Zero CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✕ 0 pts
Snyk / Audit Link✓ 40 pts
Repositório HTTPS✕ 0 pts
4. Documentação, SEO & Ecossistema60 / 200 ▾
README Estruturado✓ 60 pts
Read the Docs✕ 0 pts
Django Packages✕ 0 pts
Site / Artigos Técnicos✕ 0 pts
5. Engenharia, CI & Qualidade0 / 200 ▾
Testes Automatizados✕ 0 pts
GitHub Actions CI✕ 0 pts
CHANGELOG.md✕ 0 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✕ 0 pts
Advertisement
README & DOCS

Documentação Oficial & Guia de Uso — plotora

PyPI Metadata v1.0.1
Exibir documentação original completa (README em Inglês) ▾

Plotora

Scientific visualization, simplified.

Powerful scientific plots. Minimal Python. Publication-ready results.

PyPI Python Matplotlib Docs Status

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 Figure and Axes directly.
  • 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

Comparison of synthetic 4700 uF and 6800 uF capacitor voltage traces

Bode diagram

Bode magnitude and phase plot generated with Plotora

FFT spectrum

FFT frequency spectrum generated with Plotora

Linear regression

Scientific data regression plot generated with Plotora

3D surface

Mathematical 3D surface generated with Plotora

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

  1. Open your schematic and run the simulation in LTspice.
  2. Activate the waveform viewer and select the voltage or current traces you need.
  3. Choose File → Export data as text in the waveform viewer.
  4. Save the export as simulation.txt in 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.

Read the LTspice guide →

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.

Engineering documentation →

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.

Mathematics documentation →

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.

Data and statistics guide →

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:

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 .raw handling 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.

Documentation · PyPI