animateplot


Nameanimateplot JSON
Version 0.4.2 PyPI version JSON
download
home_pagehttps://github.com/reinanbr/dreams
SummaryLibrary for generate gif or video from plots
upload_time2024-11-09 23:25:17
maintainerNone
docs_urlNone
authorReinan Br
requires_pythonNone
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": null,
    "docs_url": null,
    "requires_python": null,
    "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",
    "bugtrack_url": null,
    "license": "BSD v3",
    "summary": "Library for generate gif or video from plots",
    "version": "0.4.2",
    "project_urls": {
        "Homepage": "https://github.com/reinanbr/dreams"
    },
    "split_keywords": [
        "gif",
        "video",
        "plot"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "343a31358611eef25ef0276a9cd80244499c60c5d42a40f7d35c4d0c315f4b7a",
                "md5": "0a217e248b26ba0b8e5a5ccff97f6ca2",
                "sha256": "a5149a8341c1aed0a36edcff8ae6039dd6ea61d7a225bd8518cd7d148c87edf4"
            },
            "downloads": -1,
            "filename": "animateplot-0.4.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0a217e248b26ba0b8e5a5ccff97f6ca2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 18526,
            "upload_time": "2024-11-09T23:25:17",
            "upload_time_iso_8601": "2024-11-09T23:25:17.069889Z",
            "url": "https://files.pythonhosted.org/packages/34/3a/31358611eef25ef0276a9cd80244499c60c5d42a40f7d35c4d0c315f4b7a/animateplot-0.4.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-09 23:25:17",
    "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.41335s