Skip to main content

Library for generate gif or video from plots

Project description

AnimatePlot

Making video from plot's

CodeFactor Grade Code Climate maintainability
PyPI - Downloads
PyPI - License

Examples

sigmoid function

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:


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

animateplot-0.4.2-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file animateplot-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: animateplot-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.9

File hashes

Hashes for animateplot-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a5149a8341c1aed0a36edcff8ae6039dd6ea61d7a225bd8518cd7d148c87edf4
MD5 0a217e248b26ba0b8e5a5ccff97f6ca2
BLAKE2b-256 343a31358611eef25ef0276a9cd80244499c60c5d42a40f7d35c4d0c315f4b7a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page