Skip to content

Commit

Permalink
ability to return fig handles
Browse files Browse the repository at this point in the history
  • Loading branch information
cophus committed Aug 24, 2024
1 parent 3e58443 commit 0ccf4db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions py4DSTEM/process/polar/polar_peaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,7 @@ def plot_crystal_amorphous_fraction(
legend=True,
ticks=False,
figsize=(5, 4),
returnfig=False,
):
"""
Plotting function for the crystal / amorphous fraction image.
Expand Down Expand Up @@ -1157,6 +1158,8 @@ def plot_crystal_amorphous_fraction(
)
cbar.ax.set_ylabel("More Amorphous <----> More Crystalline")

if returnfig:
return fig,ax

def refine_peaks(
self,
Expand Down

0 comments on commit 0ccf4db

Please sign in to comment.