incanter/incanter — pull request #257 by malloc82 (2014-05-27 01:30:03+00:00)
Title: Improved add-line function 

I just feel that the currently add-line function does not do what it's supposed to do correctly. For example, if I want to add some new data points to an existing series, there is no way to do this. New data points will always be treated as a new series, therefore, get marked with different color. It's nice to see the new addition, but when I have multiple sets of data and and want to add more points to each one of them, it just gets messy. Also from the legend of the plot we can see that even if you name your new data set as the same name with the previous one, it will still be treated as a new series.

I added an "extend-line" function, that has what I believe the correct behavior, i.e. if you add a new data set with label which exists already, that data set will be added to the existing series, otherwise, they will be added to an newly created series. I also addd a couple help functions, that can check if a series exists or remove it.

Feel free to let me know what you think about this change.

Thanks
Ritchie