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 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.0.1.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for beautifyPlot-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68b8362bc5d80068df757b82c2b806855c5f5e04058959615ff29a36019d4629 |
|
MD5 | a6475622db0f0a311e552a7dc50d9063 |
|
BLAKE2b-256 | e2209f76778efa21278c00f935159fb4a97524bf58ab9e67c560a7914f1aa055 |