Skip to main content

The Kitware Plot Module

GitlabCIPipeline GitlabCICoverage Appveyor Pypi Downloads ReadTheDocs

ReadTheDocs

https://kwplot.readthedocs.io/en/latest/

Gitlab (main)

https://gitlab.kitware.com/computer-vision/kwplot

Github (mirror)

https://github.com/Kitware/kwplot

Pypi

https://pypi.org/project/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. For convinience, the functions: kwplot.autoplt and kwplot.autosns also execute this auto-backend behavior, but return the pyplot and seaborn module, respectively. It is recommended to call one of these functions before any use of pyplot due to pyplot’s import-time side effects (note: pre-importing most other matplotlib modules is ok).

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). The kwplot.PlotNums helps manage subplots locations, especially when you are developing / reordering them.

Metadata

Release files for kwplot 0.5.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kwplot 0.5.5
File Size Uploaded
kwplot-0.5.5.tar.gz 93.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kwplot 0.5.5
File Interpreter ABI Platform
kwplot-0.5.5-py3-none-any.whl Python 3 none any Details

Total release size: 189.3 kB

Release files / kwplot-0.5.5.tar.gz

Download URL kwplot-0.5.5.tar.gz
Size 93.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d37f08a518810f9ccc5b98b1be44e48754440079e5900f1b90b66936a0c1b0f0
BLAKE2b-256 checksum
How to use checksums
892dbc7e5763a07caca150d4df386cce5d662322bb1c048ab8e982fe56f4a997
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / kwplot-0.5.5-py3-none-any.whl

Download URL kwplot-0.5.5-py3-none-any.whl
Size 95.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
936c1152fbecf34947ada43cfd996abf2148823be4eac95051e8053a0adb27b9
BLAKE2b-256 checksum
How to use checksums
ebf578ac7dd408cb233eb2e8510e54f0a69489667998663a546ee36ea1e88d7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release history Release notifications | RSS feed

This release

0.5.5 This release

2 release files

0.5.4

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

1 release file

0.4.16

1 release file

0.4.15

1 release file

0.4.14

1 release file

0.4.13

1 release file

0.4.12

2 release files

0.4.11

2 release files

0.4.9

3 release files

0.4.8

3 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.2

2 release files

0.4.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page