title: How to plot curve from polar coordinates data stored in a .txt file in python?
body: <p>The program outputs polar coordinates to a text file the following way:</p>
  <pre><code>f = open(r'C:\Users\generic_user\Desktop\generic_txt_file.txt','w')
  
  while n &lt;= N-1:
      u_nn = u_n + k*v_n
      v_nn = v_n - k*u_n + k*mu*h**-2
      u_n = u_nn
      v_n = v_nn
      r_n = u_n**-1
      string_tita_n = str(n*k)
      string_r_n = str(r_n)
      f.write(string_tita_n + ' ' + string_r_n + '\n')
      n = n + 1
  
  f.close()
  </code></pre>
  <p>The data looks like this:</p>
  <pre><code>0.0 59953022.59004443
  0.06283185307179587 59989603.88149546
  0.12566370614359174 60062900.551973954
  0.1884955592153876 60173036.61693284
  0.25132741228718347 60320124.93744161
  0.3141592653589793 60504265.25498237
  0.3769911184307752 60725541.31412035
  </code></pre>
  <p>I'm relatively new to programming in general and might be looking in the wrong places, but I'm struggling with matplotlib to make this work and would appreciate getting pointed in the right direction.</p>