-
Notifications
You must be signed in to change notification settings - Fork 27
Remove matplotlib
-based periodic table plotting functions
#270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…atplotlib.py - Remove `ptable_matplotlib.py`, `_process_data.py`, and `_projector.py` - Update `__init__.py` to remove matplotlib-based periodic table imports - Update README to focus on plotly-based periodic table visualization - Add `ptable_matplotlib.py` removal note in readme recommending use of equivalent plotly functions instead
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #270 +/- ##
==========================================
+ Coverage 86.62% 87.17% +0.54%
==========================================
Files 47 44 -3
Lines 5211 4591 -620
Branches 983 863 -120
==========================================
- Hits 4514 4002 -512
+ Misses 430 370 -60
+ Partials 267 219 -48 ☔ View full report in Codecov by Sentry. |
@DanielYang59 i know you put a lot of work into refactoring the following the Zen of Python, i think it's best if there's just 1 way to plot periodic tables
i find |
…ady have plotly equivalents to assets/scripts/ptable_plotly - Add new visualization examples in ptable_heatmap_plotly.py comparing element counts across datasets - ptable_hists_plotly.py add second example with horizontal colorbar and annotations - ptable_scatter_plotly.py add parabola data and more color/annotation strategies - ptable_plotly.py remove linebreak insertion in horizontal colorbar titles
Hi @janosh thanks for asking me! No need to worry about the sunk cost of the I would certainly be on deck to migrate to |
that's a fair point. certainly worth trying to DRY the code at some point though from past experience, there's a significant risk of making the different plots harder to maintain from coupling them too closely
you know me by now. 😅 i was going to deprecate first but then realized i wouldn't be able to increase the target test coverage in Codecov if the module is still around. maybe there's a way to exclude module from mean coverage calculations but didn't feel like researching that or adding new tests for soon-to-be-removed functionality |
I wouldn't worry too much about the number shown by |
looks like i need to check how to configure Codecov after all to exclude those lines from coverage calculating. |
…functions and remove PDF outputs - Migrate dataset exploration scripts to use Plotly-based visualizations - in hindsight, no need to keep PDF outputs under version control - refactor imports to use `import pymatviz as pmv` instead of individual function imports - update Key enum to use `n_wyckoff_pos` instead of `n_wyckoff`
* remove matplotlib-based periodic table plotting functions in ptable_matplotlib.py - Remove `ptable_matplotlib.py`, `_process_data.py`, and `_projector.py` - Update `__init__.py` to remove matplotlib-based periodic table imports - Update README to focus on plotly-based periodic table visualization - Add `ptable_matplotlib.py` removal note in readme recommending use of equivalent plotly functions instead * assets/scripts/ptable_matplotlib migrate any examples that don't already have plotly equivalents to assets/scripts/ptable_plotly - Add new visualization examples in ptable_heatmap_plotly.py comparing element counts across datasets - ptable_hists_plotly.py add second example with horizontal colorbar and annotations - ptable_scatter_plotly.py add parabola data and more color/annotation strategies - ptable_plotly.py remove linebreak insertion in horizontal colorbar titles * rm -r assets/scripts/ptable_matplotlib * remove matplotlib ptable SVG assets * update dataset exploration examples to use Plotly variants of ptable functions and remove PDF outputs - Migrate dataset exploration scripts to use Plotly-based visualizations - in hindsight, no need to keep PDF outputs under version control - refactor imports to use `import pymatviz as pmv` instead of individual function imports - update Key enum to use `n_wyckoff_pos` instead of `n_wyckoff` * update count_elements() docstring to point at Plotly ptable
ptable_matplotlib.py
,_process_data.py
, and_projector.py
__init__.py
to removematplotlib
-based periodic table importsplotly
-based periodic table visualizationptable_matplotlib.py
removal note in readme recommending use of equivalentplotly
functions instead