Skip to main content

Plotting with python made easy

Project description

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:

import Curve from xyplot
x, y  = [x1, x2, ...], [y1, y2, ...]

curve = Curve(x, y, 2)

curve.setLabels(
  xlabel='time (s)', ylabel='voltage (mV)',
  title='About as simple as it gets, folks'
)

curve.save('MyPlot.png')

Makes sense right?

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 todx

If you are using Ubuntu run this instead:

$ pip3 install todx

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for xyplot, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size xyplot-0.1.1-py3-none-any.whl (12.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size xyplot-0.1.1.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page