Matplotlib Dashboard Package
This package creates a simple user interface for creating subfigures when working with matplotlib.
import matplotlib.pyplot as plt
plt.figure(figsize=(10,10))
from matplotlib_dashboard import MatplotlibDashboard
dashboard = MatplotlibDashboard([
['top' ,'top' ,'top' ,'top' ],
['left','left', None ,'right'],
['left','left','down','right'],
], as3D=['left'], wspace=0.5, hspace=0.5)
import numpy as np
dashboard['top'].plot(np.random.rand(200), color='red')
dashboard['top'].set_ylabel('y')
dashboard['top'].set_xlabel('x')
dashboard['top'].set_title('top plot')
dashboard['right'].bar(['A','B','C'], [10,35,17], color='blue')
dashboard['right'].set_ylabel('freq')
dashboard['right'].set_xlabel('label')
dashboard['right'].set_title('right bar')
from PIL import Image
dashboard['down'].imshow(Image.open('./test1.jpeg'))
dashboard['down'].get_xaxis().set_ticks([])
dashboard['down'].get_yaxis().set_ticks([])
dashboard['down'].set_title('down image')
z = ((5-np.arange(100)%10)**3).reshape(10,10)
x, y = np.meshgrid(np.arange(z.shape[0]), np.arange(z.shape[1]))
dashboard['left'].plot_surface(x, y, z, color='green')
dashboard['left'].set_ylabel('x')
dashboard['left'].set_xlabel('y')
dashboard['left'].set_zlabel('z')
dashboard['left'].set_title('left surface')
plt.show()
Customization
- Pass the map of subfigures you want when getting an instance of the dashboard. Write the map as a list of lists or a 2D array.
- Get the subfigure you want using get-item syntax. The name is what you defined in the map.
- Use the
Nonekeyword to access the empty part of the map. - Use
as3Dargument to determine which subfigures are 3D. - Any customization on
matplotlib.pyplotalso applies to this dashboard. For example, useplt.figure(figsize=(x,y))to change the size of the dashboard figure. - This module is based on
matplotlib.gridspec. Therefore, you can use thegridspecinitialization configurable parameters with the same functionality in this dashboard initialization. For example, set thewspaceandhspaceparameters to change the horizontal or vertical spacing between subfigures.
Installation
pip install matplotlib-dashboard
Metadata
Release files for matplotlib-dashboard 0.0.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 | Provenance | Actions |
|---|---|---|---|---|
| matplotlib-dashboard-0.0.4.tar.gz | 3.6 kB | Without provenance | Details for matplotlib-dashboard-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| matplotlib_dashboard-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for matplotlib_dashboard-0.0.4-py3-none-any.whl |
Total release size: 7.7 kB
Release files / matplotlib-dashboard-0.0.4.tar.gz
| Download URL | matplotlib-dashboard-0.0.4.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e748f0c7d9b7d1abffb230987039f53e457b2e8e042f9a1fc8812e5fee8961ca
|
|
BLAKE2b-256 checksum How to use checksums |
5e8e919438d13ee7cae255125f9eb1323fd485310214c91db90850b1b99dbe43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Release files / matplotlib_dashboard-0.0.4-py3-none-any.whl
| Download URL | matplotlib_dashboard-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d40444c930135422dcbd4f07fc38b05abd022263022fedc53af89487ca4429e
|
|
BLAKE2b-256 checksum How to use checksums |
6507a16d246e1d1ee1dbd96f7c8a90e81d1f961df4db653033c13c1df74578ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
|
Security for matplotlib-dashboard 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.