Skip to main content

A library for presentation and publication ready plots of data maps

Project description

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.

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.

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

datamapplot-0.7.1.tar.gz (321.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datamapplot-0.7.1-py3-none-any.whl (342.6 kB view details)

Uploaded Python 3

File details

Details for the file datamapplot-0.7.1.tar.gz.

File metadata

  • Download URL: datamapplot-0.7.1.tar.gz
  • Upload date:
  • Size: 321.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for datamapplot-0.7.1.tar.gz
Algorithm Hash digest
SHA256 492bf445e93d6856c8fc0dad632514ddd070ef0950f9e22e2e5f1d25faf2992e
MD5 d1841933df62778b3f632eb2ed896233
BLAKE2b-256 91e3515b083476ddd06b3e29226fb19181667d68f0fe384f0355bccb61e902d7

See more details on using hashes here.

File details

Details for the file datamapplot-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: datamapplot-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 342.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for datamapplot-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e9a94220a9649513480e202efcb78d555602829c208d17842a233e774a38b524
MD5 9acb82e63678320a6185351b3cc1ea22
BLAKE2b-256 91a529a1b466bc2cbe4df55ff4d9fe97479568fd2d618315321a7189e1596d17

See more details on using hashes here.

Supported by

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