Skip to content

Commit

Permalink
Merge b802e14 into f00ec0a
Browse files Browse the repository at this point in the history
  • Loading branch information
hredestig committed Sep 19, 2016
2 parents f00ec0a + b802e14 commit 4aa3b35
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions cobra/flux_analysis/phenotype_phase_plane.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def plot_matplotlib(self, theme="Paired", scale_grid=False):
axes.set_ylabel(self.reaction2_name, size="x-large")
axes.set_zlabel("Growth rate", size="x-large")
axes.view_init(elev=30, azim=-135)
figure.tight_layout()
figure.set_tight_layout(True)
return axes

def plot_mayavi(self):
Expand Down Expand Up @@ -224,12 +224,15 @@ def calculate_phenotype_phase_plane(
"""calculates the growth rates while varying the uptake rates for two
reactions.
returns: an object containing the growth rates for the uptake rates.
To plot the result, call the plot function of the returned object.
:returns: a `phenotypePhasePlaneData` object containing the growth rates
for the uptake rates. To plot the
result, call the plot function of the returned object.
Example:
data = calculate_phenotype_phase_plane(my_model, "EX_foo", "EX_bar")
data.plot()
:Example:
>>> import cobra.test
>>> model = cobra.test.create_test_model("textbook")
>>> ppp = calculate_phenotype_phase_plane(model, "EX_glc__D_e", "EX_o2_e")
>>> ppp.plot()
"""
if solver is None:
solver = get_solver_name()
Expand Down

0 comments on commit 4aa3b35

Please sign in to comment.