Skip to main content

PPlotly.py

It is a wrapper around plotly.py. Graph styles and functionalities are added to get scientific plots.

Quickstart

pip install pplotly

import pplotly as pp
fig = pp.Figure()
fig = fig.add_trace(pp.Scatter(x=["a", "b", "c"], y=[1, 3, 2]))
fig.show()

All the plotly functionalities are available to use under pplotly.plotly

Examples

Error plot

import pplotly as pp
import numpy as np

fig = pp.make_errorplot(
    xaxis_title="X-Title",
    yaxis1_title="Y-Title [Unit]",
    yaxis2_title="Error [Unit]"
)

x_data = [1, 2, 3]
y1_data = [2.1, 2.2, 3.1]
y2_data = [2.15, 2.21, 3.05]

fig.add_trace(
    pp.Scatter(x=x_data, y=y1_data, name="Plot 1")
)

fig.add_trace(
    pp.Scatter(x=x_data, y=y2_data, name="Plot 2")
)

error = [abs(p2-p1) for p1, p2 in zip(y1_data, y2_data)]
rmse = np.sqrt(np.mean(np.array(error)**2))
fig.add_trace(pp.Scatter(x=x_data, y=error, name=f"Abs Error: RMSE = {round(rmse, 3)}"), row=2, col=1)
fig.show()

Developer options

git clone 
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pre-commit install

Metadata

Release files for PPlotly 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PPlotly 0.0.4
File Size Uploaded Provenance
pplotly-0.0.4.tar.gz 5.2 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for PPlotly 0.0.4
File Interpreter ABI Platform
pplotly-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / pplotly-0.0.4.tar.gz

Download URL pplotly-0.0.4.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6c0018b9ad002519c0abe4fe31d05ed333b166f73d25786bba5790ddfadc27d0
BLAKE2b-256 checksum
How to use checksums
ed2a8a616171c95c82f2954627c887750ab0ab77f76a5d65eb0599defc7cbdf8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2024.

Transparency log

Release files / pplotly-0.0.4-py3-none-any.whl

Download URL pplotly-0.0.4-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5489c2c972d770ee010b50de1da73c268b8188ffbb7410db953779fcb29b8659
BLAKE2b-256 checksum
How to use checksums
bd29a433c797725b55ba3c9fa2e8211fecbe8c16f93539f7190f9c31f69a1e02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2024.

Transparency log

Security for PPlotly 0.0.4

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pplotly-0.0.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2024.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page