Skip to content

Releases: janosh/pymatviz

v0.4.0

01 Mar 21:32
Compare
Choose a tag to compare

What's Changed

  • Rename package to pymatviz (formerly ml-matrics) in #23
  • readme add sed commands to batch-update from ml-matrics imports to pymatviz d1b6fb2
  • update package description 69fb890

Full Changelog: v0.3.0...v0.4.0

v0.3.0

28 Feb 12:37
Compare
Choose a tag to compare

What's Changed

  • python-requires>=3.8 by @sgbaird in #18
  • Add plot_structure_2d() in new module ml_matrics/struct_vis.py in #20
    • add ml_matrics/struct_vis.py with ase-inspired plot_structure_2d()
    • plot_structure_2d() add annotate_sites: bool = True
    • add example structure plots to readme
    • fix GH workflow svgo compression
    • rename annotate_sites kwarg to site_labels, can be dict or list for custom labels
    • fix test_plot_structure_2d()
    • add plot_structure_2d() example with 20 random MP structures
    • plot_structure_2d() drop kwargs offset, bbox, maxwidth, simplifies function, add label_kwargs
    • assert matplotlib compare_images() passes in test_plot_structure_2d()
    • try fix compare_images() in CI by setting explicit plt figsize
    • move save_fixture() to new tests/_helpers.py along with stuff in tests/init.py
    • add convenience root import for plot_structure_2d() + comment crediting ASE
  • better handling of atomic numbers in count_elements() when outside range [1, 118] e46b2c4
  • git mv data/{mp-n_elements<2,mp-elements}.csv (closes #19) ad6197e
  • support atomic numbers in count_elements(), only element symbols before, add kwarg text_color in ptable_heatmap ada57cc
  • add kwargs {pre,suf}fix in add_mae_r2_box(), use pip cache in publish.yml 6f64c3b

New Contributors

Full Changelog: v0.2.6...v0.3.0