A wrapper around matplotlib
Project description
The main webpage for this project is: https://gitlab.kitware.com/computer-vision/kwplot
The kwplot module is a wrapper around matplotlib and can be used for visualizing algorithm results.
The top-level API is:
from .auto_backends import (autompl, autoplt, set_mpl_backend,)
from .draw_conv import (make_conv_images, plot_convolutional_features,)
from .mpl_3d import (plot_surface3d,)
from .mpl_color import (Color,)
from .mpl_core import (distinct_colors, distinct_markers, ensure_fnum, figure,
imshow, legend, next_fnum, set_figtitle,
show_if_requested,)
from .mpl_draw import (draw_boxes, draw_boxes_on_image, draw_clf_on_image,
draw_line_segments, draw_text_on_image, plot_matrix, draw_points,)
from .mpl_make import (make_heatmask, make_orimask, make_vector_field,)
from .mpl_multiplot import (multi_plot,)
from .mpl_plotnums import (PlotNums,)
One of the key features is the kwplot.autompl function, which is able to somewhat intelligently set the notorious matplotlib backend. By default it will attempt to use PyQt5 if it is installed and a DISPLAY is available. Otherwise it will ensure the backend is set to Agg.
The kwplot.multi_plot function is able to create line and bar plots with multiple lines/bars in a labeled axes using only a single function call. This can dramatically reduce the code size needed to perform simple plot visualizations as well as ensure that the code that produces the data is decoupled from the code that does the visualization.
The kwplot.imshow and kwplot.figure functions are extensions of the matplotlib versions with slightly extended interfaces (again to help reduce the density of visualization code in research scripts).
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
Built Distributions
File details
Details for the file kwplot-0.4.9.tar.gz
.
File metadata
- Download URL: kwplot-0.4.9.tar.gz
- Upload date:
- Size: 36.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a36c87501586c9b11c52355ce09e7e4d647cc54268decaab5b6dfd9f07b118c |
|
MD5 | a1c2c88b81804e76239a2fcd3bb0d6c7 |
|
BLAKE2b-256 | efc742d3df8580ef7216c66eee9aeac18b5f721cc172ab943bb713952027bcac |
File details
Details for the file kwplot-0.4.9-py3-none-any.whl
.
File metadata
- Download URL: kwplot-0.4.9-py3-none-any.whl
- Upload date:
- Size: 36.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f9aa9ffb5f1e8a6c7bb5f037332502cc915b04c85e2187a71d6a9fa7dac20c7 |
|
MD5 | a208283ebfec200b9619ba5847833705 |
|
BLAKE2b-256 | 7db33051ef6886ebd5eefafbb97ccf2aa220ef67e34978c579db31c0de35fd32 |
File details
Details for the file kwplot-0.4.9-py2.py3-none-any.whl
.
File metadata
- Download URL: kwplot-0.4.9-py2.py3-none-any.whl
- Upload date:
- Size: 36.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98433f6c9fcae54920edca4ee1e0520e71a0c7f7d8132b0f3f92cd19fc378c7e |
|
MD5 | ab8a7907b70e319d3df1ed19e3487639 |
|
BLAKE2b-256 | 4b58c2fe3bfe59ccb2252310c23b3519ec968c975edaa3492c4a18ff3d581f1f |