pymatgen icon indicating copy to clipboard operation
pymatgen copied to clipboard

Return value for the method "periodic_table_heatmap" should change from "plt" to "fig, ax"

Open hezhengda opened this issue 2 years ago • 0 comments

https://github.com/materialsproject/pymatgen/blob/b5eda8d3c343a6cb06c5cc02a34dbd30158637d1/pymatgen/util/plotting.py#L186-L329

If "plt" is returned, there is no object in it, only a class (matplotlib.pyplot) will be returned.

If we change the return to "fig, ax", then the periodic_table can be export by fig.savefig(filename, dpi..).

hezhengda avatar Feb 26 '23 05:02 hezhengda