datamapplot


Namedatamapplot JSON
Version 0.4.2 PyPI version JSON
download
home_pagehttps://github.com/TutteInstitute/datamapplot
SummaryA library for presentation and publication ready plots of data maps
upload_time2024-10-12 01:41:07
maintainerLeland McInnes
docs_urlNone
authorLeland McInnes
requires_python>=3.9
licenseMIT License
keywords data map visualization topic modelling cluster clustering
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. -*- mode: rst -*-

.. image:: doc/datamapplot_text_horizontal.png
  :width: 600
  :alt: DataMapPlot logo
  :align: center

===========
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:

.. image:: examples/plot_cord19.png
   :width: 1024
   :alt: A data map plot of the CORD-19 dataset
   :align: center

Using darkmode and some custom font choices:

.. image:: examples/plot_arxiv_ml.png
   :width: 1024
   :alt: A data map plot of papers from ArXiv ML
   :align: center

With labels over points in a word-cloud style:

.. image:: examples/plot_arxiv_ml_word_cloud.png
   :width: 1024
   :alt: A word cloud style data map plot of papers from ArXiv ML
   :align: center

Alternative custom styling:

.. image:: examples/plot_wikipedia.png
   :width: 1024
   :alt: A data map plot of Simple Wikipedia
   :align: center

Custom arrow styles, fonts, and colour maps:

.. image:: examples/plot_simple_arxiv.png
   :width: 1024
   :alt: A styled data map plot of papers from ArXiv ML
   :align: center

-------------------------
Interactive Plot Examples
-------------------------

Some example videos of interacting with the interactive html plots.

.. image:: examples/ArXiv_example.gif
   :width: 640px
   :alt: Animation of searching and zooming on ArXiv data

.. image:: examples/CORD19_example.gif
   :width: 640px
   :alt: Animation of zooming and panning on CORD19 data

.. image:: examples/Wikipedia_example.gif
   :width: 640px
   :alt: Animation of panning and zooming on Wikipedia data

.. image:: examples/CORD19_custom_example.gif
   :width: 640px
   :alt: 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:

.. code:: python

    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 <https://datamapplot.readthedocs.io/>`_.

------------
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:

.. code:: bash

    pip install datamapplot

or use conda with conda-forge

.. code:: bash

    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 <https://datamapplot.readthedocs.io/>`_.
