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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file beautifyPlot-0.0.1.tar.gz.
File metadata
- Download URL: beautifyPlot-0.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7270566f76b7062242c15fb622c2b09e1c0885e9ee6743515d0c5af841da2e78
|
|
| MD5 |
33478d033c6aa8d877ded8fb78ea778d
|
|
| BLAKE2b-256 |
76991a0705f65fcbde215c6e8cfa27e38246fc700e21e4e82ae69e2cc74e4c8c
|
File details
Details for the file beautifyPlot-0.0.1-py3-none-any.whl.
File metadata
- Download URL: beautifyPlot-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68b8362bc5d80068df757b82c2b806855c5f5e04058959615ff29a36019d4629
|
|
| MD5 |
a6475622db0f0a311e552a7dc50d9063
|
|
| BLAKE2b-256 |
e2209f76778efa21278c00f935159fb4a97524bf58ab9e67c560a7914f1aa055
|