예제 #1
0
 def plot(self, grid=None, width=None, height=None, title=None, axis_font_size=None):
     if len(self.variable_ids) > 1:
         notice("Multi-dimensional plotting is not supported")
         return
     plotting.plot_production_envelope(self._phase_plane, objective=self.objective, key=self.variable_ids[0],
                                       grid=grid, width=width, height=height, title=title,
                                       axis_font_size=axis_font_size)
 def plot(self, grid=None, width=None, height=None, title=None):
     if len(self.variable_ids) > 1:
         notice("Multi-dimensional plotting is not supported")
         return
     title = "DifferentialFVA Result" if title is None else title
     x = [elem[0][1] for elem in list(self.solutions.items)]
     y = [elem[1][1] for elem in list(self.solutions.items)]
     colors = ["red" for _ in x]
     plotting.plot_production_envelope(self._phase_plane, objective=self.objective, key=self.variable_ids[0],
                                       grid=grid, width=width, height=height, title=title,
                                       points=[x, y], points_colors=colors)
 def plot(self, grid=None, width=None, height=None, title=None):
     if len(self.variable_ids) > 1:
         notice("Multi-dimensional plotting is not supported")
         return
     title = "DifferentialFVA Result" if title is None else title
     x = [elem[0][1] for elem in list(self.solutions.items)]
     y = [elem[1][1] for elem in list(self.solutions.items)]
     colors = ["red" for _ in x]
     plotting.plot_production_envelope(self._phase_plane,
                                       objective=self.objective,
                                       key=self.variable_ids[0],
                                       grid=grid,
                                       width=width,
                                       height=height,
                                       title=title,
                                       points=[x, y],
                                       points_colors=colors)
예제 #4
0
 def plot(self,
          grid=None,
          width=None,
          height=None,
          title=None,
          axis_font_size=None):
     if len(self.variable_ids) > 1:
         notice("Multi-dimensional plotting is not supported")
         return
     plotting.plot_production_envelope(self._phase_plane,
                                       objective=self.objective,
                                       key=self.variable_ids[0],
                                       grid=grid,
                                       width=width,
                                       height=height,
                                       title=title,
                                       axis_font_size=axis_font_size)