Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions tools/alara_output_processing/alara_output_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,8 @@ def plot_single_response(
mark_thalf=False,
shading=False,
shading_color_map={},
show_shading_bounds=True
show_shading_bounds=True,
figsize=(10,6)
):
'''
Create a simple x-y plot of a given variable tracked in an ALARA output
Expand Down Expand Up @@ -754,6 +755,10 @@ def plot_single_response(
response in the plot's legend, corresponding to the region(s)
shaded in the plot.
(Defaults to True)
figsize (tuple of float, optional): Option to set the Matplotlib
Figure size, by (width, height). Identical to
`matplotlib.pyplot.Figure.figsize` parameter.
(Defaults to (10,6))

Returns:
fig (matplotlib.figure.Figure): Closed Matplotlib Figure object
Expand All @@ -767,7 +772,7 @@ def plot_single_response(

ratio_plotting = (control_run is not None)
data_comp = False
fig, ax = plt.subplots(figsize=(10,6))
fig, ax = plt.subplots(figsize=figsize)

if isinstance(run_lbls, list):
data_comp=True
Expand Down
Loading