An data visualization library to generate dynamic plots
Project description
Datavistaflow
[This python package is under development]
Installation
Install by typing the following command in the terminal
pip install datavistaflow
Usage
- Line plot animation
A line graph plotter to create animated graphical visuals.
Parameters:
input : list of tuples containing data to be plotted as a line graph. Each tuple represents a line graph. ex: [(x1_data, y1_data), (x1_data, y1_data)]
plot_style (optional): defines the plot's style.
xlim (optional): defines the x axis limit
ylim (optional): defines the y axis limit
title (optional): Title of the plot
xlabel (optional): defines the x axis label
ylabel (optional): defines the y axis label
n_frames (optional): total number of frames in the animation
frame_interval (optional): time interval between two consecutive frames in milli seconds. Default: 100ms
save (optional): save animation as a GIF
from datavistaflow import plot_line_animation
y1 = [10,20,30,25,60,70,30,12,155,245,223,123,454,22,455,2,22,31]
x1 = list(range(len(y1)))
y2 = [12,-23,31,-23,-62,72,-32]
x2 = list(range(len(y2)))
plot_line_animation(input = [(x1,y1),(x2,y2)], n_frames = len(x1), ylim=[-100,500], xlim=[0,20], xlabel = 'x axis', ylabel = 'y axis', title= 'Test', legend_label= ['y1', 'y2'], plot_style = 'ggplot', save = True, save_animation_name='line_test_animation.gif')
- Scatter plot animation
A scatter graph plotter to create animated graphical visuals.
Parameters:
input : list of tuples containing data to be plotted as a line graph. Each tuple represents a line graph. ex: [(x1_data, y1_data), (x1_data, y1_data)]
plot_style (optional): defines the plot's style.
xlim (optional): defines the x axis limit
ylim (optional): defines the y axis limit
title (optional): Title of the plot
xlabel (optional): defines the x axis label
ylabel (optional): defines the y axis label
n_frames (optional): total number of frames in the animation
frame_interval (optional): time interval between two consecutive frames in milli seconds. Default: 100ms
save (optional): save animation as a GIF
from datavistaflow import plot_scatter_animation
y1 = [10,20,30,25,60,70,30,12,155,245,223,123,454,22,455,2,22,31]
x1 = list(range(len(y1)))
y2 = [12,-23,31,-23,-62,72,-32]
x2 = list(range(len(y2)))
plot_scatter_animation(input = [(x1,y1),(x2,y2)], n_frames = len(x1), ylim=[-100,500], xlim=[0,20], xlabel = 'x axis', ylabel = 'y axis', title= 'Test', legend_label= ['y1', 'y2'], plot_style = 'ggplot', save = True, save_animation_name='line_test_animation.gif')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datavistaflow-0.0.16.tar.gz.
File metadata
- Download URL: datavistaflow-0.0.16.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a50c81bf3ac915831e7ee19cd66ce834815cbff2dc13b373bc513faf8e688f31
|
|
| MD5 |
1367910184b767d1abfdd32f98ed9b39
|
|
| BLAKE2b-256 |
510b0eed1c452f26c2e6adaf3976e870ddeb466bed02097a52bd79af831d78e0
|
File details
Details for the file datavistaflow-0.0.16-py3-none-any.whl.
File metadata
- Download URL: datavistaflow-0.0.16-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60a23f9a131fe21bb7317c603c852e9bd836ab79d82766932ea36c4c57d33943
|
|
| MD5 |
6cb5449af514b5ee32124bb8642f5efc
|
|
| BLAKE2b-256 |
2f8ab66eb7618015c2607bed0dcfe3fbade7a148e3fa94337f768f4e4656cb15
|