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
71 stars 20 forks source link

Add style context manager #149

Closed stefmolin closed 11 months ago

codecov[bot] commented 11 months ago

Codecov Report

Merging #149 (7675bd5) into main (d0ea9ca) will increase coverage by 0.03%. The diff coverage is 100.00%.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/stefmolin/data-morph/pull/149/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/149?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 #149 +/- ## ========================================== + Coverage 98.41% 98.44% +0.03% ========================================== Files 42 43 +1 Lines 1701 1736 +35 Branches 336 344 +8 ========================================== + Hits 1674 1709 +35 Misses 24 24 Partials 3 3 ``` | [Files](https://app.codecov.io/gh/stefmolin/data-morph/pull/149?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/plotting/static.py](https://app.codecov.io/gh/stefmolin/data-morph/pull/149?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stefanie+Molin#diff-c3JjL2RhdGFfbW9ycGgvcGxvdHRpbmcvc3RhdGljLnB5) | `100.00% <ø> (ø)` | | | [src/data\_morph/plotting/style.py](https://app.codecov.io/gh/stefmolin/data-morph/pull/149?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stefanie+Molin#diff-c3JjL2RhdGFfbW9ycGgvcGxvdHRpbmcvc3R5bGUucHk=) | `100.00% <100.00%> (ø)` | | | [tests/plotting/test\_style.py](https://app.codecov.io/gh/stefmolin/data-morph/pull/149?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Stefanie+Molin#diff-dGVzdHMvcGxvdHRpbmcvdGVzdF9zdHlsZS5weQ==) | `100.00% <100.00%> (ø)` | |