Skip to main content

GIFgraph provides animated data visuals in the form of GIFs.

Project description

Version: 0.1.2 || Author: Henry Taylor || Email: henrysrtaylor@gmail.com


How to install:

You can install with PyPi from your command terminal:

pip install GIFgraph

How To Use:

GIFgraph is a simple libary to help create animated data driven visuals.

The library was created and imagined to be used within single cells as part of a data science/ analytics solution and therefore works best in conjunction with Jupyter notebooks.

Version 0.1.2 includes support for four types of chart: scatter (GG_scatter), pie (GG_pie), bar (GG_bar), and line (GG_line). Upon calling these functions with appropriate arguments, a window will appear displaying the animation. A user can find these animations, along with individual frames on their desktop (or a user specified path) under GIfgraph. All arguments are specified for each function in the following section.

Please note: all testing is performed on Windows and therefore functionality may not be fully supported for Mac and Linux systems.

Arguments:

Arguments for each functioin can be found here, and also accessed within code by calling help(function).

GG_bar:

Parameters: 
            x - x-axis data.
            y - y-axis data.
            xname - x-axis name.
            yname - y-axis name.
            name - Title of GIF.
            step - How many data points to be plotted per frame.
            size - Size of GIF.
            dpi - Dots Per Inch.
            xrotation - Rotation of x-axis.
            milsec - miliseconds between each frame.
            loop - Loop type, 0 is infinite, loop > 0 sets loop for that amount. This only applies to saved GIF. If show_GIF=True then GIF that displays will be infinite. 
            file_path - Folder where file structure will be created.
            show_GIF - Bool, True or False.

GG_line:

Parameters: 
            x - x-axis data.
            y - y-axis data.
            xname - x-axis name.
            yname - y-axis name.
            name - Title of GIF.
            step - How many data points to be plotted per frame.
            size - Size of GIF.
            dpi - Dots Per Inch.
            xrotation - Rotation of x-axis.
            milsec - miliseconds between each frame.
            loop - Loop type, 0 is infinite, loop > 0 sets loop for that amount. This only applies to saved GIF. If show_GIF=True then GIF that displays will be infinite. 
            file_path - Folder where file structure will be created.
            show_GIF - Bool, True or False.

GG_scatter:

Parameters: 
            x - x-axis data.
            y - y-axis data.
            xname - x-axis name.
            yname - y-axis name.
            name - Title of GIF.
            step - How many data points to be plotted per frame.
            size - Size of GIF.
            dpi - Dots Per Inch.
            xrotation - Rotation of x-axis.
            milsec - miliseconds between each frame.
            loop - Loop type, 0 is infinite, loop > 0 sets loop for that amount. This only applies to saved GIF. If show_GIF=True then GIF that displays will be infinite. 
            file_path - Folder where file structure will be created.
            show_GIF - Bool, True or False.

GG_pie:

Parameters: 
            x - x-axis data.
            y - y-axis data.
            name - Title of GIF.
            Explode - Distance of pie segments from each other.
            step - How many data points to be plotted per frame.
            autopct - Pie chart percentages. Add string based on formatting or None.
            autopct_color - Color of data labels. 
            label_color - Color of text labels ~ 'y'. 
            colors_list - list of colors to use for each pie segment. Accepts hex, and color names. Ensure number of colors >= number segments. 
            legend - displays legend on chart.
            shadow - displays shadow under pie.
            size - Size of GIF.
            dpi - Dots Per Inch.
            milsec - miliseconds between each frame.
            loop - Loop type, 0 is infinite, loop > 0 sets loop for that amount. This only applies to saved GIF. If show_GIF=True then GIF that displays will be infinite. 
            file_path - Folder where file structure will be created.
            show_GIF - Bool, True or False.

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

GIFgraph-0.1.2.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

GIFgraph-0.1.2-py3-none-any.whl (4.4 MB view hashes)

Uploaded Python 3

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