title: plot array from command line into graph through python
body: <p>I am trying to plot two arrays that are input via command line.  For instance I have the program testarray.py</p>
  <p>Now when I enter the command line</p>
  <pre><code>python testarray.py &quot;1 2 3 4 5 6&quot; &quot;1 2 4 8 16 32&quot;
  </code></pre>
  <p>I am trying to get a plot that looks like the following:</p>
  <p><a href="https://i.stack.imgur.com/Vs5Fw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Vs5Fw.jpg" alt="Desired Plot" /></a></p>
  <p>Unfortunately I am not getting this plot.  I have a linear plot where the y axis is not linear.</p>
  <p>Below is a snippet of my code:</p>
  <pre><code>xarr=np.array([])
  yarr=np.array([])
  zarr=np.array([])
  
  x=sys.argv[1].split(' ')
  y=sys.argv[2].split(' ')
  length=len(x)
  
  for t in range(0,length):
    xarr = np.append(xarr,x[t])
    yarr = np.append(yarr,y[t])
  plt.plot(xarr,yarr,'b')
  </code></pre>
  <p>How do I tweak this code to get the desired result?</p>