animateplot-0.2.1
توضیحات
Library for generate gif or video from plots
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | animateplot-0.2.1 |
| نام | animateplot |
| نسخه کتابخانه | 0.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Reinan Br |
| ایمیل نویسنده | slimchatuba@gmail.com |
| آدرس صفحه اصلی | https://github.com/reinanbr/dreams |
| آدرس اینترنتی | https://pypi.org/project/animateplot/ |
| مجوز | BSD v3 |
### Examples
coding:
```py
import numpy as np
import matplotlib.pyplot as ply
from animatplot import AnimatPlot
x = np.linspace(-10,10,200)
np.seterr(all="ignore")
def sig(x):
return 1/(1+np.exp(-x))
def call_plt(plt,y,x):
plt.style.use('seaborn')
plt.plot(x,y)
plt.title('sigmoid function')
plt.xlabel('x')
plt.ylabel('y')
plt.xlim(-10,10)
plt.ylim(0,1)
return plt
anime = AnimatPlot(sig,x,callback_plot=call_plt)
anime.render_cache()
```
```sh
logs:
ended saved cache images!
[200 images saved in 30.9s | speed: 6.5/img/s | ping: 15.5ms]
[Figure size 576x396 with 0 Axes]
```
saving the files from cache:
```py
anime.render_gif(path='plot.gif',fps=8.7)
```
```sh
logs: plot.gif saved in 6.8s
```
<img src='https://github.com/reinanbr/animatPlot/blob/main/imgs/plot%20(9).gif?raw=true'>
نیازمندی
| مقدار | نام |
|---|---|
| - | matplotlib |
| - | numpy |
| - | imageio |
| - | opencv-python |
نحوه نصب
نصب پکیج whl animateplot-0.2.1:
pip install animateplot-0.2.1.whl
نصب پکیج tar.gz animateplot-0.2.1:
pip install animateplot-0.2.1.tar.gz