{ "info": { "author": "David O'Connor", "author_email": "david.alan.oconnor@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "Fplot: Function plots with less code\n====================================\n\nA thin wrapper for matplotlib\n\nFplot's goal is to provide simple syntax for plotting functions, with sensible\ndefaults. Matplotlib is powerful, but has awkward syntax, odd default display settings,\nand requires setting up data arrays manually. Making pretty function plots requires\nmultiple lines of code. Fplot aims to fix this; it's especially suited for visualizing\nfunctions when learning math.\n\nPython 3 only.\n\n\nIncluded functions\n------------------\n\n - plot: One input, one output.\n - parametric: One input, two or three outputs. If three, use a 3d graph.\n - contour: Two inputs, one output.\n - surface: Two inputs, one output.\n - vector: Two inputs, two outputs.\n - vector3d: Three inputs, three outputs.\n - polar: One input (angle), one output (radius)\n\nBonus functions\n---------------\n\n - plot2: Smoothed API for matplotlib 2d plotting that works properly in Jupyter notebooks. ie syntax like plt.plot, which doesn't work properly in Jupyter. Arguments: (args, marker='b-', linewidth: float=2.0, grid: bool=False, color: str=None, title: str=None, equal_aspect: bool=False, style: str=None, show: bool=True)\n - imshow: Like plot2, but as a replacement for plt.imshow.\n\n\n\nInstallation\n------------\n\n.. code-block:: python\n\n pip install fplot\n\n\nBasic documentation\n-------------------\n\n`Examples\n`_\n\n\nThe only required arguments for fplot funcs are the function to plot, and the\nmin and max ranges. Example optional keyword arguments are shown. Example output\nis shown in the link above.\n\nFor most plotting functions, you can plot multiple functions at once by passing\na list or tuple as the first argument.\n\nShow a graph (1 input, 1 output)\n\n.. code-block:: python\n\n f = lambda x: x**2 + 2\n fplot.plot(f, -10, 10, title='Hello world')\n\n\nShow a contour plot (2 inputs, 1 output)\n\n.. code-block:: python\n\n g = lambda x, y: x**2 + y**2 + 10\n fplot.contour(g, -10, 10, equal_aspect=True)\n\n\nShow a surface plot (2 inputs, 1 output)\n\n.. code-block:: python\n\n g = lambda x, y: x**2 + y**2 + 10\n fplot.surface(g, -10, 10)\n\n\nShow a 2d parametric plot (1 input, 2 outputs)\n\n.. code-block:: python\n\n h = lambda t: (np.sin(t), np.cos(t))\n fplot.parametric(h, 0, \u00cf\u201e, equal_aspect=True, color='m')\n\n\nShow a 3d parametric plot (1 input, 3 outputs)\n\n.. code-block:: python\n\n i = lambda t: (np.sin(t), np.cos(t), t**2)\n fplot.parametric(i, 0, 20, color='red')\n\n\nShow a 2d vector plot (2 inputs, 2 outputs)\n\n.. code-block:: python\n\n f = lambda x, y: (x**2 + y, y**2 * cos(x))\n fplot.vector(f, -10, 10, stream=False)\n\n\nShow a 3d vector plot (3 inputs, 3 outputs)\n\n.. code-block:: python\n\n f = lambda x, y, z: (x**2, y**2, z)\n fplot.vector3d(f, -10, 10)\n\n\nShow a 2d polar plot (1 input, 1 output)\n\n.. code-block:: python\n\n f = lambda theta: np.sin(3*theta)\n fplot.polar(f, 0, tau, color='purple')\n\n\nExample of an interactive plot with Ipython widgets in Jupyter notebook\n\n.. code-block:: python\n\n from numpy import sin, cos\n from ipywidgets import interactive\n import fplot\n\n def make_plot(a, b):\n f = lambda t: (a*sin(t), a*cos(t), b*t)\n ax = fplot.parametric(f, -20, 20, show=False)\n\n ax.set_xlim3d(-3, 3)\n ax.set_ylim3d(-3, 3)\n ax.set_zlim3d(-3, 3)\n plt.show()\n\n interactive_plot = interactive(make_plot, a=(-2.0, 2.0), b=(-3.0, 3.0))\n interactive_plot\n\n\n\nOptional arguments:\n - show: Defaults to True. Instantly display the plot. If False, return the axis object.\n - resolution: Controls how many points to draw, based on function input. Higher resolution\n allows more zooming, but may lower performance.\n - color: (ie line color)\n - linewidth: line width.\n - y_min and y_max: (only for 2d input)\n - theta_min and theta_max (only for polar plots)\n - style: (ie from plt.use.style())\n - grid: defaults to True\n - equal_aspect: defaults to False\n - title: Shown at the top of the plot\n - stream: vector plot only; show a stream plot if True\n - contours: surface plot only; show contour plots along each axis if True\n - num_contours: contour plot only; set number of contour lines to draw. Defaults to 10.\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/David-OConnor/fplot", "keywords": "plot,matplotlib,plotting,functions,jupyter", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "Fplot", "package_url": "https://pypi.org/project/Fplot/", "platform": "", "project_url": "https://pypi.org/project/Fplot/", "project_urls": { "Homepage": "https://github.com/David-OConnor/fplot" }, "release_url": "https://pypi.org/project/Fplot/0.2.3/", "requires_dist": [ "matplotlib", "numpy" ], "requires_python": "", "summary": "Plot functions with simple syntax", "version": "0.2.3" }, "last_serial": 3848684, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e23e65bc0c81e825fe9581a38e884c60", "sha256": "d0ad1b15cdbc4decdba47ee1090b93c48ddacf3d0deb3cff50fcbedac181c27e" }, "downloads": -1, "filename": "Fplot-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "e23e65bc0c81e825fe9581a38e884c60", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6024, "upload_time": "2016-07-23T22:31:27", "url": "https://files.pythonhosted.org/packages/3e/a7/53219d17b00085e04bf44ecc9c89b05c454f1c6fc7b092584576d607fdb8/Fplot-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3ee91f3e4c0f6446551f056972f39a42", "sha256": "618bd010dc0c24153ccd796771b89dc0e9be372220ceed16953cb934a060e2fb" }, "downloads": -1, "filename": "Fplot-0.1.zip", "has_sig": false, "md5_digest": "3ee91f3e4c0f6446551f056972f39a42", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7532, "upload_time": "2016-07-24T10:55:50", "url": "https://files.pythonhosted.org/packages/99/05/cdda84fd2d1a903cf2cee013ab10c3741fa072e48b2e22bfded369340848/Fplot-0.1.zip" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "7a31bcd9a6b0ed3f3b3e08e98605e013", "sha256": "751219a14c9818233b42a7cce673cfe4ca90e295eccbde822f5c2e9101f797ec" }, "downloads": -1, "filename": "Fplot-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "7a31bcd9a6b0ed3f3b3e08e98605e013", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8050, "upload_time": "2016-08-17T13:14:46", "url": "https://files.pythonhosted.org/packages/b9/e2/b86493c1c423d4aa2b812af3efaa52bcf5d2c9508c95db1251ca2e3b726d/Fplot-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e4203aa64ad6a0ee6f4338e47912f1cf", "sha256": "ba80b2793566e1b1528b750425708011522a35a8b8f36546eb14f7b936bf1f6f" }, "downloads": -1, "filename": "Fplot-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e4203aa64ad6a0ee6f4338e47912f1cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5910, "upload_time": "2016-08-17T12:50:33", "url": "https://files.pythonhosted.org/packages/8e/8c/161418eb7b48e5ced694bd84de66068b6deb3fb6030f1ac27f228ed5609e/Fplot-0.1.1.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "0f2a7cf3ead4818922a8f27dee8f8bf4", "sha256": "8f97234a25351aeafa461372054bcd9f514068c79492c6b1770d721c3f9f2c15" }, "downloads": -1, "filename": "fplot-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "0f2a7cf3ead4818922a8f27dee8f8bf4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9758, "upload_time": "2017-09-15T13:25:03", "url": "https://files.pythonhosted.org/packages/35/19/61f5ff2cfce0b54b60545562cf80a49f3301368e88445575cabd72c57c9a/fplot-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6aac5fc957b5a8ff32ba878d4a6cd72d", "sha256": "ff92c80bf8f973be1d7a37bb25453e15a2805d402123ff074cb2ecfeaab26031" }, "downloads": -1, "filename": "fplot-0.2.1.tar.gz", "has_sig": false, "md5_digest": "6aac5fc957b5a8ff32ba878d4a6cd72d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6739, "upload_time": "2017-09-15T13:25:05", "url": "https://files.pythonhosted.org/packages/4b/7b/93141ad58700b353a7f0d3febecbc95f22ff044a37af756d42408936225a/fplot-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "aa85c61bda8ac008eb107d164d122e25", "sha256": "70979290f7e1f7fdf94e9da174b8dd4c59b7906510c8d61829ae232ce0b9ee21" }, "downloads": -1, "filename": "fplot-0.2.2-py3-none-any.whl", "has_sig": false, "md5_digest": "aa85c61bda8ac008eb107d164d122e25", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9753, "upload_time": "2017-09-15T13:31:14", "url": "https://files.pythonhosted.org/packages/f9/f1/5900cd92034e0d65018f7e9c13f87bb23b8a48d8165911043d6ecec559f4/fplot-0.2.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4d640c72ee5f9af75e62225978816ddb", "sha256": "8866d301b8a59e9d454da16e3117604a1fbefa0e47f574d18135a4d42328e0db" }, "downloads": -1, "filename": "fplot-0.2.2.tar.gz", "has_sig": false, "md5_digest": "4d640c72ee5f9af75e62225978816ddb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6738, "upload_time": "2017-09-15T13:31:15", "url": "https://files.pythonhosted.org/packages/b7/88/174af7031b09988d9230b319389458b8ad4d10707c6f401ed7eeae717d68/fplot-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "234ad17b36bf07c8af3e9b922be6de70", "sha256": "06628e9be7ccd5ccea4d09eab50883cba33368bc08a00cd20bb7c104dc136800" }, "downloads": -1, "filename": "fplot-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "234ad17b36bf07c8af3e9b922be6de70", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11002, "upload_time": "2018-05-09T20:16:37", "url": "https://files.pythonhosted.org/packages/f7/e6/726bfff29fda15a511f531335a253567b91f58e0a8089bcb731866fb99bd/fplot-0.2.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d53f61b3f2484966aacb34c48ed0ff25", "sha256": "3d2c78c9882223a196e1210d1dd1be82398c72a087b37950acf77ead29cdb497" }, "downloads": -1, "filename": "fplot-0.2.3.tar.gz", "has_sig": false, "md5_digest": "d53f61b3f2484966aacb34c48ed0ff25", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7726, "upload_time": "2018-05-09T20:16:38", "url": "https://files.pythonhosted.org/packages/71/ec/1251b6ea76876cad494b61c126205556dc1b17c12c578e3c6ce7b84b04a4/fplot-0.2.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "234ad17b36bf07c8af3e9b922be6de70", "sha256": "06628e9be7ccd5ccea4d09eab50883cba33368bc08a00cd20bb7c104dc136800" }, "downloads": -1, "filename": "fplot-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "234ad17b36bf07c8af3e9b922be6de70", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11002, "upload_time": "2018-05-09T20:16:37", "url": "https://files.pythonhosted.org/packages/f7/e6/726bfff29fda15a511f531335a253567b91f58e0a8089bcb731866fb99bd/fplot-0.2.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d53f61b3f2484966aacb34c48ed0ff25", "sha256": "3d2c78c9882223a196e1210d1dd1be82398c72a087b37950acf77ead29cdb497" }, "downloads": -1, "filename": "fplot-0.2.3.tar.gz", "has_sig": false, "md5_digest": "d53f61b3f2484966aacb34c48ed0ff25", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7726, "upload_time": "2018-05-09T20:16:38", "url": "https://files.pythonhosted.org/packages/71/ec/1251b6ea76876cad494b61c126205556dc1b17c12c578e3c6ce7b84b04a4/fplot-0.2.3.tar.gz" } ] }