original_docstring: 
          This method plots different pressure signals in the same figure.
          
docstring: This method plots different pressure signals in the same figure.
docstring_tokens: This method plots different pressure signals in the same figure .
code: def PlotPressures(self, meshIds):
          '''
          This method plots different pressure 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:
                      Pressure = (self.Solutions[(self.DofMap.DofMap[meshid, 0]),self.CardiacFreq*(self.Cycles-1):])
                      plot(self.t, Pressure/133.32, colourvector[indexcolour],linewidth = 3, label = element.Name)   
                      
                      minY = 0
                      for p in Pressure/133.32:
                          if p < minY:
                              minY = p
                      
                      if minY != 0:
                          plot(self.t, zeros(len(Pressure)),':',linewidth = 1)
                      
                      ylim(ymin=minY)
                      
                      xlabel('Time ($s$)')
                      ylabel('Pressure ($mmHg$)')
                      title ('Pressures')   
                      legend(loc=0)
                      if indexcolour == 6:
                          indexcolour = 0
                      else:
                          indexcolour+=1
    
          savefig(self.p_images + ' Pressures.png')
          close()
          indexcolour = 0
code_tokens: def PlotPressures ( 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 : Pressure = ( self . Solutions [ ( self . DofMap . DofMap [ meshid , 0 ] ) , self . CardiacFreq * ( self . Cycles - 1 ) : ] ) plot ( self . t , Pressure / 133.32 , colourvector [ indexcolour ] , linewidth = 3 , label = element . Name ) minY = 0 for p in Pressure / 133.32 : if p < minY : minY = p if minY != 0 : plot ( self . t , zeros ( len ( Pressure ) ) , ':' , linewidth = 1 ) ylim ( ymin = minY ) xlabel ( 'Time ($s$)' ) ylabel ( 'Pressure ($mmHg$)' ) title ( 'Pressures' ) legend ( loc = 0 ) if indexcolour == 6 : indexcolour = 0 else : indexcolour += 1 savefig ( self . p_images + ' Pressures.png' ) close ( ) indexcolour = 0
short_docstring: This method plots different pressure signals in the same figure.
short_docstring_tokens: This method plots different pressure signals in the same figure .
comment: '''
          This method plots different pressure signals in the same figure.
          '''