Skip to content

Commit c6def7a

Browse files
committed
Fix show_plot due to bad return of ax.
1 parent d27d5fb commit c6def7a

File tree

1 file changed

+1
-1
lines changed
  • src/pymatgen/analysis/diffraction

1 file changed

+1
-1
lines changed

src/pymatgen/analysis/diffraction/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def show_plot(self, structure: Structure, **kwargs):
165165
version (oriented vertically), e.g. 100. If 'full', show
166166
long version, e.g. (1, 0, 0). If None, do not show anything.
167167
"""
168-
self.get_plot(structure, **kwargs).show()
168+
self.get_plot(structure, **kwargs).get_figure().show()
169169

170170
@add_fig_kwargs
171171
def plot_structures(self, structures, fontsize=6, **kwargs):

0 commit comments

Comments
 (0)