Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
elif self.ylabel:
kwargs['ytitle'] = self.ylabel
if self.title is not None:
kwargs['title'] = self.title
if self.legend is not None:
kwargs['showlegend'] = self.legend
if self.color is None:
for species in self.rr.timeCourseSelections[1:]:
plot(result[:, 0], result[species],
name=species, show=False, **kwargs)
else:
if len(self.color) != result.shape[1]:
self.color = self.colorCycle()
for i in range(result.shape[1] - 1):
plot(result[:, 0], result[:, i + 1], color=self.color[i],
names=self.rr.timeCourseSelections[i + 1], show=False, **kwargs)
show()
if self.xlabel == 'toSet':
kwargs['xtitle'] = 'time'
elif self.xlabel:
kwargs['xtitle'] = self.xlabel
if self.ylabel == 'toSet':
kwargs['ytitle'] = 'concentration'
elif self.ylabel:
kwargs['ytitle'] = self.ylabel
if self.title is not None:
kwargs['title'] = self.title
if self.legend is not None:
kwargs['showlegend'] = self.legend
if self.color is None:
for species in self.rr.timeCourseSelections[1:]:
plot(result[:, 0], result[species],
name=species, show=False, **kwargs)
else:
if len(self.color) != result.shape[1]:
self.color = self.colorCycle()
for i in range(result.shape[1] - 1):
plot(result[:, 0], result[:, i + 1], color=self.color[i],
names=self.rr.timeCourseSelections[i + 1], show=False, **kwargs)
show()
kwargs['xtitle'] = self.xlabel
if self.ylabel is not None:
kwargs['ytitle'] = self.ylabel
if self.title is not None:
kwargs['title'] = self.title
if self.legend is not None:
kwargs['showlegend'] = self.legend
result = self.steadyStateSim()
if self.color is None:
plot(result[:, 0], result[:, 1:], names=self.selection, show=False, **kwargs)
else:
if len(self.color) != result.shape[1]:
self.color = self.colorCycle()
for i in range(result.shape[1] - 1):
plot(result[:, 0], result[:, i], name=self.selection[i], color=self.color[i], show=False, **kwargs)
show()
kwargs = {}
if self.xlabel is None:
kwargs['xtitle'] = self.value
else:
kwargs['xtitle'] = self.xlabel
if self.ylabel is not None:
kwargs['ytitle'] = self.ylabel
if self.title is not None:
kwargs['title'] = self.title
if self.legend is not None:
kwargs['showlegend'] = self.legend
result = self.steadyStateSim()
if self.color is None:
plot(result[:, 0], result[:, 1:], names=self.selection, show=False, **kwargs)
else:
if len(self.color) != result.shape[1]:
self.color = self.colorCycle()
for i in range(result.shape[1] - 1):
plot(result[:, 0], result[:, i], name=self.selection[i], color=self.color[i], show=False, **kwargs)
show()