Commit d1877d32 authored by Daniel Brown's avatar Daniel Brown

plotting strain from aligo/aplus models now returns the kat object it ran for further probing

parent cf546fe4
......@@ -423,3 +423,5 @@ def strain_sensitivity(base,lower=10,upper=5000,steps=100, ax=None, plot_cmds={}
if ax is None:
plt.gcf().tight_layout()
plt.show()
return kat
......@@ -395,6 +395,10 @@ def strain_sensitivity(base,lower=10,upper=5000,steps=100, ax=None, plot_cmds={}
lower, upper, steps - frequency vector
ax - Matplotlib axes to use, if None it creates internally
plt - Dict of keyword arguments to pass to loglog
Returns
-------
Kat object that was run to generate the plot
"""
kat = base.deepcopy()
......@@ -425,4 +429,6 @@ def strain_sensitivity(base,lower=10,upper=5000,steps=100, ax=None, plot_cmds={}
if ax is None:
plt.gcf().tight_layout()
plt.show()
\ No newline at end of file
plt.show()
return kat
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment