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:
Example 2
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)
Metadata
Release files for animateplot 0.4.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| animateplot-0.4.10-py3-none-any.whl | Python 3 | none | any | Details |
Release files / animateplot-0.4.10-py3-none-any.whl
| Download URL | animateplot-0.4.10-py3-none-any.whl |
|---|---|
| Size | 21.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3411eee56aac85009d84e335468f3a02ebd8ea192af178bc370d5247d276d99
|
|
BLAKE2b-256 checksum How to use checksums |
8cab164cd61fc75bfc0e9bdee89d4a748ca8a16726178c1d1ca53f84de148101
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.0
|
Security for animateplot 0.4.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.