visplotlib
Standardized plot styling for Visium SA
Installation
To plot with visplotlib, you need to install the library into your environment:
pip install visplotlib
You can then use the following import statements:
import visplotlib as vpl
from visplotlib.pyplot import mpl, plt # <-- Wrapped Matplotlib and Pyplot
from visplotlib.seaborn import sns # <-- Wrapped Seaborn
from visplotlib_test.plotly import go, px # <-- Wrapped Plotly
Example
We want to make your plots beautiful. We don't want to change your coding practices with long and annoying procedures.
All you need to do is call plt.format()(for matplotlib and seaborn) when making a plot. That's it.
fig, ax = plt.subplots()
iris = sns.load_dataset('iris')
sns.scatterplot(data=iris, x='sepal_length', y='petal_length', ax=ax)
ax.set_title('Sepal vs. Petal length')
plt.format() # All we need to do is call plt.format()!
plt.show()
or plotly.format()(for plotly)
df = px.data.iris()
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species", title="A Plotly Express Figure")
plotly.format(fig) # All we need to do is call plt.format()!
fig.show()
Loom demonstration
Release files for visplotlib-test 1.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| visplotlib_test-1.3.4.tar.gz | 7.2 kB | Details |
Release files / visplotlib_test-1.3.4.tar.gz
| Download URL | visplotlib_test-1.3.4.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d01ec858ef2d177816bc952e61431f408b20131081cd592645962812863dc594
|
|
BLAKE2b-256 checksum How to use checksums |
5b27de74ccd0e3dbbf2e5ed66ff2f2cf662fadaaed0ba892a03cde265cb86e68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|