title: core data line labels
body: <p>I have created a CPScatterPlot using Core Plot and have several lines on the graph:</p>
  
  <pre><code>  for(int i=0; i&lt;nLines; ++i){
    CPScatterPlot *xSquaredPlot = [[[CPScatterPlot alloc] initWithFrame:graph.frame] autorelease];
    xSquaredPlot.identifier = [NSString stringWithFormat:@"%d",i];
    xSquaredPlot.dataLineStyle.lineWidth = 1.0f;
    xSquaredPlot.name = @"dd";
  
    if(i==0)
     xSquaredPlot.dataLineStyle.lineColor = [CPColor redColor];
    else if (i ==1)
     xSquaredPlot.dataLineStyle.lineColor = [CPColor blueColor];
    else 
     xSquaredPlot.dataLineStyle.lineColor = [CPColor greenColor];
  
    xSquaredPlot.dataSource = self;
    [graph addPlot:xSquaredPlot];
  
    CPPlotSymbol *greenCirclePlotSymbol = [CPPlotSymbol ellipsePlotSymbol];
    if(i==0)
     greenCirclePlotSymbol.fill = [CPFill fillWithColor:[CPColor blueColor]];
    else if (i ==1)
     greenCirclePlotSymbol.fill = [CPFill fillWithColor:[CPColor greenColor]];
    else 
     greenCirclePlotSymbol.fill = [CPFill fillWithColor:[CPColor redColor]];
  
    greenCirclePlotSymbol.size = CGSizeMake(2.0, 2.0);
  
    xSquaredPlot.plotSymbol = greenCirclePlotSymbol;
   }
  </code></pre>
  
  <p>The lines show up great, but I can't seem to find a way to label each line with it's title, or provide a legend.</p>
  
  <p>Any ideas on this?</p>
  
  <p>Thanks in advance!</p>