Skip to main content

A matplotlib wrapper to make plotting easier.

Project description

beautifyPlot

A matplotlib wrapper to make plotting easier.

Installation

pip install beautifyPlot

Usage

Using matplotlib:

import numpy as np
import matplotlib.pyplot as plt
x = np.arange(0,100,1)
y = x**3

plt.plot(x,y,label='y=f(x)')
plt.title("test plot")
plt.xlim([0,10])
plt.ylim([0,1000])
plt.legend(fontsize=15)
plt.tight_layout()

Using beautifyPlot

from beautifyPlot.bplt import beautifyPlot
import numpy as np
x = np.arange(0,100,1)
y = x**3

plt.plot(x,y,label='y=f(x)')

beautifyPlot({
    'title':['test plot'], ## Use list to pass a set of arguments to the function
    'xlim':[0,10],
    'ylim':[0,1000],  
    'legend':{'fontsize':15}, ## Use dictionary to specify arguments
    'tight_layout':[] ## Leave list empty if there is nothing to pass 
})

Project details


Download files

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

Source Distribution

beautifyPlot-0.1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

beautifyPlot-0.1-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page