parameters: (freq, amp, phi, nrows=2, ylog=None, axs=None, **kwargs)
return_statement: return fig, axs
docstring: Show amplitude and phase spectra in two subplots.
docstring_summary: Show amplitude and phase spectra in two subplots.
docstring_tokens: Show amplitude and phase spectra in two subplots .
function: def showSpectrum(freq, amp, phi, nrows=2, ylog=None, axs=None, **kwargs):
      """Show amplitude and phase spectra in two subplots."""
      if axs is None:
          fig, axs = plt.subplots(nrows=nrows, sharex=(nrows == 2))
      else:
          fig = axs[0].figure
      drawAmplitudeSpectrum(axs[0], freq, amp, ylog=ylog, **kwargs)
      drawPhaseSpectrum(axs[1], freq, phi, ylog=ylog, **kwargs)
      return fig, axs
function_tokens: def showSpectrum ( freq , amp , phi , nrows = 2 , ylog = None , axs = None , * * kwargs ) : if axs is None : fig , axs = plt . subplots ( nrows = nrows , sharex = ( nrows == 2 ) ) else : fig = axs [ 0 ] . figure drawAmplitudeSpectrum ( axs [ 0 ] , freq , amp , ylog = ylog , * * kwargs ) drawPhaseSpectrum ( axs [ 1 ] , freq , phi , ylog = ylog , * * kwargs ) return fig , axs