{ "info": { "author": "Yi-Xin Liu", "author_email": "liuyxpp@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Science/Research", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Education", "Topic :: Scientific/Engineering" ], "description": "mpltex\n======\n\n``mpltex`` is a python package for producing publication quality images using ``matplotlib``.\nInspired by `Olga Botvinnik `_'s python package `prettyplotlib `_.\n\nThe internal ``matplotlib`` color cycle is replaced by Tableau classic 10 color scheme which looks less saturated and more pleasing to eyes.\nOther available color schemes for multi-line plots are ColorBrewer Set 1 and Tableau classic 20.\nFor more information on these color schemes, see `documentation of palettable `_.\n\n``mpltex`` also provide a way to generate highly configurable line styles with colors, line types, and line markers.\nHollow markers are supported.\n\nQuickstart\n----------\n\n1. Install\n^^^^^^^^^^\n\n::\n\n $ pip install mpltex\n\n**Required Packages**\n\n- `matplotlib `_. Can be installed via\n ``pip install matplotlib``.\n- `palettable `_. Can be\n installed via ``pip install palettable``.\n\n2. Usage\n^^^^^^^^\n\nExamples and sample plots can be found `here `_.\n\nTo use `mpltex`, just add one of ``mpltex`` decorators before your plot functions.\n\n.. code:: python\n\n import mpltex\n\n @mpltex.acs_decorator\n def myplot():\n # plot images by matplotlib ...\n\n # Save the image. Give a file name without extension.\n # You can also save figure outside your_plot if you like.\n fig.save_fig('/path/to/save/fig/figname')\n\n # Then use your_plot in a normal way.\n myplot()\n\nAnd it will create a plot ready for publishing in journals published by American Chemical Society (ACS).\n\n**Available Decorators**\n\n* ``mpltex.acs_decorator``: output EPS images for publishing in ACS (American Chemical Society).\n* ``mpltex.aps_decorator``: output EPS images for publishing in APS (American Physical Society).\n* ``mpltex.rsc_decorator``: output EPS images for publishing in RSC (Royal Society of Chemistry).\n* ``mpltex.presentation_decorator``: output PDF images for presentation slides (Keynote).\n* ``mpltex.web_decorator``: output PNG images for web pages.\n\n``mpltex`` also provides several helper functions to facilitate production of specific type of images.\nFollowing codes will produce a set of line arts with cycled line styles with the help of ``mpltex.linestyle_generator`` function.\nNote that since version 0.5, ``linestyles`` is a shorthand for ``linestyle_generator``.\n\n.. code:: python\n\n import matplotlib.pyplot as plt\n import mpltex\n\n @mpltex.acs_decorator\n def myplot():\n # ... # generate data x and y\n fig, ax = plt.subplots(111)\n\n # The default line style is iterating over\n # color, line, and marker with hollow types.\n linestyles = mpltex.linestyles()\n # equivalently\n # linestyles = mpltex.linestyle_generator()\n\n for i in range(number_of_lines):\n ax.plot(x[i], y[i], label=str(i), **next(linestyles)\n\n ax.locator_params(nbins=5) # limit the number of major ticks\n ax.legend(loc='best') # show legend in a best location\n fig.tight_layout(pad=0.1) # make layout as tight as possible\n fig.savefig('/path/to/save/fig/figname')\n\nContribute\n----------\n\nFork the project at `github.com `_ and file a pull request.\n\nLinks\n-----\n\n* `Yi-Xin Liu's personal academic website `_\n* `Development version at github.com `_\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/liuyxpp/mpltex", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "mpltex", "package_url": "https://pypi.org/project/mpltex/", "platform": "", "project_url": "https://pypi.org/project/mpltex/", "project_urls": { "Homepage": "https://github.com/liuyxpp/mpltex" }, "release_url": "https://pypi.org/project/mpltex/0.6.1/", "requires_dist": null, "requires_python": "", "summary": "mpltex is a python package for creating publication-quality plots using matplotlib.", "version": "0.6.1" }, "last_serial": 4350827, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "59f6160db086570ecb639ea493ae6950", "sha256": "30349ae2f9d1afde960e412af57e5a0f4b0eaf9fcff7f94eed377e76cf5f89be" }, "downloads": -1, "filename": "mpltex-0.1.tar.gz", "has_sig": false, "md5_digest": "59f6160db086570ecb639ea493ae6950", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7659, "upload_time": "2014-09-06T00:09:57", "url": "https://files.pythonhosted.org/packages/a5/40/1e3fded1402aaf49894689735815600d0918ca0e40d4f2d743ac5222365a/mpltex-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "b475b6fd2a0da667d02950449b90eee2", "sha256": "296d1550b06be60773365c6b00c03f461c1cb857c0fa099b5fd61db1333e4932" }, "downloads": -1, "filename": "mpltex-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b475b6fd2a0da667d02950449b90eee2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7624, "upload_time": "2014-09-06T00:16:20", "url": "https://files.pythonhosted.org/packages/bb/52/4a7b4b3c1d25a95fcdeb5ff4a626754805501dee4205249ab1effbf0b59e/mpltex-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "6ad3ab662d3d7e10acfbbe6496625651", "sha256": "6b49cf0f4bc3d7df83d7d67a70b3fddfcb5083d59135f0246d27e08cf2aab717" }, "downloads": -1, "filename": "mpltex-0.1.2.tar.gz", "has_sig": false, "md5_digest": "6ad3ab662d3d7e10acfbbe6496625651", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7624, "upload_time": "2014-09-06T01:49:36", "url": "https://files.pythonhosted.org/packages/1d/11/b777cfdd0b0e617cd0aa164cec39e12751cad99eb1da1529654b0ed68c35/mpltex-0.1.2.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "510648da2e29cbfc04dce58f80b0b905", "sha256": "60883f387d9d795321bd5bd6f65e4bf9e998988a718ba895b98e2f1179ded1e8" }, "downloads": -1, "filename": "mpltex-0.2.tar.gz", "has_sig": false, "md5_digest": "510648da2e29cbfc04dce58f80b0b905", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8149, "upload_time": "2014-09-07T05:49:42", "url": "https://files.pythonhosted.org/packages/ca/5e/62b72daa99ac3d9a1c2b319b6659f2b2be5de4e08044f44a9ed0f31fe37a/mpltex-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "ab325c71c0840fe29921681fac62af92", "sha256": "49743699249b82f7e192e7fb91a211614a03c1058afb8c44df159090f28e7b9d" }, "downloads": -1, "filename": "mpltex-0.2.1.tar.gz", "has_sig": false, "md5_digest": "ab325c71c0840fe29921681fac62af92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8821, "upload_time": "2014-09-10T00:32:08", "url": "https://files.pythonhosted.org/packages/74/30/023d05641391e0d2db5c7461ebddd9d3ee13b627ac26d7b1b9131cd50e0d/mpltex-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "29e37db227e2d15ebeaa8a3ab326371c", "sha256": "eb26a4f7ae5695d166285c9bfdc0c3499feafc962143d62f1f705bf759e85118" }, "downloads": -1, "filename": "mpltex-0.2.2.tar.gz", "has_sig": false, "md5_digest": "29e37db227e2d15ebeaa8a3ab326371c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8824, "upload_time": "2014-09-10T00:35:25", "url": "https://files.pythonhosted.org/packages/5a/82/8f0e6e48ae871d438d0934bde07fc48c5ad505d8be392ed4fb6ec126fd9d/mpltex-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "310a8b73dd08fa6b0a0f6f5146ae9e20", "sha256": "df376740004adf5844148e69eb8d358b62f8eba5790710b609415f6e70eaa791" }, "downloads": -1, "filename": "mpltex-0.2.3.tar.gz", "has_sig": false, "md5_digest": "310a8b73dd08fa6b0a0f6f5146ae9e20", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8857, "upload_time": "2014-09-10T00:43:46", "url": "https://files.pythonhosted.org/packages/63/53/6b819dae49cc3082a3a0e4d1d3d5d68b3c3dd2f4068e5c8e4a1d79150075/mpltex-0.2.3.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "a10c37de3eb14bad0652f8dc35693f56", "sha256": "5c786eac917f5237fe271624326700e3f94e8097e8e1eadd440fcf63bdb996a6" }, "downloads": -1, "filename": "mpltex-0.3.tar.gz", "has_sig": false, "md5_digest": "a10c37de3eb14bad0652f8dc35693f56", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9181, "upload_time": "2014-12-08T02:02:19", "url": "https://files.pythonhosted.org/packages/95/4b/5a8219ed849412cd9bcaf96568baa43cc074bb35dd7e2bcdb5191437cdf3/mpltex-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "c8d9a8e9ce9909ffb791e8cbab3c7d49", "sha256": "b733a4052e0ec59836caf12291bf3427641a4c5c27cf47df3b20ad935766cbad" }, "downloads": -1, "filename": "mpltex-0.3.1.tar.gz", "has_sig": false, "md5_digest": "c8d9a8e9ce9909ffb791e8cbab3c7d49", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9222, "upload_time": "2014-12-29T19:19:46", "url": "https://files.pythonhosted.org/packages/4b/cc/6b44d70592fa35c805d6a9a4d87034213c35c87aad4e2d2835060108a747/mpltex-0.3.1.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "859a26e86e4f2c902ba644a446c5b0dd", "sha256": "cb80015f944e79ad94b9831f4e2e89bce7ac7f10f5ee7832411ed2c8e83e8624" }, "downloads": -1, "filename": "mpltex-0.4.tar.gz", "has_sig": false, "md5_digest": "859a26e86e4f2c902ba644a446c5b0dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9365, "upload_time": "2015-05-03T06:45:35", "url": "https://files.pythonhosted.org/packages/f9/d9/c8d3aecfb114c39c19d491a54d594abd1fb01a780a638f8ce59ab404f2d1/mpltex-0.4.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "c20f210a0a64c4f29540d542766b18a0", "sha256": "76af9a4fa6b22fdfd67fb29a693c9818f8112bdf4c4c4f20d991c4c0e205636a" }, "downloads": -1, "filename": "mpltex-0.4.1.tar.gz", "has_sig": false, "md5_digest": "c20f210a0a64c4f29540d542766b18a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9606, "upload_time": "2016-12-02T06:15:39", "url": "https://files.pythonhosted.org/packages/ef/5d/d436ef4ff61fa0524fa0f179e890914c71e12fc68dd0e6306edd909cfd38/mpltex-0.4.1.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "08f586126aac8a80152750eb528e2b94", "sha256": "c7afe548fcb899f608ad8754c7f67a326785ff4b1a803abd53c7bee6e25678a4" }, "downloads": -1, "filename": "mpltex-0.5.1.tar.gz", "has_sig": false, "md5_digest": "08f586126aac8a80152750eb528e2b94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9205, "upload_time": "2017-10-15T07:31:04", "url": "https://files.pythonhosted.org/packages/86/4a/a8c84de688cd2e048b66812a23aca55533d95f13240cfc9c4d64ac5da80e/mpltex-0.5.1.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "067b9c130da3a18681dcb90f2ab48de7", "sha256": "f9e4feb1764be0058f29e74268eaef621e37f8f4e6c698a054a4119df3ccf46a" }, "downloads": -1, "filename": "mpltex-0.6.tar.gz", "has_sig": false, "md5_digest": "067b9c130da3a18681dcb90f2ab48de7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10277, "upload_time": "2018-08-23T08:25:35", "url": "https://files.pythonhosted.org/packages/f4/a4/9381c165776e63e4188899b07148f3ed576128855c4f61216471c3f70551/mpltex-0.6.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "784d57ed6a0a2b1ac0956151dd83b07b", "sha256": "aa04ce34d3ca5478fdfd0665a77f0f7a64b37cdaf9416fab0c7c8e04637d0823" }, "downloads": -1, "filename": "mpltex-0.6.1.tar.gz", "has_sig": false, "md5_digest": "784d57ed6a0a2b1ac0956151dd83b07b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10305, "upload_time": "2018-10-08T06:21:47", "url": "https://files.pythonhosted.org/packages/e0/89/bff48f5114fe8c657ca59a4471f4f4fa473ae4c1170fb20f4650c8949be4/mpltex-0.6.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "784d57ed6a0a2b1ac0956151dd83b07b", "sha256": "aa04ce34d3ca5478fdfd0665a77f0f7a64b37cdaf9416fab0c7c8e04637d0823" }, "downloads": -1, "filename": "mpltex-0.6.1.tar.gz", "has_sig": false, "md5_digest": "784d57ed6a0a2b1ac0956151dd83b07b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10305, "upload_time": "2018-10-08T06:21:47", "url": "https://files.pythonhosted.org/packages/e0/89/bff48f5114fe8c657ca59a4471f4f4fa473ae4c1170fb20f4650c8949be4/mpltex-0.6.1.tar.gz" } ] }