Skip to main content
DataMapPlot logo

pypi_version pypi_downloads

conda_version conda_downloads

License build_status Coverage

Docs

DataMapPlot

Creating beautiful plots of data maps. DataMapPlot is a small library designed to help you make beautiful data map plots for inclusion in presentations, posters and papers. The focus is on producing static plots, or simple interactive plots, that are great looking with as little work for you as possible. All you need to do is label clusters of points in the data map and DataMapPlot will take care of the rest. While this involves automating most of the aesthetic choices, the library provides a wide variety of ways to customize the resulting plot to your needs.

Static Plot Examples

Some examples of the kind of output that DataMapPlot can provide.

A basic plot, with some highlighted labels:

A data map plot of the CORD-19 dataset

Using darkmode and some custom font choices:

A data map plot of papers from ArXiv ML

With labels over points in a word-cloud style:

A word cloud style data map plot of papers from ArXiv ML

Alternative custom styling:

A data map plot of Simple Wikipedia

Custom arrow styles, fonts, and colour maps:

A styled data map plot of papers from ArXiv ML

Interactive Plot Examples

Some example videos of interacting with the interactive html plots.

Animation of searching and zooming on ArXiv data Animation of zooming and panning on CORD19 data Animation of panning and zooming on Wikipedia data Animation of searching and zooming on CORD19 data

Basic Usage

DataMapPlot is very easy to use. There are essentially only two functions: create_plot and create_interactive_plot. They take coordinates of a data map, and an array or list of labels for the data points. A variety of further options can be used to customise the output. A basic example might look something like:

import datamapplot

datamapplot.create_plot(data_map_coords, data_map_labels, **style_keywords)

Please see the documentation for full details on usage and options.

Documentation

Full documentation for DataMapPlot is available on ReadTheDocs.

See the Community Projects gallery for examples of interactive maps built with DataMapPlot by the community.

Installation

DataMapPlot requires a few libraries, but all are widely available and easy to install:

  • Numpy

  • Matplotlib

  • Scikit-learn

  • Pandas

  • Datashader

  • Scikit-image

  • Numba

  • Requests

  • Jinja2

To install DataMapPlot you can use pip:

pip install datamapplot

or use conda with conda-forge

conda install -c conda-forge datamapplot

License

DataMapPlot is MIT licensed. See the LICENSE file for details.

Help and Support

Documentation is at Read the Docs. The documentation includes a FAQ that may answer your questions. If you still have questions then please open an issue and I will try to provide any help and guidance that I can. Please read the code of conduct for acceptable behaviour in issue and PR discussions.

Contributing

Contributions are more than welcome! If you have ideas for features or projects please get in touch. Everything from code to notebooks to examples and documentation are all equally valuable so please don’t feel you can’t contribute. To contribute please fork the project make your changes and submit a pull request. We will do our best to work through any issues with you and get your code merged in.

We would like to note that the DataMapPlot package makes heavy use of NumFOCUS sponsored projects, and would not be possible without their support of those projects, so please consider contributing to NumFOCUS.

Metadata

Release files for datamapplot 0.7.3

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

Source distribution (sdist)

Source distribution for datamapplot 0.7.3
File Size Uploaded Provenance Actions
datamapplot-0.7.3.tar.gz 329.6 kB Without provenance Details for datamapplot-0.7.3.tar.gz

Built distribution (wheel)

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

Total release size: 680.2 kB

Release files / datamapplot-0.7.3.tar.gz

Download URL datamapplot-0.7.3.tar.gz
Size 329.6 kB
Tags Source
SHA-256 checksum
How to use checksums
99ae435827d50d6025844705274525309c3e7838bff950bbaad37abc0943ba9b
BLAKE2b-256 checksum
How to use checksums
0c7095e2caf2cc2f1061d5e99848177f8b8e2e244bfa02a6c637b8b264d72407
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / datamapplot-0.7.3-py3-none-any.whl

Download URL datamapplot-0.7.3-py3-none-any.whl
Size 350.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38c789c9f13251ca86c3b526a1fd528ad29921222020f33465e7ffc45ee51e0f
BLAKE2b-256 checksum
How to use checksums
77f0ea8b0b370f8e15241e804bbdc0d451904e4d96846160509f23d31e615904
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Security for datamapplot 0.7.3

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.

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