parameters: (show=False)
docstring: Chapter 11
      Comparizon of impedance formulas
docstring_summary: Chapter 11
      Comparizon of impedance formulas
docstring_tokens: Chapter 11 Comparizon of impedance formulas
function: def fig_mscomparezl(show=False):
      '''Chapter 11
      Comparizon of impedance formulas
      '''
      u = np.linspace(0.01, 5.01, 101)
      er = 9.8
  
      plt.figure()
  
      zl = zl_hamm_jen(u, er)
      zlref = zl
      lbl = "Hammerstad and Jensen"
      plt.plot(u, (zl - zlref)/zlref * 100, '.', label=lbl, color="g", linewidth=2)
  
      zl2 = zl_schneider(u, er)
      lbl="Schneider"
      plt.plot(u, (zl2 - zlref)/zlref * 100, '--', label=lbl, color="b", linewidth=2)
  
      zl3 = zl_wheeler(u, er)
      lbl="Wheeler"
      plt.plot(u, (zl3 - zlref)/zlref * 100, label=lbl , color="r", linewidth=2)
  
      plt.xlabel("normalised strip width W/h")
      plt.ylabel("deviation of impedance ZL [%]")
      plt.xlim(0, 5)
      plt.ylim(-2, 1.5)
      plt.legend()
      plt.grid(True, which="both", color="k", linestyle="--", linewidth=1)
      plt.tight_layout()
      if show:
          plt.show()
      name = "mscomparezl.pdf"
      print('Save', name)
      plt.savefig(name)
function_tokens: def fig_mscomparezl ( show = False ) : u = np . linspace ( 0.01 , 5.01 , 101 ) er = 9.8 plt . figure ( ) zl = zl_hamm_jen ( u , er ) zlref = zl lbl = "Hammerstad and Jensen" plt . plot ( u , ( zl - zlref ) / zlref * 100 , '.' , label = lbl , color = "g" , linewidth = 2 ) zl2 = zl_schneider ( u , er ) lbl = "Schneider" plt . plot ( u , ( zl2 - zlref ) / zlref * 100 , '--' , label = lbl , color = "b" , linewidth = 2 ) zl3 = zl_wheeler ( u , er ) lbl = "Wheeler" plt . plot ( u , ( zl3 - zlref ) / zlref * 100 , label = lbl , color = "r" , linewidth = 2 ) plt . xlabel ( "normalised strip width W/h" ) plt . ylabel ( "deviation of impedance ZL [%]" ) plt . xlim ( 0 , 5 ) plt . ylim ( - 2 , 1.5 ) plt . legend ( ) plt . grid ( True , which = "both" , color = "k" , linestyle = "--" , linewidth = 1 ) plt . tight_layout ( ) if show : plt . show ( ) name = "mscomparezl.pdf" print ( 'Save' , name ) plt . savefig ( name )