original_docstring: 
          This method plots pressures for a single mesh
          
docstring: This method plots pressures for a single mesh
docstring_tokens: This method plots pressures for a single mesh
code: def PlotPressure(self, meshid):
          '''
          This method plots pressures for a single mesh
          '''
          try:
              from matplotlib.pyplot import plot, xlabel, ylabel, title, legend, savefig, close, ylim
          except ImportError:
              MatPlotLibError()
          meshid = str(meshid)
          for element in self.NetworkMesh.Elements:
              if element.Id == meshid:
                  name = self.NetworkGraph.Edges[self.NetworkMesh.MeshToGraph[meshid]].Name
                  Pressure = (self.Solutions[(self.DofMap.DofMap[meshid, 0]),self.CardiacFreq*(self.Cycles-1):])
                  Pressure2 = (self.Solutions[(self.DofMap.DofMap[meshid, 2]),self.CardiacFreq*(self.Cycles-1):])
                  
                  
          print name, round(mean(Pressure/133.32),1),"--",round(mean(Pressure2/133.32),1)        
          plot(self.t, Pressure/133.32, 'b-', linewidth = 3, label = 'Pressure Signal')   #blue line
          
          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 ('Pressure'+' peak:'+str(round(max(Pressure/133.32),1))+' mean:'+str(round(mean(Pressure/133.32),1))+' min:'+str(round(min(Pressure/133.32),1)))    
          legend()
          savefig(self.p_images + meshid + '_' + name +'_pressure.png')
          close()
code_tokens: def PlotPressure ( self , meshid ) : try : from matplotlib . pyplot import plot , xlabel , ylabel , title , legend , savefig , close , ylim except ImportError : MatPlotLibError ( ) meshid = str ( meshid ) for element in self . NetworkMesh . Elements : if element . Id == meshid : name = self . NetworkGraph . Edges [ self . NetworkMesh . MeshToGraph [ meshid ] ] . Name Pressure = ( self . Solutions [ ( self . DofMap . DofMap [ meshid , 0 ] ) , self . CardiacFreq * ( self . Cycles - 1 ) : ] ) Pressure2 = ( self . Solutions [ ( self . DofMap . DofMap [ meshid , 2 ] ) , self . CardiacFreq * ( self . Cycles - 1 ) : ] ) print name , round ( mean ( Pressure / 133.32 ) , 1 ) , "--" , round ( mean ( Pressure2 / 133.32 ) , 1 ) plot ( self . t , Pressure / 133.32 , 'b-' , linewidth = 3 , label = 'Pressure Signal' ) 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 ( 'Pressure' + ' peak:' + str ( round ( max ( Pressure / 133.32 ) , 1 ) ) + ' mean:' + str ( round ( mean ( Pressure / 133.32 ) , 1 ) ) + ' min:' + str ( round ( min ( Pressure / 133.32 ) , 1 ) ) ) legend ( ) savefig ( self . p_images + meshid + '_' + name + '_pressure.png' ) close ( )
short_docstring: This method plots pressures for a single mesh
short_docstring_tokens: This method plots pressures for a single mesh
comment: '''
          This method plots pressures for a single mesh
          '''$SEP$#blue line