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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for beautifyPlot-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52ebe6c347106a9301966fae95300b3707494888e7d893a437881c95df5ff215 |
|
MD5 | 6a06ba53ca6e2b73f5ccfee1015dae68 |
|
BLAKE2b-256 | 0aa1aa74582e5e357bfdc9a643992752ccf1b33e15645a0b1d899957149b34f7 |