original_docstring: 
          Plot the potential for the rotor, along with its cosine and Fourier
          series potential fits. The plot is saved to a set of files of the form
          ``hindered_rotor_1.pdf``.
          
docstring: Plot the potential for the rotor, along with its cosine and Fourier
  series potential fits. The plot is saved to a set of files of the form
  ``hindered_rotor_1.pdf``.
docstring_tokens: Plot the potential for the rotor along with its cosine and Fourier series potential fits . The plot is saved to a set of files of the form ` ` hindered_rotor_1 . pdf ` ` .
code: def plotHinderedRotor(self, angle, Vlist, cosineRotor, fourierRotor, rotor, rotorIndex, directory):
          """
          Plot the potential for the rotor, along with its cosine and Fourier
          series potential fits. The plot is saved to a set of files of the form
          ``hindered_rotor_1.pdf``.
          """
          try:
              import pylab
          except ImportError:
              return
          
          phi = numpy.arange(0, 6.3, 0.02, numpy.float64)
          Vlist_cosine = numpy.zeros_like(phi)
          Vlist_fourier = numpy.zeros_like(phi)
          for i in range(phi.shape[0]):
              Vlist_cosine[i] = cosineRotor.getPotential(phi[i])
              Vlist_fourier[i] = fourierRotor.getPotential(phi[i])
          
          fig = pylab.figure(figsize=(6,5))
          pylab.plot(angle, Vlist / 4184., 'ok')
          linespec = '-r' if rotor is cosineRotor else '--r'
          pylab.plot(phi, Vlist_cosine / 4184., linespec)
          linespec = '-b' if rotor is fourierRotor else '--b'
          pylab.plot(phi, Vlist_fourier / 4184., linespec)
          pylab.legend(['scan', 'cosine', 'fourier'], loc=1)
          pylab.xlim(0, 2*constants.pi)
          pylab.xlabel('Angle')
          pylab.ylabel('Potential (kcal/mol)')
          pylab.title('{0} hindered rotor #{1:d}'.format(self.species.label, rotorIndex+1))
          
          axes = fig.get_axes()[0]
          axes.set_xticks([float(j*constants.pi/4) for j in range(0,9)])
          axes.set_xticks([float(j*constants.pi/8) for j in range(0,17)], minor=True)
          axes.set_xticklabels(['$0$', '$\pi/4$', '$\pi/2$', '$3\pi/4$', '$\pi$', '$5\pi/4$', '$3\pi/2$', '$7\pi/4$', '$2\pi$'])
          
          pylab.savefig(os.path.join(directory, '{0}_rotor_{1:d}.pdf'.format(self.species.label, rotorIndex+1)))
          pylab.close()
code_tokens: def plotHinderedRotor ( self , angle , Vlist , cosineRotor , fourierRotor , rotor , rotorIndex , directory ) : try : import pylab except ImportError : return phi = numpy . arange ( 0 , 6.3 , 0.02 , numpy . float64 ) Vlist_cosine = numpy . zeros_like ( phi ) Vlist_fourier = numpy . zeros_like ( phi ) for i in range ( phi . shape [ 0 ] ) : Vlist_cosine [ i ] = cosineRotor . getPotential ( phi [ i ] ) Vlist_fourier [ i ] = fourierRotor . getPotential ( phi [ i ] ) fig = pylab . figure ( figsize = ( 6 , 5 ) ) pylab . plot ( angle , Vlist / 4184. , 'ok' ) linespec = '-r' if rotor is cosineRotor else '--r' pylab . plot ( phi , Vlist_cosine / 4184. , linespec ) linespec = '-b' if rotor is fourierRotor else '--b' pylab . plot ( phi , Vlist_fourier / 4184. , linespec ) pylab . legend ( [ 'scan' , 'cosine' , 'fourier' ] , loc = 1 ) pylab . xlim ( 0 , 2 * constants . pi ) pylab . xlabel ( 'Angle' ) pylab . ylabel ( 'Potential (kcal/mol)' ) pylab . title ( '{0} hindered rotor #{1:d}' . format ( self . species . label , rotorIndex + 1 ) ) axes = fig . get_axes ( ) [ 0 ] axes . set_xticks ( [ float ( j * constants . pi / 4 ) for j in range ( 0 , 9 ) ] ) axes . set_xticks ( [ float ( j * constants . pi / 8 ) for j in range ( 0 , 17 ) ] , minor = True ) axes . set_xticklabels ( [ '$0$' , '$\pi/4$' , '$\pi/2$' , '$3\pi/4$' , '$\pi$' , '$5\pi/4$' , '$3\pi/2$' , '$7\pi/4$' , '$2\pi$' ] ) pylab . savefig ( os . path . join ( directory , '{0}_rotor_{1:d}.pdf' . format ( self . species . label , rotorIndex + 1 ) ) ) pylab . close ( )
short_docstring: Plot the potential for the rotor, along with its cosine and Fourier
  series potential fits.
short_docstring_tokens: Plot the potential for the rotor along with its cosine and Fourier series potential fits .
comment: """
          Plot the potential for the rotor, along with its cosine and Fourier
          series potential fits. The plot is saved to a set of files of the form
          ``hindered_rotor_1.pdf``.
          """