pymatviz
Note : This project is not associated with or endorsed by pymatgen
, but aims to complement it with additional plotting functionality.
See the /api page.
See the Jupyter notebooks under examples/
for how to use pymatviz
.
See pymatviz/ptable.py
. Heat maps of the periodic table can be plotted both with matplotlib
and plotly
. plotly
supports displaying additional data on hover or full interactivity through Dash .
Dash app using ptable_heatmap_plotly()
See examples/mprester_ptable.ipynb
.
2022-07-28-ptable_heatmap_plotly-dash-example.mp4
See pymatviz/sunburst.py
.
See pymatviz/sankey.py
.
See pymatviz/structure_viz.py
. Currently structure plotting is only supported with matplotlib
in 2d. 3d interactive plots (probably with plotly
) are on the road map.
See pymatviz/histograms.py
.
See pymatviz/parity.py
.
density_scatter(xs, ys, ...)
density_scatter_with_hist(xs, ys, ...)
density_hexbin(xs, ys, ...)
density_hexbin_with_hist(xs, ys, ...)
scatter_with_err_bar(xs, ys, yerr, ...)
residual_vs_actual(y_true, y_pred, ...)
See pymatviz/uncertainty.py
.
Cumulative Error & Residual
See pymatviz/cumulative.py
.
See pymatviz/relevance.py
.
See pymatviz/correlation.py
.
Residual y_res = y_true - y_pred
: The difference between ground truth target and model prediction.
Error y_err = abs(y_true - y_pred)
: Absolute error between target and model prediction.
Uncertainty y_std
: The model's estimate for its error, i.e. how much the model thinks its prediction can be trusted. (std
for standard deviation.)