{ "info": { "author": "Rogerio Prado de Jesus", "author_email": "rogeriopradoj@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Customer Service", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: End Users/Desktop", "Intended Audience :: Financial and Insurance Industry", "Intended Audience :: Healthcare Industry", "Intended Audience :: Information Technology", "Intended Audience :: Manufacturing", "Intended Audience :: Other Audience", "Intended Audience :: Science/Research", "Intended Audience :: System Administrators", "Intended Audience :: Telecommunications Industry", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: OS Independent", "Operating System :: POSIX :: Linux", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Multimedia", "Topic :: Multimedia :: Graphics", "Topic :: Multimedia :: Graphics :: Presentation", "Topic :: Office/Business", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Information Analysis", "Topic :: Scientific/Engineering :: Visualization" ], "description": "@RogerioPradoJ paretochart - rogeriopradoj-paretochart - Fork from @tintrinh\n============================================================================\n\n[Pareto chart](http://en.wikipedia.org/wiki/Pareto_chart) for python 3 (similar to [Matlab](http://www.mathworks.com/help/matlab/ref/pareto.html), but much more flexible) - Fork from @tintrinh.\n\nFeatures\n--------\n\n- **Data labels** for the chart x-axis.\n- **Fully customizable** with unique ``arg`` and ``kwarg`` inputs:\n - *Bar chart*: follows the inputs of the [matplotlib.pyplot.bar](http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.bar) function (use ``bar_args=(...)`` and ``bar_kw={...}``).\n - *Cumulative line*: follows the inputs of the [matplotlib.pyplot.plot](http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.plot) function (use ``line_args=(...)`` and ``line_kw={...}``).\n - *Limit line*: follows the inputs of the [matplotlib.axes.Axes.axhline](http://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes.axhline) function (use ``limit_kw={...}``).\n- Put the chart on **arbitrary axes**.\n\nExamples\n--------\n\nFirst, a simple import::\n\n```python\nfrom paretochart.paretochart import pareto\n```\n\nNow, let's create the numeric data (no pre-sorting necessary)::\n\n```python\ndata = [21, 2, 10, 4, 16]\n```\n\nWe can even assign x-axis labels (in the same order as the data)::\n\n```python\nlabels = ['tom', 'betty', 'alyson', 'john', 'bob']\n```\n\nFor this example, we'll create 4 plots that show the customization \ncapabilities::\n\n```python\nimport matplotlib.pyplot as plt\n\n# create a grid of subplots\nfig, axes = plt.subplots(2, 2)\n```\n\nThe first plot will be the simplest usage, with just the data::\n\n```python\npareto(data, axes=axes[0, 0])\nplt.title('Basic chart without labels', fontsize=10)\n```\n\nIn the second plot, we'll add labels, put a cumulative limit at 0.75 (or 75%) \nand turn the cumulative line green::\n\n```python\npareto(data, labels, axes=axes[0, 1], limit=0.75, line_args=('g',))\nplt.title('Data with labels, green cum. line, limit=0.75', fontsize=10)\n```\n\nIn the third plot, we'll remove the cumulative line and limit line, make the\nbars green and resize them to a width of 0.5::\n\n```python\npareto(data, labels, cumplot=False, axes=axes[1, 0], data_kw={'width': 0.5,\n 'color': 'g'})\nplt.title('Data without cum. line, green bar width=0.5', fontsize=10)\n```\n\nIn the fourth plot, let's put the cumulative limit at 95% and make that line\nyellow::\n\n```python\npareto(data, labels, limit=0.95, axes=axes[1, 1], limit_kw={'color': 'y'})\nplt.title('Data trimmed at 95%, yellow limit line', fontsize=10)\n```\n\nAnd last, but not least, let's show the image::\n\n```python\nfig.canvas.set_window_title('Pareto Plot Test Figure')\nplt.show()\n```\n\nThis should result in the following image ([click here](https://raw.githubusercontent.com/rogeriopradoj/rogeriopradoj-paretochart/2.0.0/pareto_plot_test_figure.png) if the image doesn't \nshow up):\n\n![pareto_plot_test_figure](https://raw.githubusercontent.com/rogeriopradoj/rogeriopradoj-paretochart/2.0.0/pareto_plot_test_figure.png)\n\nInstallation\n------------\n\nSince this is really a single python file, you can simply go to the \nGitHub_ page, simply download `paretochart.py` and put it in \na directory that python can find it.\n\nAlternatively, the file can be installed using::\n\n```shell\npip install --upgrade rogeriopradoj-paretochart\n```\n\nIf you are using Python2, you can use original @tintrinh's project::\n\n```shell\npip install --upgrade paretochart\n```\n\nDevelopment and Publishing New Versions\n---------------------------------------\n\n*Using knowledge from *.\n\n- define next version number (try to follow [semver 2](https://semver.org/spec/v2.0.0.html)\n- make the changes in codebase\n- update `setup.py`:\n - version\n - download_url\n- update `README.md`:\n - pareto_plot_test_figure url\n- commit, tag, and push to git central repo\n- create a source distribution, and validate it:\n - `python setup.py sdist`\n - `twine check dist/*`\n- upload the source to PyPi:\n - `twine upload dist/*`", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/rogeriopradoj/rogeriopradoj-paretochart/archive/2.0.0.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rogeriopradoj/rogeriopradoj-paretochart", "keywords": "rogeriopradoj,matplotlib,pareto,chart,plot,quality,economics,manufacturing", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "rogeriopradoj-paretochart", "package_url": "https://pypi.org/project/rogeriopradoj-paretochart/", "platform": "", "project_url": "https://pypi.org/project/rogeriopradoj-paretochart/", "project_urls": { "Download": "https://github.com/rogeriopradoj/rogeriopradoj-paretochart/archive/2.0.0.tar.gz", "Homepage": "https://github.com/rogeriopradoj/rogeriopradoj-paretochart" }, "release_url": "https://pypi.org/project/rogeriopradoj-paretochart/2.0.0/", "requires_dist": null, "requires_python": "", "summary": "Pareto chart for python (similar to Matlab's, but much more flexible) - Fork from @tintrinh", "version": "2.0.0" }, "last_serial": 5407605, "releases": { "2.0.0": [ { "comment_text": "", "digests": { "md5": "92abfb837f0dd754cdba89123192231c", "sha256": "e88f4c24a0e4cfa3c69001e22f510c731b5887a58b0b6f668ae4eb11c4a01c0e" }, "downloads": -1, "filename": "rogeriopradoj-paretochart-2.0.0.tar.gz", "has_sig": false, "md5_digest": "92abfb837f0dd754cdba89123192231c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5977, "upload_time": "2019-06-16T13:15:34", "url": "https://files.pythonhosted.org/packages/d0/58/060b8fd07cdabf3d090df6f6f18f420a27601d183377d2f7012bfaf3465b/rogeriopradoj-paretochart-2.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "92abfb837f0dd754cdba89123192231c", "sha256": "e88f4c24a0e4cfa3c69001e22f510c731b5887a58b0b6f668ae4eb11c4a01c0e" }, "downloads": -1, "filename": "rogeriopradoj-paretochart-2.0.0.tar.gz", "has_sig": false, "md5_digest": "92abfb837f0dd754cdba89123192231c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5977, "upload_time": "2019-06-16T13:15:34", "url": "https://files.pythonhosted.org/packages/d0/58/060b8fd07cdabf3d090df6f6f18f420a27601d183377d2f7012bfaf3465b/rogeriopradoj-paretochart-2.0.0.tar.gz" } ] }