stefmolin / data-morph

Morph an input dataset of 2D points into select shapes, while preserving the summary statistics to a given number of decimal points through simulated annealing. It is intended to be used as a teaching tool to illustrate the importance of data visualization.
https://stefaniemolin.com/data-morph/
MIT License
60 stars 16 forks source link

Add infinity and figure eight target shapes #190

Open MauriceDeVr opened 2 months ago

MauriceDeVr commented 2 months ago

Fixes: #179 Fixes: #178

Changes

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.44%. Comparing base (51b8d26) to head (0853d0a). Report is 7 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/stefmolin/data-morph/pull/190/graphs/tree.svg?width=650&height=150&src=pr&token=3SEEG9SZQO&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stefanie+Molin)](https://app.codecov.io/gh/stefmolin/data-morph/pull/190?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stefanie+Molin) ```diff @@ Coverage Diff @@ ## main #190 +/- ## ========================================== + Coverage 98.42% 98.44% +0.01% ========================================== Files 43 43 Lines 1775 1795 +20 Branches 358 356 -2 ========================================== + Hits 1747 1767 +20 Misses 25 25 Partials 3 3 ``` | [Files](https://app.codecov.io/gh/stefmolin/data-morph/pull/190?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stefanie+Molin) | Coverage Δ | | |---|---|---| | [src/data\_morph/shapes/factory.py](https://app.codecov.io/gh/stefmolin/data-morph/pull/190?src=pr&el=tree&filepath=src%2Fdata_morph%2Fshapes%2Ffactory.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stefanie+Molin#diff-c3JjL2RhdGFfbW9ycGgvc2hhcGVzL2ZhY3RvcnkucHk=) | `100.00% <ø> (ø)` | | | [src/data\_morph/shapes/points.py](https://app.codecov.io/gh/stefmolin/data-morph/pull/190?src=pr&el=tree&filepath=src%2Fdata_morph%2Fshapes%2Fpoints.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stefanie+Molin#diff-c3JjL2RhdGFfbW9ycGgvc2hhcGVzL3BvaW50cy5weQ==) | `100.00% <100.00%> (ø)` | | | [tests/shapes/test\_points.py](https://app.codecov.io/gh/stefmolin/data-morph/pull/190?src=pr&el=tree&filepath=tests%2Fshapes%2Ftest_points.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stefanie+Molin#diff-dGVzdHMvc2hhcGVzL3Rlc3RfcG9pbnRzLnB5) | `100.00% <100.00%> (ø)` | |