title: Multiple plots with matplotlib in a nested while loop
body: <p>I'm making a program to control a LCR meter (the specifics aren't important). Therefore I need two nested <code>while</code> loops (easy example):</p>
  
  <pre><code>while x &lt;= stopFrequency:
      y = startVoltage
      while y &lt;= stopVoltage:
          getCapacity = y * 2
          y += stepValueVoltage 
      x += stepValueFrequency 
  </code></pre>
  
  <p>Now I need to make a plot for the different frequency's (outer loop) of <code>y</code> and <code>getCapacity</code>. I can get a plot of <code>y</code> and <code>getCapacity</code> for one frequency. But for more, I don't know how to get the graphs on one plot.</p>