Skip to content

Commit

Permalink
Fix show_plot due to bad return of ax.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed Jun 28, 2024
1 parent d27d5fb commit c6def7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymatgen/analysis/diffraction/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c6def7a

Please sign in to comment.