{ "info": { "author": "Hugo Sadok", "author_email": "hugo@sadok.com.br", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Science/Research", "License :: OSI Approved :: ISC License (ISCL)", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Scientific/Engineering :: Visualization" ], "description": "=======\npubplot\n=======\n\n.. image:: https://img.shields.io/pypi/v/pubplot.svg\n :target: https://pypi.python.org/pypi/pubplot\n :alt: PyPI version\n\n.. image:: https://travis-ci.com/hsadok/pubplot.svg?token=WbvxSoxYCEXuq2yHcffB&branch=master\n :target: https://travis-ci.com/hsadok/pubplot\n :alt: Build Status\n\n.. image:: https://readthedocs.org/projects/pubplot/badge/?version=latest\n :target: https://pubplot.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n.. content-start\n\n**pubplot** allows you to create publication quality plots that fit elegantly\nin your LaTeX document.\n\nMain Features\n-------------\n- **Make plots that match the LaTeX style you are using.** Automatically adjust\n plot sizes to fit in a column (or in a page) of the document. Detect text\n sizes in the LaTeX document and ensures that texts inside plots use the same\n size as captions or other predefined text size (*e.g.*, ``\\footnotesize``).\n- **Document-level styles.** Apply styles to a document -- instead of a global\n configuration. This allows you to use multiple documents with different\n styles at the same time. Moreover, you can easily reuse your style across\n different documents.\n\nUsage\n-----\nStart creating a document matching your LaTeX documentclass:\n\n>>> from pubplot import Document\n>>> from pubplot.document_classes import acm_sigconf\n>>> doc = Document(acm_sigconf)\n\nNow you can use your newly created ``doc`` to make plots that fit well in an\n`ACM conference paper `_.\n\n>>> fig, ax = doc.subfigures()\n>>> ax.plot(range(11), range(11))\n>>> fig.save('plot_name')\n\nThis will create two files ``plot_name.pdf`` and ``plot_name.pgf``.\n\nTo include the generated pgf plot in your LaTeX document, make sure to include\nthe folowing line your document preamble:\n\n.. code:: latex\n\n \\usepackage{pgf}\n\nThen, include the image using the following line (usually inside a figure environment):\n\n.. code:: latex\n\n \\input{plot_name.pgf}\n\n.. image:: https://raw.githubusercontent.com/hsadok/pubplot/master/docs/images/example1-short.png\n :align: center\n :alt: plot in a LaTeX document\n\nIf you are familiar with matplotlib you will have no problem using pubplot. In \nthe example above, ``fig`` should support all methods from matplotlib's Figure\nclass. The same is true for ``ax``, which works like ``Axes``.\n\nFor further help, check the examples_ and `the rest of the documentation`_.\n\n.. _examples: https://github.com/hsadok/pubplot/tree/master/examples\n.. _`the rest of the documentation`: http://pubplot.readthedocs.org/en/latest/\n\nInstalling\n----------\n\nUbuntu/Debian\n.............\n\nMake sure you have an updated LaTeX installation::\n\n sudo apt update\n sudo apt install texlive-base texlive-latex-recommended texlive-fonts-recommended texlive-publishers texlive-latex-extra\n\nNow install ``pubplot`` using ``pip``::\n\n pip install pubplot\n\nmacOS\n.....\n\nYou need a basic LaTeX installation. An easy way of getting LaTeX on a mac is\nthrough `homebrew cask `_ (although any other form\nof getting mactex should be fine)::\n\n brew cask install mactex\n\nNow install ``pubplot`` using ``pip``::\n\n pip install pubplot\n\n**Optional but recommended.** Matplotlib works better if you install some\ndependencies, if you use `homebrew `_ that can be accomplished\nwith::\n\n brew install libpng freetype pkg-config fontconfig", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/hsadok/pubplot", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "matplotlib,latex,pgf", "license": "ISC", "maintainer": "", "maintainer_email": "", "name": "pubplot", "package_url": "https://pypi.org/project/pubplot/", "platform": "", "project_url": "https://pypi.org/project/pubplot/", "project_urls": { "Download": "https://github.com/hsadok/pubplot" }, "release_url": "https://pypi.org/project/pubplot/0.2.4/", "requires_dist": null, "requires_python": "", "summary": "Seamless LaTeX and Matplotlib integration for publication plots", "version": "0.2.4" }, "last_serial": 5141923, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "28ab2f8dd929799fc969f0a4a527640f", "sha256": "3aa65a9a203ebee2b42faa5a290bdbcb3756c663f1f23ab7ab8c6ca3832f21c0" }, "downloads": -1, "filename": "pubplot-0.1.tar.gz", "has_sig": false, "md5_digest": "28ab2f8dd929799fc969f0a4a527640f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7181, "upload_time": "2017-10-07T23:43:09", "url": "https://files.pythonhosted.org/packages/88/ba/4b89066d933bf25b139167da623100a1d2feccd49bd44cf90ac4d07ba16f/pubplot-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "f366c8d46a6ba8e526ed28d6f7795486", "sha256": "c473a0b9aba32bc9ef77e9d575357d4970f0c902cdc4c0d49c9ebb3fe886a682" }, "downloads": -1, "filename": "pubplot-0.1.1.tar.gz", "has_sig": false, "md5_digest": "f366c8d46a6ba8e526ed28d6f7795486", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8698, "upload_time": "2017-12-05T20:55:35", "url": "https://files.pythonhosted.org/packages/e1/ad/ba689498a51c49b9632eaadaf0bdab219c6f64b9765c52b5a515d350bca2/pubplot-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "85de45859b71b962b24c38fd2beadba0", "sha256": "33eea1ad28a82fccab57088ef1e1b72a104939778cd58696a953cc3ce347daa9" }, "downloads": -1, "filename": "pubplot-0.1.2.tar.gz", "has_sig": false, "md5_digest": "85de45859b71b962b24c38fd2beadba0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9161, "upload_time": "2018-03-27T14:16:57", "url": "https://files.pythonhosted.org/packages/71/fd/4d15e8fe1b1b5ea16107af2939137802f50eb3311aa0d7cc3148e4ff64c0/pubplot-0.1.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "90dd31f302838021a8ec512f460b5385", "sha256": "aedb10e3307ff83dd78975cfe863b57fedf4bebc905e8f31178e9f39510ed9d2" }, "downloads": -1, "filename": "pubplot-0.2.3.tar.gz", "has_sig": false, "md5_digest": "90dd31f302838021a8ec512f460b5385", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9325, "upload_time": "2019-04-14T02:20:36", "url": "https://files.pythonhosted.org/packages/f2/84/29894f645381e8ff37a1887ef87b86469d970fc79a2525b8c87838266480/pubplot-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "37e28fde19ac3a86b4d861fbe69417c3", "sha256": "2c244dda4ea5a10b2f2bcfd395a9ed3eda603ffd9d11c26c1c58ba7648cd5a0e" }, "downloads": -1, "filename": "pubplot-0.2.4.tar.gz", "has_sig": false, "md5_digest": "37e28fde19ac3a86b4d861fbe69417c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10062, "upload_time": "2019-04-14T20:56:35", "url": "https://files.pythonhosted.org/packages/e7/ea/a3e75f091d00ecc16d63d7295babe3e8f9ecebd012142fa034cf33d9236e/pubplot-0.2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "37e28fde19ac3a86b4d861fbe69417c3", "sha256": "2c244dda4ea5a10b2f2bcfd395a9ed3eda603ffd9d11c26c1c58ba7648cd5a0e" }, "downloads": -1, "filename": "pubplot-0.2.4.tar.gz", "has_sig": false, "md5_digest": "37e28fde19ac3a86b4d861fbe69417c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10062, "upload_time": "2019-04-14T20:56:35", "url": "https://files.pythonhosted.org/packages/e7/ea/a3e75f091d00ecc16d63d7295babe3e8f9ecebd012142fa034cf33d9236e/pubplot-0.2.4.tar.gz" } ] }