Re: [Matplotlib-users] Legend for smoothed lines

2009-04-06 Thread Jae-Joon Lee
The easiest solution would be to use a proxy(?) artist. For example, l1, = plot(x, y, "bo") # original points l2, = plot(xnew, ynew, "b-") # interpolated line l3, = plot(x, y, "bo-") # just for the legend l3.remove() # remove the line from the axes so that it is not drawn. legend([ll3

[Matplotlib-users] Legend for smoothed lines

2009-04-06 Thread Sahar
I want to plot smooth line between data points (Excel like) and I can do it with with 2 lines: a.. Original data points as circles, for instance: plot(x, y, 'bo') b.. Spline of these points as line: plot(xnew, ynew, 'b-') The only problem with this is the legend - I get either 'o' or '---' but