Skip to content

complex2019learning/pynimate

Repository files navigation

Pynimate

PyPITestsLicenseCode style: black

Python package for statistical data animations.

Installation

with pip

Pynimate is avaialbe at pypi

pip install pynimate

How to use

Pynimate expects pandas dataframe formatted in this manner:
Where the time column is set to index.

time, col1, col2, col320121212013112201421.5320152.523.5

Bar Chart Example

frommatplotlibimportpyplotaspltimportpandasaspdimportpynimateasnimdf=pd.DataFrame({"time": ["1960-01-01", "1961-01-01", "1962-01-01"], "Afghanistan": [1, 2, 3], "Angola": [2, 3, 4], "Albania": [1, 2, 5], "USA": [5, 3, 4], "Argentina": [1, 4, 5], } ).set_index("time") cnv=nim.Canvas() bar=nim.Barplot(df, "%Y-%m-%d", "2d") bar.set_time(callback=lambdai, datafier: datafier.data.index[i].year) cnv.add_plot(bar) cnv.animate() plt.show()

Documentation

The official documentation : https://julkaar9.github.io/pynimate/

License

MIT License (MIT)

About

Python package for statistical data animations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python100.0%