animateplot


Nameanimateplot JSON
Version 0.4.1.2 PyPI version JSON
download
home_pagehttps://github.com/reinanbr/dreams
SummaryLibrary for generate gif or video from plots
upload_time2024-03-16 00:32:09
maintainer
docs_urlNone
authorReinan Br
requires_python
licenseBSD v3
keywords gif video plot
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align='center'>

<img height='200'  width='200' src='https://raw.githubusercontent.com/reinanbr/animatPlot/main/imgs/logo.png'>
<h2>AnimatePlot</h2>

<p> Making video from plot's</p>
<a href='#'><img alt="CodeFactor Grade" src="https://img.shields.io/codefactor/grade/github/reinanbr/animatPlot?logo=codefactor">
<!-- </a><img alt="CircleCI" src="https://img.shields.io/circleci/build/github/reinanbr/animatPlot"> -->
<img alt="Code Climate maintainability" src="https://img.shields.io/codeclimate/maintainability-percentage/reinanbr/animatPlot">

<br/>
<a href='https://pypi.org/project/animateplot/'><img src='https://img.shields.io/pypi/v/animateplot'></a>
<a href='#'><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/animateplot"></a>
<br/>
<img alt="PyPI - License" src="https://img.shields.io/pypi/l/animateplot?color=orange">



</div>



### Examples 


#### sigmoid function

```py
import matplotlib.pyplot as plt
from animateplot import AnimatePlot as Ap
import numpy as np
plt.style.use('seaborn')


def sig(x):
  return 1/(1+np.exp(-x))


x = np.linspace(-10,10,100)
y = sig(x)


def call_plt(it,plt):
  plt.plot(x[:it],y[:it])
  plt.title('sigmoid function')
  plt.xlabel('x')
  plt.ylabel('y')
  plt.xlim(-10,10)
  plt.ylim(0,1)
  return plt



anime = Ap(x,callback_plot=callback_plot)

anime.render_cache()
anime.render_mp4('sigmoid.mp4',fps=15)

```

results:

<br/>

<img src='https://github.com/reinanbr/animatPlot/blob/main/imgs/plot%20(9).gif?raw=true'>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/reinanbr/dreams",
    "name": "animateplot",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "gif video plot",
    "author": "Reinan Br",
    "author_email": "slimchatuba@gmail.com",
    "download_url": "",
    "platform": null,
    "description": "<div align='center'>\n\n<img height='200'  width='200' src='https://raw.githubusercontent.com/reinanbr/animatPlot/main/imgs/logo.png'>\n<h2>AnimatePlot</h2>\n\n<p> Making video from plot's</p>\n<a href='#'><img alt=\"CodeFactor Grade\" src=\"https://img.shields.io/codefactor/grade/github/reinanbr/animatPlot?logo=codefactor\">\n<!-- </a><img alt=\"CircleCI\" src=\"https://img.shields.io/circleci/build/github/reinanbr/animatPlot\"> -->\n<img alt=\"Code Climate maintainability\" src=\"https://img.shields.io/codeclimate/maintainability-percentage/reinanbr/animatPlot\">\n\n<br/>\n<a href='https://pypi.org/project/animateplot/'><img src='https://img.shields.io/pypi/v/animateplot'></a>\n<a href='#'><img alt=\"PyPI - Downloads\" src=\"https://img.shields.io/pypi/dm/animateplot\"></a>\n<br/>\n<img alt=\"PyPI - License\" src=\"https://img.shields.io/pypi/l/animateplot?color=orange\">\n\n\n\n</div>\n\n\n\n### Examples \n\n\n#### sigmoid function\n\n```py\nimport matplotlib.pyplot as plt\nfrom animateplot import AnimatePlot as Ap\nimport numpy as np\nplt.style.use('seaborn')\n\n\ndef sig(x):\n  return 1/(1+np.exp(-x))\n\n\nx = np.linspace(-10,10,100)\ny = sig(x)\n\n\ndef call_plt(it,plt):\n  plt.plot(x[:it],y[:it])\n  plt.title('sigmoid function')\n  plt.xlabel('x')\n  plt.ylabel('y')\n  plt.xlim(-10,10)\n  plt.ylim(0,1)\n  return plt\n\n\n\nanime = Ap(x,callback_plot=callback_plot)\n\nanime.render_cache()\nanime.render_mp4('sigmoid.mp4',fps=15)\n\n```\n\nresults:\n\n<br/>\n\n<img src='https://github.com/reinanbr/animatPlot/blob/main/imgs/plot%20(9).gif?raw=true'>\n",
    "bugtrack_url": null,
    "license": "BSD v3",
    "summary": "Library for generate gif or video from plots",
    "version": "0.4.1.2",
    "project_urls": {
        "Homepage": "https://github.com/reinanbr/dreams"
    },
    "split_keywords": [
        "gif",
        "video",
        "plot"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b1a28cbb49f597c3818f9ee93c0c0fed22d3120412cc177c50a4c5d323fd670a",
                "md5": "d44cfa72489ce9c5efcb38609b584eba",
                "sha256": "3fa324f6c878f2b3993cc915d325a2ab21c77931147b5865872516aeda38b544"
            },
            "downloads": -1,
            "filename": "animateplot-0.4.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d44cfa72489ce9c5efcb38609b584eba",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 18524,
            "upload_time": "2024-03-16T00:32:09",
            "upload_time_iso_8601": "2024-03-16T00:32:09.636910Z",
            "url": "https://files.pythonhosted.org/packages/b1/a2/8cbb49f597c3818f9ee93c0c0fed22d3120412cc177c50a4c5d323fd670a/animateplot-0.4.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-16 00:32:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "reinanbr",
    "github_project": "dreams",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "circle": true,
    "lcname": "animateplot"
}
        
Elapsed time: 0.22804s