original_docstring: 
          This method plots different flow volume signals in the same figure.
          
docstring: This method plots different flow volume signals in the same figure.
docstring_tokens: This method plots different flow volume signals in the same figure .
code: def PlotFlows(self, meshIds):
          '''
          This method plots different flow volume signals in the same figure.
          '''
          try:
              from matplotlib.pyplot import plot, xlabel, ylabel, title, legend, savefig, close, ylim
          except ImportError:
              MatPlotLibError()
          colourvector = ['r', 'b', 'g', 'c', 'm', 'y', 'k']
          indexcolour = 0
              
          for meshid in meshIds:
              meshid = str(meshid)
              
              for element in self.NetworkMesh.Elements:
                  if element.Id == meshid:
                      
                      dofs = element.GetPoiseuilleDofs()
                      p1 = self.Solutions[(self.DofMap.DofMap[meshid, dofs[0]]),self.CardiacFreq*(self.Cycles-1):]
                      p2 = self.Solutions[(self.DofMap.DofMap[meshid, dofs[1]]),self.CardiacFreq*(self.Cycles-1):]
                      
                      if mean(p1)>=mean(p2):
                          flowDirection = self.flowDirection['(+)']                
                          Flow = (p1-p2)/element.R
                      else:
                          flowDirection = self.flowDirection['(-)']
                          Flow = (p2-p1)/element.R
                      
                      if flowDirection == self.flowDirection['(+)']:                
                          plot(self.t, Flow*6e7, colourvector[indexcolour],linewidth = 3, label = element.Name)   
                      if flowDirection == self.flowDirection['(-)']:
                          plot(self.t, Flow*6e7, '--', colourvector[indexcolour],linewidth = 3, label = element.Name)   
                      
                      minY = 0
                      for q in Flow*6e7:
                          if q < minY:
                              minY = q
                      if minY != 0:
                          plot(self.t, zeros(len(Flow)),':',linewidth = 1)
                      ylim(ymin=minY)
                      
                      xlabel('Time ($s$)')
                      ylabel('Volumetric flow rate ($mL/min$)')
                      title ('Flows')   
                      legend(loc=0)
                      if indexcolour == 6:
                          indexcolour = 0
                      else:
                          indexcolour+=1
    
          savefig(self.f_images + ' Flows.png')
          close()
          indexcolour = 0
code_tokens: def PlotFlows ( self , meshIds ) : try : from matplotlib . pyplot import plot , xlabel , ylabel , title , legend , savefig , close , ylim except ImportError : MatPlotLibError ( ) colourvector = [ 'r' , 'b' , 'g' , 'c' , 'm' , 'y' , 'k' ] indexcolour = 0 for meshid in meshIds : meshid = str ( meshid ) for element in self . NetworkMesh . Elements : if element . Id == meshid : dofs = element . GetPoiseuilleDofs ( ) p1 = self . Solutions [ ( self . DofMap . DofMap [ meshid , dofs [ 0 ] ] ) , self . CardiacFreq * ( self . Cycles - 1 ) : ] p2 = self . Solutions [ ( self . DofMap . DofMap [ meshid , dofs [ 1 ] ] ) , self . CardiacFreq * ( self . Cycles - 1 ) : ] if mean ( p1 ) >= mean ( p2 ) : flowDirection = self . flowDirection [ '(+)' ] Flow = ( p1 - p2 ) / element . R else : flowDirection = self . flowDirection [ '(-)' ] Flow = ( p2 - p1 ) / element . R if flowDirection == self . flowDirection [ '(+)' ] : plot ( self . t , Flow * 6e7 , colourvector [ indexcolour ] , linewidth = 3 , label = element . Name ) if flowDirection == self . flowDirection [ '(-)' ] : plot ( self . t , Flow * 6e7 , '--' , colourvector [ indexcolour ] , linewidth = 3 , label = element . Name ) minY = 0 for q in Flow * 6e7 : if q < minY : minY = q if minY != 0 : plot ( self . t , zeros ( len ( Flow ) ) , ':' , linewidth = 1 ) ylim ( ymin = minY ) xlabel ( 'Time ($s$)' ) ylabel ( 'Volumetric flow rate ($mL/min$)' ) title ( 'Flows' ) legend ( loc = 0 ) if indexcolour == 6 : indexcolour = 0 else : indexcolour += 1 savefig ( self . f_images + ' Flows.png' ) close ( ) indexcolour = 0
short_docstring: This method plots different flow volume signals in the same figure.
short_docstring_tokens: This method plots different flow volume signals in the same figure .
comment: '''
          This method plots different flow volume signals in the same figure.
          '''