Giter Site home page Giter Site logo

khuyentran1401 / same-stats-different-graphs Goto Github PK

View Code? Open in Web Editor NEW
20.0 3.0 4.0 4.33 MB

Create datasets with different graphs but the same statistics

Home Page: https://towardsdatascience.com/how-to-turn-a-dinosaur-dataset-into-a-circle-dataset-with-the-same-statistics-64136c2e2ca0

Python 100.00%
datavisualization dataviz datascience autodesk samestatsdifferentgraph python

same-stats-different-graphs's Introduction

Same Stats Different Graphs

A Python tool to create datasets whose graphs are different from one another but their statistics are the same. This is a modified version of the code provided at Autodesk.

This library makes it easy for you to turn one shape into another and create GIFs for this transformation on the command line.

Installation

To install the package, type:

pip install same-stats

Usage

To turn a dinosaur shape into a bull eye shape, type:

python -m same_stats --shape_start=dino --shape_end=bullseye

And a GIF like below will be saved to the gifs directory as dino_bullseye.gif: gif

Argument options:

  • --shape_start: Shape start. Options: dino, rando, slant, big_slant
  • --shape_end: Target shape. Options: x, h_lines, v_lines, wide_lines, high_lines,slant_up, slant_down, center, star, down_parab, circle,bullseye, dots
  • --iters: Number of iteration
  • --decimals: Number of decimals
  • --frames: Number of frames

same-stats-different-graphs's People

Contributors

khuyentran1401 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.