The documentation `includes a FAQ <https://datamapplot.readthedocs.io/en/latest/faq.html>`_ that
may answer your questions. If you still have questions then please
`open an issue <https://github.com/TutteInstitute/datamapplot/issues/new>`_
and I will try to provide any help and guidance that I can. Please read
the `code of conduct <https://github.com/TutteInstitute/datamapplot/blob/main/CODE_OF_CONDUCT.md>`_
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 <https://github.com/TutteInstitute/datamapplot/issues#fork-destination-box>`_ 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 <https://www.numfocus.org/membership>`_.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/TutteInstitute/datamapplot",
    "name": "datamapplot",
    "maintainer": "Leland McInnes",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "leland.mcinnes@gmail.com",
    "keywords": "data map, visualization, topic modelling, cluster, clustering",
    "author": "Leland McInnes",
    "author_email": "leland.mcinnes@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/da/fa/f694e7860b539e4d6c7f33b4bd3f077f584fb64c8fc012b11de4b0c33d35/datamapplot-0.4.2.tar.gz",
    "platform": null,
    "description": ".. -*- mode: rst -*-\n\n.. image:: doc/datamapplot_text_horizontal.png\n  :width: 600\n  :alt: DataMapPlot logo\n  :align: center\n\n===========\nDataMapPlot\n===========\n\nCreating beautiful plots of data maps. DataMapPlot is a small library designed to help you make beautiful data map\nplots for inclusion in presentations, posters and papers. The focus is on producing static plots,\nor simple interactive plots, that are great looking with as little work for you as possible. All you need to do is\nlabel clusters of points in the data map and DataMapPlot will take care of the rest. While this involves automating\nmost of the aesthetic choices, the library provides a wide variety of ways to customize the resulting\nplot to your needs.\n\n--------------------\nStatic Plot Examples\n--------------------\n\nSome examples of the kind of output that DataMapPlot can provide.\n\nA basic plot, with some highlighted labels:\n\n.. image:: examples/plot_cord19.png\n   :width: 1024\n   :alt: A data map plot of the CORD-19 dataset\n   :align: center\n\nUsing darkmode and some custom font choices:\n\n.. image:: examples/plot_arxiv_ml.png\n   :width: 1024\n   :alt: A data map plot of papers from ArXiv ML\n   :align: center\n\nWith labels over points in a word-cloud style:\n\n.. image:: examples/plot_arxiv_ml_word_cloud.png\n   :width: 1024\n   :alt: A word cloud style data map plot of papers from ArXiv ML\n   :align: center\n\nAlternative custom styling:\n\n.. image:: examples/plot_wikipedia.png\n   :width: 1024\n   :alt: A data map plot of Simple Wikipedia\n   :align: center\n\nCustom arrow styles, fonts, and colour maps:\n\n.. image:: examples/plot_simple_arxiv.png\n   :width: 1024\n   :alt: A styled data map plot of papers from ArXiv ML\n   :align: center\n\n-------------------------\nInteractive Plot Examples\n-------------------------\n\nSome example videos of interacting with the interactive html plots.\n\n.. image:: examples/ArXiv_example.gif\n   :width: 640px\n   :alt: Animation of searching and zooming on ArXiv data\n\n.. image:: examples/CORD19_example.gif\n   :width: 640px\n   :alt: Animation of zooming and panning on CORD19 data\n\n.. image:: examples/Wikipedia_example.gif\n   :width: 640px\n   :alt: Animation of panning and zooming on Wikipedia data\n\n.. image:: examples/CORD19_custom_example.gif\n   :width: 640px\n   :alt: Animation of searching and zooming on CORD19 data\n\n-----------\nBasic Usage\n-----------\n\nDataMapPlot is very easy to use. There are essentially only two functions: `create_plot` and\n`create_interactive_plot`. They take coordinates of a data map, and an array or list of labels\nfor the data points. A variety of further options can be used to customise the output.\nA basic example might look something like:\n\n.. code:: python\n\n    import datamapplot\n\n    datamapplot.create_plot(data_map_coords, data_map_labels, **style_keywords)\n\nPlease see the documentation for full details on usage and options.\n\n-------------\nDocumentation\n-------------\n\nFull documentation for DataMapPlot is available on\n`ReadTheDocs <https://datamapplot.readthedocs.io/>`_.\n\n------------\nInstallation\n------------\n\nDataMapPlot requires a few libraries, but all are widely available and easy to install:\n\n * Numpy\n * Matplotlib\n * Scikit-learn\n * Pandas\n * Datashader\n * Scikit-image\n * Numba\n * Requests\n * Jinja2\n\nTo install DataMapPlot you can use pip:\n\n.. code:: bash\n\n    pip install datamapplot\n\nor use conda with conda-forge\n\n.. code:: bash\n\n    conda install -c conda-forge datamapplot\n\n\n-------\nLicense\n-------\n\nDataMapPlot is MIT licensed. See the LICENSE file for details.\n\n----------------\nHelp and Support\n----------------\n\nDocumentation is at `Read the Docs <https://datamapplot.readthedocs.io/>`_.\nThe documentation `includes a FAQ <https://datamapplot.readthedocs.io/en/latest/faq.html>`_ that\nmay answer your questions. If you still have questions then please\n`open an issue <https://github.com/TutteInstitute/datamapplot/issues/new>`_\nand I will try to provide any help and guidance that I can. Please read\nthe `code of conduct <https://github.com/TutteInstitute/datamapplot/blob/main/CODE_OF_CONDUCT.md>`_\nfor acceptable behaviour in issue and PR discussions.\n\n------------\nContributing\n------------\n\nContributions are more than welcome! If you have ideas for features or projects please get in touch. Everything from\ncode to notebooks to examples and documentation are all *equally valuable* so please don't feel you can't contribute.\nTo contribute please `fork the project <https://github.com/TutteInstitute/datamapplot/issues#fork-destination-box>`_ make your\nchanges and submit a pull request. We will do our best to work through any issues with you and get your code merged in.\n\nWe would like to note that the DataMapPlot package makes heavy use of\nNumFOCUS sponsored projects, and would not be possible without\ntheir support of those projects, so please `consider contributing to NumFOCUS <https://www.numfocus.org/membership>`_.\n\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "A library for presentation and publication ready plots of data maps",
    "version": "0.4.2",
    "project_urls": {
        "Homepage": "https://github.com/TutteInstitute/datamapplot"
    },
    "split_keywords": [
        "data map",
        " visualization",
        " topic modelling",
        " cluster",
        " clustering"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5b5eb9564a544ab0be9d4f8063ea1c39a4f187cf048bf18ef82845da6c5aac54",
                "md5": "d3cc588a6be24221db78c163bfb9d7e1",
                "sha256": "eda8939a3f255728bdac59c20762b3d09cee5793bc25c429d753991ec75ba818"
            },
            "downloads": -1,
            "filename": "datamapplot-0.4.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d3cc588a6be24221db78c163bfb9d7e1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 72398,
            "upload_time": "2024-10-12T01:41:05",
            "upload_time_iso_8601": "2024-10-12T01:41:05.848455Z",
            "url": "https://files.pythonhosted.org/packages/5b/5e/b9564a544ab0be9d4f8063ea1c39a4f187cf048bf18ef82845da6c5aac54/datamapplot-0.4.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dafaf694e7860b539e4d6c7f33b4bd3f077f584fb64c8fc012b11de4b0c33d35",
                "md5": "ef58504e4af1220c1a5b637217020458",
                "sha256": "9d513cf3f525a3e0f72687ad0f3cb628878b349aa5e96215cb298f64ff512b7f"
            },
            "downloads": -1,
            "filename": "datamapplot-0.4.2.tar.gz",
            "has_sig": false,
            "md5_digest": "ef58504e4af1220c1a5b637217020458",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 68643,
            "upload_time": "2024-10-12T01:41:07",
            "upload_time_iso_8601": "2024-10-12T01:41:07.707864Z",
            "url": "https://files.pythonhosted.org/packages/da/fa/f694e7860b539e4d6c7f33b4bd3f077f584fb64c8fc012b11de4b0c33d35/datamapplot-0.4.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-12 01:41:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "TutteInstitute",
    "github_project": "datamapplot",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "datamapplot"
}
        
Elapsed time: 1.22449s