<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'>
<br>
### Example 2
```py
from animateplot import AnimatePlot as ap
import numpy as np
x = np.linspace(0,10,100)
def call(i,plt):
s = x[:i]
plt.xlim(x[0],x[-1])
plt.ylim(x[0]**2,x[-1]**2)
plt.plot(s,s**2)
return plt
animat = ap(x,call)
animat.render_cache()
animat.render_mp4(path_video="test_2.mp4",fps=15)
```
<video src='test_2.mp4'></video>
Raw data
{
"_id": null,
"home_page": "https://github.com/reinanbr/animatePlot",
"name": "animateplot",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "gif video plot",
"author": "Reinan Br",
"author_email": "slimchatuba@gmail.com",
"download_url": null,
"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\n<br>\n\n### Example 2\n\n```py\nfrom animateplot import AnimatePlot as ap\nimport numpy as np\n\nx = np.linspace(0,10,100)\n\ndef call(i,plt):\n s = x[:i]\n \n plt.xlim(x[0],x[-1])\n plt.ylim(x[0]**2,x[-1]**2)\n plt.plot(s,s**2)\n return plt\n\n\nanimat = ap(x,call)\nanimat.render_cache()\nanimat.render_mp4(path_video=\"test_2.mp4\",fps=15)\n\n```\n<video src='test_2.mp4'></video>\n",
"bugtrack_url": null,
"license": "BSD v3",
"summary": "Library for generate gif or video from plots",
"version": "0.4.10",
"project_urls": {
"Homepage": "https://github.com/reinanbr/animatePlot"
},
"split_keywords": [
"gif",
"video",
"plot"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "8cab164cd61fc75bfc0e9bdee89d4a748ca8a16726178c1d1ca53f84de148101",
"md5": "f965e5a3923c34a6da7e0b70bf828bde",
"sha256": "f3411eee56aac85009d84e335468f3a02ebd8ea192af178bc370d5247d276d99"
},
"downloads": -1,
"filename": "animateplot-0.4.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f965e5a3923c34a6da7e0b70bf828bde",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 21743,
"upload_time": "2025-10-23T13:25:18",
"upload_time_iso_8601": "2025-10-23T13:25:18.704628Z",
"url": "https://files.pythonhosted.org/packages/8c/ab/164cd61fc75bfc0e9bdee89d4a748ca8a16726178c1d1ca53f84de148101/animateplot-0.4.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-23 13:25:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "reinanbr",
"github_project": "animatePlot",
"github_not_found": true,
"lcname": "animateplot"
}