{ "info": { "author": "Warren Weckesser", "author_email": "", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3" ], "description": "heatmapcluster\n==============\n\n``heatmapcluster`` is a python library for generating a clustered heatmap\nwith dendrograms plotted along with the heatmap, such as the following:\n\n.. image:: https://raw.githubusercontent.com/WarrenWeckesser/heatmapcluster/master/demo/heatmapcluster_demo.png\n :alt: Example plot\n :align: center\n :scale: 50 %\n\nThis is prototype-quality software. The documentation is sparse, and the API\nwill likely change.\n\nPlots are generated with matplotlib (http://matplotlib.org/).\nTo use the package, numpy, scipy and matplotlib must be installed.\n\n``setuptools`` is required to install the package using ``setup.py``.\n\nExample\n-------\n\nThis is ``heatmapcluster_demo.py``. Most of the code is the function ``make_data``,\nwhich generates an array of data for the demonstration. The main part of the\ndemo is the last three statements of the script. This script generates the plot\nshown above::\n\n import numpy as np\n import matplotlib.pyplot as plt\n from heatmapcluster import heatmapcluster\n\n\n def make_data(size, seed=None):\n if seed is not None:\n np.random.seed(seed)\n\n s = np.random.gamma([7, 6, 5], [6, 8, 6], size=(size[1], 3)).T\n i = np.random.choice(range(len(s)), size=size[0])\n x = s[i]\n\n t = np.random.gamma([8, 5, 6], [3, 3, 2.1], size=(size[0], 3)).T\n j = np.random.choice(range(len(t)), size=size[1])\n\n x += 1.1*t[j].T\n\n x += 2*np.random.randn(*size)\n\n row_labels = [('R%02d' % k) for k in range(x.shape[0])]\n col_labels = [('C%02d' % k) for k in range(x.shape[1])]\n\n return x, row_labels, col_labels\n\n\n x, row_labels, col_labels = make_data(size=(64, 48), seed=123)\n\n h = heatmapcluster(x, row_labels, col_labels,\n num_row_clusters=3, num_col_clusters=0,\n label_fontsize=6,\n xlabel_rotation=-75,\n cmap=plt.cm.coolwarm,\n show_colorbar=True,\n top_dendrogram=True)\n plt.show()", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "heatmap cluster scipy plot", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "heatmapcluster", "package_url": "https://pypi.org/project/heatmapcluster/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/heatmapcluster/", "project_urls": null, "release_url": "https://pypi.org/project/heatmapcluster/0.1.2/", "requires_dist": [ "matplotlib", "numpy (>=1.6.0)", "scipy" ], "requires_python": "", "summary": "Heatmap cluster dendrogram plotter.", "version": "0.1.2" }, "last_serial": 2574304, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "6454e38f0abea9dc0a080337799367a7", "sha256": "8ae8de813cf3ef977c44155b46e53c04d1b621560603b5943d3d3372af4993b2" }, "downloads": -1, "filename": "heatmapcluster-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6454e38f0abea9dc0a080337799367a7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6311, "upload_time": "2017-01-14T17:44:42", "url": "https://files.pythonhosted.org/packages/c4/9a/66b617b4adf8e6ec2254257b2c0a6793202a2755039ab38ada9c8fe3aa0e/heatmapcluster-0.1.2-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6454e38f0abea9dc0a080337799367a7", "sha256": "8ae8de813cf3ef977c44155b46e53c04d1b621560603b5943d3d3372af4993b2" }, "downloads": -1, "filename": "heatmapcluster-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6454e38f0abea9dc0a080337799367a7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6311, "upload_time": "2017-01-14T17:44:42", "url": "https://files.pythonhosted.org/packages/c4/9a/66b617b4adf8e6ec2254257b2c0a6793202a2755039ab38ada9c8fe3aa0e/heatmapcluster-0.1.2-py2.py3-none-any.whl" } ] }