Skip to main content

A wrapper around matplotlib

Project description

GitlabCIPipeline GitlabCICoverage Appveyor Pypi Downloads

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kwplot-0.4.10.tar.gz (37.1 kB view details)

Uploaded Source

Built Distributions

kwplot-0.4.10-py3-none-any.whl (38.1 kB view details)

Uploaded Python 3

kwplot-0.4.10-py2.py3-none-any.whl (38.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file kwplot-0.4.10.tar.gz.

File metadata

  • Download URL: kwplot-0.4.10.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for kwplot-0.4.10.tar.gz
Algorithm Hash digest
SHA256 4be667a2e47f625ffdb87dc64793ae0a560a0efad8ba0d266d278064c052e9a2
MD5 c130cda94d07c15b64fef7a5a7771e05
BLAKE2b-256 bc7df90aa1ed41fd8b1fe16a2f9f82e3acc104de14becb2a6eed8843c5d32304

See more details on using hashes here.

File details

Details for the file kwplot-0.4.10-py3-none-any.whl.

File metadata

  • Download URL: kwplot-0.4.10-py3-none-any.whl
  • Upload date:
  • Size: 38.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for kwplot-0.4.10-py3-none-any.whl
Algorithm Hash digest
SHA256 41b12f82ce005a6a337a45e1bd4fef320f54188383d85a1ccc53f5c63ac27517
MD5 c9ae3fa81fe9f72729674b61181b3391
BLAKE2b-256 2551b8ece6157fd2c8f151cdf1eb0406579ccf4d94e427c9633d0648b43ec73c

See more details on using hashes here.

File details

Details for the file kwplot-0.4.10-py2.py3-none-any.whl.

File metadata

  • Download URL: kwplot-0.4.10-py2.py3-none-any.whl
  • Upload date:
  • Size: 38.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for kwplot-0.4.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ebabe9c497f51b9df43d89368b5b771cc0c8e06e521e91007fa4d8996ddc9495
MD5 942c82bc6090e31f3406ee8f151474be
BLAKE2b-256 83a2c46dbc5bc92fc8d5282872227422caa64134e6765990f1672db8e7e9c8e1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page