{ "info": { "author": "Philippe Pinard", "author_email": "philippe.pinard@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Visualization" ], "description": "matplotlib-colorbar\n===================\n\n.. image:: https://travis-ci.org/ppinard/matplotlib-colorbar.svg\n :target: https://travis-ci.org/ppinard/matplotlib-colorbar\n\n.. image:: https://badge.fury.io/py/matplotlib-colorbar.svg\n :target: http://badge.fury.io/py/matplotlib-colorbar\n\n.. image:: https://codecov.io/github/ppinard/matplotlib-colorbar/coverage.svg?branch=master\n :target: https://codecov.io/github/ppinard/matplotlib-colorbar?branch=master\n\nProvides a new artist for matplotlib to display a colorbar,\ninstead of an axis as it is the default in matplotlib.\nThe position of the colorbar artist can be decided as for the legend.\n\n.. image:: https://raw.githubusercontent.com/ppinard/matplotlib-colorbar/master/doc/example1.png\n\nThe artist supports customization either directly from the *Colorbar* object or\nfrom the matplotlibrc.\n\nInstallation\n------------\n\nEasiest way to install using ``pip``::\n\n $ pip install matplotlib-colorbar\n\nFor development installation from the git repository::\n\n $ git clone git@github.com:ppinard/matplotlib-colorbar.git\n $ pip install -e matplotlib-colorbar\n\nExample\n-------\n\nHere is an example how to add a color bar::\n\n >>> import numpy as np\n >>> import matplotlib.pyplot as plt\n >>> import matplotlib.cbook as cbook\n >>> from matplotlib_colorbar.colorbar import Colorbar\n >>> plt.figure()\n >>> data = np.array(plt.imread(cbook.get_sample_data('grace_hopper.png')))\n >>> mappable = plt.imshow(data[...,0], cmap='viridis')\n >>> colorbar = Colorbar(mappable, location='lower left')\n >>> colorbar.set_ticks([0.0, 0.5, 1.0])\n >>> plt.gca().add_artist(colorbar)\n >>> plt.show()\n\nColorbar arguments\n------------------\n\nHere are parameters of the **Colorbar** class constructor.\n\n* ``mappable``: scalar mappable object which implements the methods *get_cmap* and *get_array* (default: ``None``, the mappable can be specified later)\n* ``label``: label on top of the color bar (default: ``None``, no label is shown)\n* ``orientation``: orientation, ``vertical`` or ``horizontal`` (default: ``vertical``)\n* ``length_fraction``: length of the color bar as a fraction of the axes's width (horizontal) or height (vertical) depending on the orientation (default: ``0.2``)\n* ``width_fraction``: width of the color bar as a fraction of the axes's height (horizontal) or width (vertical) depending on the orientation (default: ``0.02``)\n* ``location``: a location code (same as legend) (default: ``upper right``)\n* ``pad``: fraction of the font size (default: ``0.2``)\n* ``border_pad``: fraction of the font size (default: ``0.1``)\n* ``sep``: separation between color bar and label in points (default: ``5``)\n* ``frameon``: if True, will draw a box around the color bar (default: ``True``)\n* ``color``: color for the tick text and label (default: ``k``)\n* ``box_color``: color of the box (if *frameon*) (default: ``w``)\n* ``box_alpha``: transparency of box (default: ``1.0``)\n* ``font_properties``: font properties of the label text, specified either as dict or `fontconfig `_ pattern (XML).\n* ``ticks``: ticks location (default: minimal and maximal values)\n* ``ticklabels``: a list of tick labels (same length as ``ticks`` argument)\n* ``ticklocation``: location of the ticks: ``left`` or ``right`` for vertical oriented colorbar, ``bottom`` or ``top for horizontal oriented colorbar, or ``auto`` for automatic adjustment (``right`` for vertical and ``bottom`` for horizontal oriented colorbar). (default: ``auto``)\n\nmatplotlibrc parameters\n-----------------------\n\nHere are parameters that can be customized in the matplotlibrc file.\n\n* ``orientation``: orientation, ``vertical`` or ``horizontal`` (default: ``vertical``)\n* ``length_fraction``: length of the color bar as a fraction of the axes's width (horizontal) or height (vertical) depending on the orientation (default: ``0.2``)\n* ``width_fraction``: width of the color bar as a fraction of the axes's height (horizontal) or width (vertical) depending on the orientation (default: ``0.02``)\n* ``location``: a location code (same as legend) (default: ``upper right``)\n* ``pad``: fraction of the font size (default: ``0.2``)\n* ``border_pad``: fraction of the font size (default: ``0.1``)\n* ``sep``: separation between color bar and label in points (default: ``5``)\n* ``frameon``: if True, will draw a box around the color bar (default: ``True``)\n* ``color``: color for the tick text and label (default: ``k``)\n* ``box_color``: color of the box (if *frameon*) (default: ``w``)\n* ``box_alpha``: transparency of box (default: ``1.0``)\n* ``ticklocation``: location of the ticks (default: ``auto``)\n\nRelease notes\n-------------\n0.3.6\n^^^^^\n\n* Fix deprecated usage of is_string_like\n\n0.3.5\n^^^^^\n\n* Fix: UserWarning This call to matplotlib.use() has no effect (`#9 `_)\n\nContributors\n------------\n\n`@cphyc `_ and `@jnth `_\n\nLicense\n-------\n\nLicense under the BSD License, compatible with matplotlib.\n\nCopyright (c) 2015-2017 Philippe Pinard\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ppinard/matplotlib-colorbar", "keywords": "matplotlib color bar image", "license": "BSD", "maintainer": "Philippe Pinard", "maintainer_email": "philippe.pinard@gmail.com", "name": "matplotlib-colorbar", "package_url": "https://pypi.org/project/matplotlib-colorbar/", "platform": "", "project_url": "https://pypi.org/project/matplotlib-colorbar/", "project_urls": { "Homepage": "https://github.com/ppinard/matplotlib-colorbar" }, "release_url": "https://pypi.org/project/matplotlib-colorbar/0.3.7/", "requires_dist": [ "matplotlib", "packaging" ], "requires_python": "", "summary": "Artist for matplotlib to display a color bar", "version": "0.3.7" }, "last_serial": 4450220, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "c36c7a2827ed0dc475106933d0b222e0", "sha256": "1e97b217c2ce58cf84929b42502880d8cc8be4d383ca4eb2e5c1abb4a42f15d7" }, "downloads": -1, "filename": "matplotlib_colorbar-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c36c7a2827ed0dc475106933d0b222e0", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 10050, "upload_time": "2016-01-16T18:50:55", "url": "https://files.pythonhosted.org/packages/5a/12/14806848708e53e74b4bb07fcf50831ce4ee72b8da49b160981a2130f51a/matplotlib_colorbar-0.1.0-py2.py3-none-any.whl" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "d7ba61a7a7926ad223489c94f5d3c636", "sha256": "fb7fa0ad3cc27e0cd2a8ba81559b309d435c5410087ea2358848dbdc102fdca2" }, "downloads": -1, "filename": "matplotlib_colorbar-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d7ba61a7a7926ad223489c94f5d3c636", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 11548, "upload_time": "2016-02-16T08:22:52", "url": "https://files.pythonhosted.org/packages/19/b2/ae3f5f303695603cf9957aafbb03317ed5e1b96bd7352e1be4843196e4ed/matplotlib_colorbar-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3d81fa4936e1825b40b453ef22e97fe1", "sha256": "49ffe222eafd1f342d1d8711b6c8c32ef986df78e27cac67bd630942e6f8d4a4" }, "downloads": -1, "filename": "matplotlib-colorbar-0.2.0.tar.gz", "has_sig": false, "md5_digest": "3d81fa4936e1825b40b453ef22e97fe1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24348, "upload_time": "2016-02-16T08:22:40", "url": "https://files.pythonhosted.org/packages/21/36/b22a2873b70723bffee6fc7d160fcf7a1faeb17d5c24ebd8ab5c9102a18d/matplotlib-colorbar-0.2.0.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "0d04223e1b47f19b929f28f767cb04d8", "sha256": "9e22745dd88e8c0048623d147625aa15ad5062819c8e27674079d55e2d3610c7" }, "downloads": -1, "filename": "matplotlib_colorbar-0.3.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0d04223e1b47f19b929f28f767cb04d8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13561, "upload_time": "2016-04-17T16:14:32", "url": "https://files.pythonhosted.org/packages/18/3e/c6dd1f26bdebaf7fb60f9268c771b6c40f34352516794f701a1cef63b418/matplotlib_colorbar-0.3.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eb43cf106ff577bc6c9c399e824060a7", "sha256": "25588aa78362396174ece279e25b8575c96f226bc8cc3cc204e10946aa64c81a" }, "downloads": -1, "filename": "matplotlib-colorbar-0.3.2.tar.gz", "has_sig": false, "md5_digest": "eb43cf106ff577bc6c9c399e824060a7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26091, "upload_time": "2016-04-17T16:14:39", "url": "https://files.pythonhosted.org/packages/8d/33/e5766aad51e1d95a86b14ac8653635dc2e17aaaef5a1c4a32c0678bb11e7/matplotlib-colorbar-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "eb91744d9150cdca0d69291ad189d4a9", "sha256": "0aa44b04fd8c8e7efa632de3e15d2f42cf24a7b20095cf1143d702c787ca28ba" }, "downloads": -1, "filename": "matplotlib_colorbar-0.3.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "eb91744d9150cdca0d69291ad189d4a9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13774, "upload_time": "2017-06-03T17:06:45", "url": "https://files.pythonhosted.org/packages/71/e3/73f6232c0383e0a6131d18cd6a5779206554c3d10f66417cdace086a1deb/matplotlib_colorbar-0.3.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4457f12e00ba0682c4ec6fe341936389", "sha256": "d7a5acc12c688be1eb53391f9726a0ac3ec9ca6c981df428276809e3db3117c4" }, "downloads": -1, "filename": "matplotlib-colorbar-0.3.3.tar.gz", "has_sig": false, "md5_digest": "4457f12e00ba0682c4ec6fe341936389", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26302, "upload_time": "2017-06-03T17:07:03", "url": "https://files.pythonhosted.org/packages/4d/bd/4690de7ff12b911e5b7aa67867de60520645302e3cf942cdefc76d2ec006/matplotlib-colorbar-0.3.3.tar.gz" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "02c77251f85e6f508ab41468b879c9f3", "sha256": "849fee44601edd6229615091c7e55d66acf15c9a9c1e336c87ec89745e7b8145" }, "downloads": -1, "filename": "matplotlib_colorbar-0.3.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "02c77251f85e6f508ab41468b879c9f3", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13759, "upload_time": "2017-06-03T17:13:14", "url": "https://files.pythonhosted.org/packages/86/fd/67ecec191f1e63470fbf6dd01f9ea645c5263d027a306cfb139ed4114eee/matplotlib_colorbar-0.3.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3d58c4370dcbd3fb1e4b126a9e4a0b3e", "sha256": "dd0d835e5086ba6a76fb9cc0f16bd9e5cd059769e1e5a0428576d794cf542a2a" }, "downloads": -1, "filename": "matplotlib-colorbar-0.3.4.tar.gz", "has_sig": false, "md5_digest": "3d58c4370dcbd3fb1e4b126a9e4a0b3e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26273, "upload_time": "2017-06-03T17:13:15", "url": "https://files.pythonhosted.org/packages/1c/f2/ff3ba0defee31d5b6320b99e1011cb0a0d0e5c0004751bc8a4ff0ec3c8a2/matplotlib-colorbar-0.3.4.tar.gz" } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "4e46c45338f557adc10c6aa038874eae", "sha256": "ba4722c903223bbeea9258016865637b4933fb02fd4431ed2b1ec6a6dfd4be53" }, "downloads": -1, "filename": "matplotlib_colorbar-0.3.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4e46c45338f557adc10c6aa038874eae", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14134, "upload_time": "2017-10-07T10:34:35", "url": "https://files.pythonhosted.org/packages/65/c1/07034fa762452e3cb6a02e580b4cdf8c8b51c52dd74fc15af21cbb31d497/matplotlib_colorbar-0.3.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c9566b6cba9d281dcc33c4f3be49830c", "sha256": "5023b53f74405649c175eb5c65b84daea03a3ead694a0b78aa54687b7a003f40" }, "downloads": -1, "filename": "matplotlib-colorbar-0.3.5.tar.gz", "has_sig": false, "md5_digest": "c9566b6cba9d281dcc33c4f3be49830c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26520, "upload_time": "2017-10-07T10:34:36", "url": "https://files.pythonhosted.org/packages/6e/e3/22fff278dfdb24ab132e7700105572d301902885e3f1dabe6c6c2d5cdb0c/matplotlib-colorbar-0.3.5.tar.gz" } ], "0.3.7": [ { "comment_text": "", "digests": { "md5": "03b1286df2319ccaefa90a120359c49f", "sha256": "64eeaf3f5fe9bb84c821c0b82984322ee1731466b80955b724d9ff8ae1ae8342" }, "downloads": -1, "filename": "matplotlib_colorbar-0.3.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "03b1286df2319ccaefa90a120359c49f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15944, "upload_time": "2018-11-04T17:33:15", "url": "https://files.pythonhosted.org/packages/0e/35/85e3fe77d8cd825ae3ce1f52d1801fe08066bf25602c6cdc8264ce5d4339/matplotlib_colorbar-0.3.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4ff38ec677cd4b47b81092a5b821dafd", "sha256": "c530d898b4a391a1827ade6fdc06856198ce73a855ca76f039b02ff6bfde2a44" }, "downloads": -1, "filename": "matplotlib-colorbar-0.3.7.tar.gz", "has_sig": false, "md5_digest": "4ff38ec677cd4b47b81092a5b821dafd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26848, "upload_time": "2018-11-04T17:33:17", "url": "https://files.pythonhosted.org/packages/a1/31/44db01f0a24cca8c351ca6e9319bfcd279719ed3928b7e85406b9091de8b/matplotlib-colorbar-0.3.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "03b1286df2319ccaefa90a120359c49f", "sha256": "64eeaf3f5fe9bb84c821c0b82984322ee1731466b80955b724d9ff8ae1ae8342" }, "downloads": -1, "filename": "matplotlib_colorbar-0.3.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "03b1286df2319ccaefa90a120359c49f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 15944, "upload_time": "2018-11-04T17:33:15", "url": "https://files.pythonhosted.org/packages/0e/35/85e3fe77d8cd825ae3ce1f52d1801fe08066bf25602c6cdc8264ce5d4339/matplotlib_colorbar-0.3.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4ff38ec677cd4b47b81092a5b821dafd", "sha256": "c530d898b4a391a1827ade6fdc06856198ce73a855ca76f039b02ff6bfde2a44" }, "downloads": -1, "filename": "matplotlib-colorbar-0.3.7.tar.gz", "has_sig": false, "md5_digest": "4ff38ec677cd4b47b81092a5b821dafd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26848, "upload_time": "2018-11-04T17:33:17", "url": "https://files.pythonhosted.org/packages/a1/31/44db01f0a24cca8c351ca6e9319bfcd279719ed3928b7e85406b9091de8b/matplotlib-colorbar-0.3.7.tar.gz" } ] }