A toolkit for visualizations in materials informatics.
MIT License
Published by janosh 6 days ago
correlation.py
module by @janosh in https://github.com/janosh/pymatviz/pull/229
pmv.structure_(2|3)d_plotly
by @janosh in https://github.com/janosh/pymatviz/pull/228
show_bonds: bool | NearNeighbors = False
to structure_(2|3)d_plotly
by @janosh in https://github.com/janosh/pymatviz/pull/233
full_rdf
by @janosh in https://github.com/janosh/pymatviz/pull/234
coordination_vs_cutoff_line
plot function by @janosh in https://github.com/janosh/pymatviz/pull/236
/api
docs by migrating to remark
/rehype
by @janosh in https://github.com/janosh/pymatviz/pull/237
pyproject.toml
by @DanielYang59 in https://github.com/janosh/pymatviz/pull/231
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.12.0...v0.13.0
Published by janosh 16 days ago
use_tooltips: bool = True
to df_to_html
(prev df_to_html_table
) by @janosh in https://github.com/janosh/pymatviz/pull/205
element_pair_rdfs
plots radial distribution functions (RDFs) for element pairs in a structure by @janosh in https://github.com/janosh/pymatviz/pull/203
structure_2d_plotly
to pymatviz/structure_viz.py
by @janosh in https://github.com/janosh/pymatviz/pull/213
structure_3d_plotly
by @janosh in https://github.com/janosh/pymatviz/pull/214
IS_IPYTHON
global by @janosh in https://github.com/janosh/pymatviz/pull/198
list
/dict
of structures in element_pair_rdfs
by @janosh in https://github.com/janosh/pymatviz/pull/206
pmv.structure_(2|3)d_plotly
by @janosh in https://github.com/janosh/pymatviz/pull/219
add_annotation
functionality for ptable plotters by @DanielYang59 in https://github.com/janosh/pymatviz/pull/200
structure_(2|3)d_plotly
by @janosh in https://github.com/janosh/pymatviz/pull/220
scale: float = 1
to ptable_heatmap_plotly
by @minhsueh in https://github.com/janosh/pymatviz/pull/210
calculate_rdf
not accounting for periodic boundaries by @janosh in https://github.com/janosh/pymatviz/pull/211
xrd_pattern
not allowing annotate_peaks=0
to disable peak annotation by @janosh in https://github.com/janosh/pymatviz/pull/212
structure_(2|3)d_plotly
allow overriding subplot title's y position and anchor by @janosh in https://github.com/janosh/pymatviz/pull/218
pytest-split
in GitHub Action by @janosh in https://github.com/janosh/pymatviz/pull/224
tests
from source distribution, and drop python2 tag for wheel by @DanielYang59 in https://github.com/janosh/pymatviz/pull/202
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.11.0...v0.12.0
Published by janosh about 2 months ago
numpy
v2 compatibility)Full Changelog: https://github.com/janosh/pymatviz/compare/v0.10.1...v0.11.0
pymatviz.__init__.py
by @janosh in https://github.com/janosh/pymatviz/pull/191
bin_df_cols
leave input df unchanged by @janosh in https://github.com/janosh/pymatviz/pull/192
density_scatter_plotly
add kwarg facet_col: str | None = None
by @janosh in https://github.com/janosh/pymatviz/pull/193
svgo
workflow for ptable scatter plots by @DanielYang59 in https://github.com/janosh/pymatviz/pull/187
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.10.0...v0.10.1
Published by janosh 3 months ago
Following https://github.com/janosh/pymatviz/pull/189, the recommended way to import from pymatviz
is no longer as individual plot functions but as a namespace, e.g. import pymatviz as pmv; pmv.structure_2d()
. All functions that previously had a plot_
prefix now have the same name without the prefix for consistency across the code base (e.g. plot_structure_2d->structure_2d
). the only exception is spacegroup_hist
was renamed to spacegroup_bar
and moved to pymatviz.bar
(the convenience import from pymatviz.__init__.py
works as before).
plot_
prefix from multiple functions by @janosh in https://github.com/janosh/pymatviz/pull/189
density_scatter_plotly
QoL tweaks by @janosh in https://github.com/janosh/pymatviz/pull/190
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.9.3...v0.10.0
Published by janosh 3 months ago
pymatviz.io.df_to_svg
by @janosh in https://github.com/janosh/pymatviz/pull/179
ptable_heatmap_plotly
tooltips by @janosh in https://github.com/janosh/pymatviz/pull/178
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.9.2...v0.9.3
Published by janosh 4 months ago
๐งช lots of new test coverage in this release!
log_density
in density_scatter_plotly
by @janosh in https://github.com/janosh/pymatviz/pull/172pymatviz.utils.(VALID_BACKENDS | MPL_BACKEND | PLOTLY_BACKEND)
renamed to BACKENDS | MATPLOTLIB | PLOTLY
Te
+ Nd
in ELEM_COLORS_VESTA
and support it in plot_structure_2d
by @janosh in https://github.com/janosh/pymatviz/pull/173
ptable_heatmap_plotly
color scale tick labels for log=True
by @janosh in https://github.com/janosh/pymatviz/pull/174
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.9.1...v0.9.2
Published by janosh 4 months ago
toggle_log_linear_y_axis
powerup by @janosh in https://github.com/janosh/pymatviz/pull/165
density_scatter_plotly
metric annotation by @janosh in https://github.com/janosh/pymatviz/pull/166
ptable_heatmap
text color logic by @janosh in https://github.com/janosh/pymatviz/pull/169
count_elements
for series of Composition
by @janosh in https://github.com/janosh/pymatviz/pull/170
plot_xrd_pattern()
for creating interactive XRD patterns with plotly by @janosh in https://github.com/janosh/pymatviz/pull/167
plot_xrd_pattern
accept DiffractionPattern | Structure
as input by @janosh in https://github.com/janosh/pymatviz/pull/168
powerups
module by backend
: matplotlib
/plotly
/both
by @janosh in https://github.com/janosh/pymatviz/pull/171
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.9.0...v0.9.1
Published by janosh 4 months ago
pymatviz.histogram.plot_histogram
by @janosh in https://github.com/janosh/pymatviz/pull/159 (๐ฅ breaking)density_scatter_plotly()
by @janosh in https://github.com/janosh/pymatviz/pull/161 (๐ฅ breaking)ptable_heatmap_ratio
legend by @janosh in https://github.com/janosh/pymatviz/pull/158
plot_structure_2d()
to be plotted in grid by @janosh in https://github.com/janosh/pymatviz/pull/156
ptable_scatters
allow 3rd data dimension for colormap by @DanielYang59 in https://github.com/janosh/pymatviz/pull/155
ruff
NPY002
by @janosh in https://github.com/janosh/pymatviz/pull/162
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.8.3...v0.9.0
Published by janosh 5 months ago
mlff_phonons.ipynb
example notebook by @janosh in https://github.com/janosh/pymatviz/pull/144
ptable_heatmap_splits
TypeErrors
by @janosh in https://github.com/janosh/pymatviz/pull/146
log: bool = False
to spacegroup_hist
to log scale y-axis by @janosh in https://github.com/janosh/pymatviz/pull/148
ptable_hists
by @DanielYang59 in https://github.com/janosh/pymatviz/pull/149
PTableProjector.hide_f_block
property by @janosh in https://github.com/janosh/pymatviz/pull/154
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.8.2...v0.8.3
Published by janosh 6 months ago
plot_phonon_bands()
add kwargs branch_mode: "union" | "intersection" = "union"
and branches: Sequence[str] = ()
by @janosh in https://github.com/janosh/pymatviz/pull/124
add_best_fit_line()
power-up by @janosh in https://github.com/janosh/pymatviz/pull/125
validate_fig
decorator utility by @janosh in https://github.com/janosh/pymatviz/pull/126
ptable_plots
to ptable_hists
by @janosh in https://github.com/janosh/pymatviz/pull/129
eslint
config file by @DanielYang59 in https://github.com/janosh/pymatviz/pull/137
ptable
plotters and add ptable_heatmap
with diagonally-split tiles by @DanielYang59 in https://github.com/janosh/pymatviz/pull/131
structure_viz
by @DanielYang59 in https://github.com/janosh/pymatviz/pull/139
hide_f_block: bool = None
(La and Ac series) to ptable
plotters by @DanielYang59 in https://github.com/janosh/pymatviz/pull/140
pymatviz/enums.py
for SSOT on dataframe column and dict key names by @janosh in https://github.com/janosh/pymatviz/pull/143
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.8.1...v0.8.2
Published by janosh 9 months ago
plot_phonon_dos()
for interactive plotly DOS plots by @janosh in https://github.com/janosh/pymatviz/pull/113
show_values: bool = True
to ptable_heatmap[_plotly]()
and last_peak_anno: str
to plot_phonon_dos()
by @janosh in https://github.com/janosh/pymatviz/pull/114
plot_phonon_bands_and_dos()
by @janosh in https://github.com/janosh/pymatviz/pull/115
add_ecdf_line()
utility for plotting empirical cumulative distribution functions by @janosh in https://github.com/janosh/pymatviz/pull/117
pytest
fixtures df_(float|mixed)
to replace deleted pd._testing.make(Mixed)DataFrame()
by @janosh in https://github.com/janosh/pymatviz/pull/121
pymatviz_(black->dark)
by @janosh in https://github.com/janosh/pymatviz/pull/123
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.8.0...v0.8.1
Published by janosh 10 months ago
plot_structure_2d
add special site_labels: "symbol" | "species"
by @janosh in https://github.com/janosh/pymatviz/pull/101
get_crystal_sys
to crystal_sys_from_spg_num
by @janosh in https://github.com/janosh/pymatviz/pull/103
TqdmDownload
by @janosh in https://github.com/janosh/pymatviz/pull/104
ptable_heatmap
add keywords cbar_range
and cbar_kwargs
by @janosh in https://github.com/janosh/pymatviz/pull/105
ptable_heatmap_plotly
support 1s, 0s and negative values with log=True
by @janosh in https://github.com/janosh/pymatviz/pull/107
ptable_hists
by @janosh in https://github.com/janosh/pymatviz/pull/100
Axes
and Figure
in add_identity_line
by @janosh in https://github.com/janosh/pymatviz/pull/109
pymatviz
plotly templates by @janosh in https://github.com/janosh/pymatviz/pull/110
hist_kwds
arg to ptable_hists
to customize histograms by @janosh in https://github.com/janosh/pymatviz/pull/111
plot_band_structure
in new pymatviz/bandstructure.py
module by @janosh in https://github.com/janosh/pymatviz/pull/112
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.7.3...v0.8.0
Published by janosh 12 months ago
si_fmt()
for formatting large numbers in human-readable format by @janosh in https://github.com/janosh/pymatviz/pull/98
styled_html_tag()
in utils.py
by @janosh in https://github.com/janosh/pymatviz/pull/99
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.7.2...v0.7.3
Published by janosh 12 months ago
default_styles: bool = True
to df_to_pdf
by @janosh in https://github.com/janosh/pymatviz/pull/96
df_to_(svelte->html)_table
by @janosh in https://github.com/janosh/pymatviz/pull/97
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.7.1...v0.7.2
Published by janosh about 1 year ago
df_to_svelte_table
by @janosh in https://github.com/janosh/pymatviz/pull/93
annotate_bars
add keyword adjust_test_pos: bool = False
by @janosh in https://github.com/janosh/pymatviz/pull/94
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.7.0...v0.7.1
Published by janosh about 1 year ago
ptable_heatmap(_plotly)
1st arg: elem_values->values
by @janosh in https://github.com/janosh/pymatviz/pull/86
ptable_heatmap
and annotate_metrics
float precision kwargs to fmt
by @janosh in https://github.com/janosh/pymatviz/pull/87
patch_dict()
utility by @janosh in https://github.com/janosh/pymatviz/pull/88
bin_df_cols
utility function by @janosh in https://github.com/janosh/pymatviz/pull/90
pymatviz/io.py
out from pymatviz/utils.py
and add df_to_pdf()
export function by @janosh in https://github.com/janosh/pymatviz/pull/91
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.6.3...v0.7.0
Published by janosh about 1 year ago
#83
#82
#80
ruff
enable more rule sets #79
save_fig()
in CI #78
8e50218
d60276b
ef40171
91d7909
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.6.2...v0.6.3
Published by janosh over 1 year ago
annotate_metrics
util by @janosh in https://github.com/janosh/pymatviz/pull/73
make_docs.py
by @janosh in https://github.com/janosh/pymatviz/pull/76
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.6.1...v0.6.2
Published by janosh over 1 year ago
axis: bool | str = "off"
to plot_structure_2d()
#72
ptable_heatmap
cbar_precision
kwarg #70
05da617
ed171ec
05368c0
bf1604a
3427e1f
fcf75de
Full Changelog: https://github.com/janosh/pymatviz/compare/v0.6.0...v0.6.1