add alpha arg to figureFromTimecourse
@@ -97,7 +97,7 @@ class PlottingEngine(object):
"""
raise NotImplementedError('Abstract method')
- def figureFromTimecourse(self, m, title=None, ordinates=None, tag=None):
+ def figureFromTimecourse(self, m, title=None, ordinates=None, tag=None, alpha=None):
""" Generate a new figure from a timecourse simulation.
:param m: An array returned by RoadRunner.simulate.
@@ -107,7 +107,7 @@ class PlottingEngine(object):
raise RuntimeError('Cannot plot timecourse - first column is not time')
for k in range(1,m.shape[1]):
- fig.addXYDataset(m[:,0], m[:,k], name=m.colnames[k], tag=tag)
+ fig.addXYDataset(m[:,0], m[:,k], name=m.colnames[k], tag=tag, alpha=alpha)
return fig
