title: How to plot multiple (x,y) series on the same axes with Chaco?
body: <p>I have several sets of (x,y) data that I'd like to plot as line plots on the same figure. I have no trouble with matplotlib doing this, but I cannot get the same results with <a href="http://code.enthought.com/projects/chaco/" rel="nofollow noreferrer">Chaco</a>. Code and output are shown below.</p>
  
  <p>My matplotlib-based code looks like this:</p>
  
  <pre><code>for track in tracks:
      xw = np.array(track['xw'])
      yw = np.array(track['yw'])
      plt.plot(xw, yw, 'b-')
      if not plt.gca().yaxis_inverted():
          plt.gca().invert_yaxis()
  </code></pre>
  
  <p>My Chaco-based code looks like this:</p>
  
  <pre><code>for track in tracks:
      x = np.array(track['xw'])
      y = np.array(track['yw'])
      plot = create_line_plot((x,y), color='blue', width=1.0)
      plot.origin = 'top left'
      container.add(plot)
      if track == tracks[0]:
          add_default_grids(plot)
          add_default_axes(plot)
  </code></pre>
  
  <p>My matplotlib-based output looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/FrzEv.png" alt="matplotlib-figure"></p>
  
  <p>My chaco-based output looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/Q8p4N.png" alt="Chaco figure"></p>