Skip to main content

xyplot 📈

Graph made with xyplot

Plotting with python made easy

Say Thanks PyPI PyPI - License PyPI - Python Version GitHub stars

Are you tired of replicating common steps that are needed to plot even a simple polynomial functions in python's infamous Matplotlib?

Worry no more! Presenting xyplot! Plot polynomials easily and, more importantly, pythonically!

For example, to plot a polynomial best fit curve you only need to:

from xyplot import Curve

# Our data
x, y = [0, 2, 4, 6, 8], [0.8, -1.1, 1.06, 6.75, 16.54]

# A simple curve object with data and degree of polynomial
curve = Curve(x, y, 2)

# Set the x, y axis labels and Title
curve.set(
    xlabel = "Labels are fun and easy",
    ylabel = "Oooh see him Go!",
    title = "I am an easy Graph"
)

# Label our data and curve
curve.createPlot(
    plotLabel="Label for the Curve",
    dataLabel="Label for our DATA",
)

curve.save("sample.png") # Save our graph in high quality

Makes sense right? See examples for other examples.

Fair Warning

This is just a high level sensible wrapper to the matplotlib and numpy package. Its aim is to reduce the workload necessary to make very basic plots.

To make more extensive and customizable plots, refer to matplotlib

Meme depicting my struggle

Why this effort?

Some of the more inquistive and experienced would be asking why the hell did I create an entire package that can only plot polynomials. Because there was nothing similar in matplotlib and I wanted to help those who have only little knowledge of python plot amazing graphs in as few lines and headaches as possible.

For those who still like control, you always have the fig, ax attributes of the curve class available for exploitation! And then, if you are not satisfied, try the OG Matplotlib!

Installation

To install the program run

$ pip install xyplot

If you are using Ubuntu run this instead:

$ pip3 install xyplot

To check whether the installation was successful, try importing it:

from xyplot import Curve

If the import worked, the package is most probably installed.

Note that you may want to install some other python libraries to fully enjoy the Scientific Python experience.

These are recommended:

$ pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose

Documentation?

Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing. — Dick B.

With that said, the documentation can be found here: http://www.xypnox.com/xyplot/xyplot/index.html

Contributions?

Are welcome!

Metadata

Release files for xyplot 0.2.0

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

Source distribution (sdist)

Source distribution for xyplot 0.2.0
File Size Uploaded Provenance Actions
xyplot-0.2.0.tar.gz 5.0 kB Without provenance Details for xyplot-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xyplot 0.2.0
File Interpreter ABI Platform Actions
xyplot-0.2.0-py3-none-any.whl Python 3 none any Details for xyplot-0.2.0-py3-none-any.whl

Total release size: 17.4 kB

Release files / xyplot-0.2.0.tar.gz

Download URL xyplot-0.2.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d8390e4c22ddae249cc994272feab47fc3b23a69e5630e0d6bbc8b6807faf9f4
BLAKE2b-256 checksum
How to use checksums
ed226d8ee46471f4647cb95c1212a9d498f1bdfeb49bd5891651231485898617
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

Release files / xyplot-0.2.0-py3-none-any.whl

Download URL xyplot-0.2.0-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15011ffb67f2b3d9ab48e9a81d35a3e498f72f5d02e0d9d0a855ad1abedbca7e
BLAKE2b-256 checksum
How to use checksums
897534445b63ee37b87c8565a48b196d954ebb95f05653939678aa1caa0ae5d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8

Security for xyplot 0.2.0

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.

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