{ "info": { "author": "Michael Imelfort", "author_email": "mike@mikeimelfort.com", "bugtrack_url": null, "classifiers": [], "description": "# mikePlotLib\n\n## Overview\n\nA collection of plotting / coloring tools I've been using here and there. Finally I'm putting them into one place.\nOne safe place.\n\n## Installation\n\nShould be as simple as\n\n pip install mikePlotLib\n\n## SineBow - turn values into colours\n\n### create an rgb sinebow that spans a portion of the color wheel between 0 and 100 with 1000 steps\n from mikeplotlib.sineBow import SineBow\n SB = SineBow(100, mapType='rgb')\n\n### get the rgb tuple for value=57.1\n SB.makeColor(57.1) # (0, 245, 9)\n\n### get it as a #hex string\n SB.makeColor(57.1, hexFormat=True) # #00f509\n\n### get 25 colours evenly spaced over the region\n cols = SB.getNColors(25)\n\n## StackedbarGraph - code for making purdy stacked bar graphs\n\n### Example usage 1\n\n from stackedBarGraph import StackedBarGrapher()\n SBG = StackedBarGrapher()\n SBG.demo()\n\n### Example usage 2\n\n import numpy as np\n from matplotlib import pyplot as plt\n from stackedBarGraph import StackedBarGrapher\n SBG = StackedBarGrapher()\n\n d = np.array([[101.,0.,0.,0.,0.,0.,0.],\n [92.,3.,0.,4.,5.,6.,0.],\n [56.,7.,8.,9.,23.,4.,5.],\n [81.,2.,4.,5.,32.,33.,4.],\n [0.,45.,2.,3.,45.,67.,8.],\n [99.,5.,0.,0.,0.,43.,56.]])\n\n d_widths = [.5,1.,3.,2.,1.,2.]\n d_labels = [\"fred\",\"julie\",\"sam\",\"peter\",\"rob\",\"baz\"]\n d_colors = ['#2166ac', '#fee090', '#fdbb84', '#fc8d59', '#e34a33', '#b30000', '#777777']\n fig = plt.figure()\n\n ax = fig.add_subplot(111)\n SBG.stackedBarPlot(ax,\n d,\n d_colors,\n xLabels=d_labels,\n yTicks=7,\n widths=d_widths,\n scale=True\n )\n plt.title(\"Scaled bars with set widths\")\n\n fig.subplots_adjust(bottom=0.4)\n plt.tight_layout()\n plt.show()\n plt.close(fig)\n del fig\n\n## cbCols - Easy access to the colorbrewer2.org maps\n\n### Example usage 1 - see all available colours\n\n from cb2cols import Cb2Cols as CB2\n cb2 = CB2()\n cb2.demo()\n\n### Example usage 2 - the first three colours from qualset1\n\n from cb2cols import Cb2Cols as CB2\n cb2 = CB2()\n col_set = \"qualSet1\"\n colours = cb2.maps[col_set].values()[0:3]\n\n## Help\n\nIf you experience any problems using mikePlotLib, open an [issue](https://github.com/minillinim/mikePlotLib/issues) on GitHub and tell us about it.\n\n## Licence and referencing\n\nProject home page, info on the source tree, documentation, issues and how to contribute, see http://github.com/minillinim/mikePlotLib\n\nThis software is currently unpublished\n\n## Copyright\n\nCopyright (c) 2014 Michael Imelfort. See LICENSE.txt for further details.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/mikePlotLib/", "keywords": null, "license": "GPLv3", "maintainer": null, "maintainer_email": null, "name": "mikePlotLib", "package_url": "https://pypi.org/project/mikePlotLib/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/mikePlotLib/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/mikePlotLib/" }, "release_url": "https://pypi.org/project/mikePlotLib/2.0.0/", "requires_dist": null, "requires_python": null, "summary": "mikePlotLib", "version": "2.0.0" }, "last_serial": 1314469, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "bdbfafe3abd67cf2bbe971311b2dbd21", "sha256": "365984880d62a521289c074a56fdfd2fe8308e53fda02b7a38230a5a9a600cfd" }, "downloads": -1, "filename": "mikePlotLib-1.0.0.tar.gz", "has_sig": false, "md5_digest": "bdbfafe3abd67cf2bbe971311b2dbd21", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19884, "upload_time": "2014-11-19T12:52:06", "url": "https://files.pythonhosted.org/packages/3d/10/82c22388ce91f0db9b551c39ec422e9ba06ddd35439b3c2e2b774cb9b19a/mikePlotLib-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "230b7dedf0fe952d461d056b00c86eab", "sha256": "9737cda4c220543aa08288a6667854202d9c87ce0b0bc0f8406608a78bab3653" }, "downloads": -1, "filename": "mikePlotLib-1.0.1.tar.gz", "has_sig": false, "md5_digest": "230b7dedf0fe952d461d056b00c86eab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20882, "upload_time": "2014-11-19T13:16:07", "url": "https://files.pythonhosted.org/packages/f5/11/e6c8cdeba5f80ee0a4203e3e9853fa848a52a75409b4756acfcde05098d0/mikePlotLib-1.0.1.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "b8617c5ed5af8a7d5f558a4df4ed6f73", "sha256": "41147a5fe8032995045264b366fc2d94a6e8b1ed6a5f8604472a431a5fcdb4e9" }, "downloads": -1, "filename": "mikePlotLib-2.0.0.tar.gz", "has_sig": false, "md5_digest": "b8617c5ed5af8a7d5f558a4df4ed6f73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20813, "upload_time": "2014-11-20T14:39:07", "url": "https://files.pythonhosted.org/packages/ca/bb/0dae404168d992a7a98ab6119d7fbafc447587eb0286030284bf2019fc52/mikePlotLib-2.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b8617c5ed5af8a7d5f558a4df4ed6f73", "sha256": "41147a5fe8032995045264b366fc2d94a6e8b1ed6a5f8604472a431a5fcdb4e9" }, "downloads": -1, "filename": "mikePlotLib-2.0.0.tar.gz", "has_sig": false, "md5_digest": "b8617c5ed5af8a7d5f558a4df4ed6f73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20813, "upload_time": "2014-11-20T14:39:07", "url": "https://files.pythonhosted.org/packages/ca/bb/0dae404168d992a7a98ab6119d7fbafc447587eb0286030284bf2019fc52/mikePlotLib-2.0.0.tar.gz" } ] }