From c6def7a012a85779774901b5f2af011864aeb9d6 Mon Sep 17 00:00:00 2001 From: Shyue Ping Ong Date: Fri, 28 Jun 2024 08:35:59 -0700 Subject: [PATCH] Fix show_plot due to bad return of ax. --- src/pymatgen/analysis/diffraction/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pymatgen/analysis/diffraction/core.py b/src/pymatgen/analysis/diffraction/core.py index 38233bfb918..4a4dce2623a 100644 --- a/src/pymatgen/analysis/diffraction/core.py +++ b/src/pymatgen/analysis/diffraction/core.py @@ -165,7 +165,7 @@ def show_plot(self, structure: Structure, **kwargs): version (oriented vertically), e.g. 100. If 'full', show long version, e.g. (1, 0, 0). If None, do not show anything. """ - self.get_plot(structure, **kwargs).show() + self.get_plot(structure, **kwargs).get_figure().show() @add_fig_kwargs def plot_structures(self, structures, fontsize=6, **kwargs):