{ "info": { "author": "Benjamin F. Maier", "author_email": "bfmaier@physik.hu-berlin.de", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3" ], "description": "bfmplot\n=======\n\nA collection of snippets for plots to make my life easier. The name is a\nnod to the great `Burkhard Bunk`_.\n\nInstall\n-------\n\nClone this repository\n\n.. code:: bash\n\n git clone git@github.com:benmaier/bfmplot.git\n\nInstall as development version (such that you don't have to reinstall\nafter updating the repository)\n\n.. code:: bash\n\n pip install -e ./bfmplot --no-binary :all:\n cd bfmplot; make\n\nAlternatively, install normally\n\n.. code:: bash\n\n pip install ./bfmplot\n cd bfmplot; make install\n\nExamples\n--------\n\nFirst Example\n~~~~~~~~~~~~~\n\n.. code:: python\n\n from bfmplot import pl\n import bfmplot as bp\n import numpy as np\n\n def sin_test(n=8,text_position='start'):\n\n # new figure in the golden ratio\n pl.figure(figsize=bp.golden_ratio(5))\n\n x = np.linspace(0,5*np.pi,100)\n\n # plot several functions with different markers\n for i in range(n):\n pl.plot(x, 1-np.sin(x[::-1]/np.sqrt(i+1)), marker=bp.markers[i],mfc='w',label='$i=%d$'%i)\n\n # remove right and top axis\n bp.strip_axis(pl.gca())\n\n # order legend items to align to the right\n leg = pl.legend()\n bp.align_legend_right(leg)\n\n # draw an arrow\n bp.arrow(pl.gca(), r'$i$', (6, 0.8), (3, 1.8), text_position=text_position)\n\n pl.xlabel('this is the x-label')\n pl.ylabel('this is the y-label')\n\n pl.gcf().tight_layout()\n\n\n sin_test(n=4,text_position='start')\n\n pl.show()\n\n|one|\n\nColors\n~~~~~~\n\n.. code:: python\n\n for colors,name in zip([\n bp.mpl_default_colors,\n bp.new_colors,\n bp.brewer_qualitative,\n bp.cccs_colors, \n bp.get_cividis_colors(8),\n ],\n [\n 'bfmplot.mpl_default_colors',\n 'bfmplot.new_colors',\n 'bfmplot.brewer_qualitative',\n 'bfmplot.cccs_colors',\n 'bfmplot.get_cividis_colors(8)',\n ],\n ):\n\n bp.set_color_cycle(colors)\n sin_test(n=8,text_position='start')\n\n|image1| |image2| |image3| |image4| |image5|\n\n.. _Burkhard Bunk: http://people.physik.hu-berlin.de/~bunk/bbplot/\n\n.. |one| image:: https://github.com/benmaier/bfmplot/raw/master/sandbox/one.png\n.. |image1| image:: https://github.com/benmaier/bfmplot/raw/master/sandbox/bfmplot.mpl_default_colors.png\n.. |image2| image:: https://github.com/benmaier/bfmplot/raw/master/sandbox/bfmplot.new_colors.png\n.. |image3| image:: https://github.com/benmaier/bfmplot/raw/master/sandbox/bfmplot.brewer_qualitative.png\n.. |image4| image:: https://github.com/benmaier/bfmplot/raw/master/sandbox/bfmplot.cccs_colors.png\n.. |image5| image:: https://github.com/benmaier/bfmplot/raw/master/sandbox/bfmplot.get_cividis_colors_8_.png", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://www.github.com/benmaier/bfmplot", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "bfmplot", "package_url": "https://pypi.org/project/bfmplot/", "platform": "", "project_url": "https://pypi.org/project/bfmplot/", "project_urls": { "Homepage": "https://www.github.com/benmaier/bfmplot" }, "release_url": "https://pypi.org/project/bfmplot/0.0.7/", "requires_dist": null, "requires_python": "", "summary": "Snippet collections for plots how I make them.", "version": "0.0.7" }, "last_serial": 5691792, "releases": { "0.0.4": [ { "comment_text": "", "digests": { "md5": "fbbea20b7fb120fd1338d3102efa0d95", "sha256": "d369950fdce77bf98fa0989d63a300b3fae1f109e1a01eb4b33c83a591fd9a1d" }, "downloads": -1, "filename": "bfmplot-0.0.4.tar.gz", "has_sig": false, "md5_digest": "fbbea20b7fb120fd1338d3102efa0d95", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12387, "upload_time": "2019-02-19T19:54:09", "url": "https://files.pythonhosted.org/packages/10/60/11e9dfa772d7c8e4f1d8621294d6082b21575d846227943e182ae0bf6eae/bfmplot-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "083b2c73ca5766738577e297e5beecdb", "sha256": "75166fa840004fb7d41e30fe3e244f5b824ae6bc8ea3bcdab0ca2fe849f7ef8a" }, "downloads": -1, "filename": "bfmplot-0.0.5.tar.gz", "has_sig": false, "md5_digest": "083b2c73ca5766738577e297e5beecdb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12433, "upload_time": "2019-02-20T09:17:37", "url": "https://files.pythonhosted.org/packages/88/83/4b53eae4a638dcf7363324083e274371347afc2e4b149a8f4a2f6cc07de6/bfmplot-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "56eb1c5af5ab997df2cf65791ceb50d8", "sha256": "8426cd398682faf9828626a1d9f56ad1bf3379bdb1530e74cc091e25391c3f12" }, "downloads": -1, "filename": "bfmplot-0.0.6.tar.gz", "has_sig": false, "md5_digest": "56eb1c5af5ab997df2cf65791ceb50d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12530, "upload_time": "2019-02-24T19:44:16", "url": "https://files.pythonhosted.org/packages/db/96/d1c2d7c459ec59e2896c35ab6f07964b6503db73f455206df08f9d6d0e2b/bfmplot-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "e0bdcfe89d0f74727121e3af86466170", "sha256": "dc7617eb89eec4380b97b50b248848f8dfb44e1e038163818bfc97630eb96540" }, "downloads": -1, "filename": "bfmplot-0.0.7.tar.gz", "has_sig": false, "md5_digest": "e0bdcfe89d0f74727121e3af86466170", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12572, "upload_time": "2019-08-17T14:32:54", "url": "https://files.pythonhosted.org/packages/f2/ad/87042210c3af03f140e0efec23980a1e7ffe523e90728ab7c06b2a772792/bfmplot-0.0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e0bdcfe89d0f74727121e3af86466170", "sha256": "dc7617eb89eec4380b97b50b248848f8dfb44e1e038163818bfc97630eb96540" }, "downloads": -1, "filename": "bfmplot-0.0.7.tar.gz", "has_sig": false, "md5_digest": "e0bdcfe89d0f74727121e3af86466170", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12572, "upload_time": "2019-08-17T14:32:54", "url": "https://files.pythonhosted.org/packages/f2/ad/87042210c3af03f140e0efec23980a1e7ffe523e90728ab7c06b2a772792/bfmplot-0.0.7.tar.gz" } ] }