https://github.com/khuyentran1401/same-stats-different-graphs
Create datasets with different graphs but the same statistics
https://github.com/khuyentran1401/same-stats-different-graphs
autodesk datascience datavisualization dataviz python samestatsdifferentgraph
Last synced: 8 months ago
JSON representation
Create datasets with different graphs but the same statistics
- Host: GitHub
- URL: https://github.com/khuyentran1401/same-stats-different-graphs
- Owner: khuyentran1401
- Created: 2020-03-25T23:19:48.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-15T15:46:51.000Z (almost 5 years ago)
- Last Synced: 2025-03-27T03:51:18.778Z (about 1 year ago)
- Topics: autodesk, datascience, datavisualization, dataviz, python, samestatsdifferentgraph
- Language: Python
- Homepage: https://towardsdatascience.com/how-to-turn-a-dinosaur-dataset-into-a-circle-dataset-with-the-same-statistics-64136c2e2ca0
- Size: 4.23 MB
- Stars: 20
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://www.autodesk.com/research/publications/same-stats-different-graphs).
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:
```bash
pip install same-stats
```
## Usage
To turn a dinosaur shape into a bull eye shape, type:
```bash
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`:

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