On Mon, 2009-11-23 at 10:12 +0100, Matthias Michler wrote: > Hi Zunbeltz, >
Dear Matthias > you could include some fake-lines outside the visible regionm which get your > favorite label like > > plot([0], [0], label='my favorite label for squares', marker='s', > color='black', mfc='white', mec='black') > > and don't use labels for the original data. > I did in a similar way l1 = plot(datax, datay, label='my favorite label for squares', marker='s', color='black', mfc='white', mec='black') plot(datax, daty, label='my favorite label for squares', marker='s', color='black', mfc='red', mec='black') I plot the data 2 times and them in the legend only add the firs line with white markers legend([l1],[label]) But I think this functionality should not be difficult to implement directly and maybe someone has done it. Best regards Zunbeltz Izaola > Kind regards > Matthias > > On Saturday 21 November 2009 20:28:37 Zunbeltz Izaola wrote: > > Hi, > > > > I would like to have a different marker facecolor in the legend that in > > the plot. Is there any way to change this color?=20 > > > > In more detail my problem is the following. I plotted 6 dataset. They > > are divided in 2 groups; one with blue and the other with red color. > > In each group I have used 3 different markers. I have annotated the > > meaning of the color in the plot, so I don't need a legend with 6 lines. > > I only need 3, but I would like that the markers in this plot will be > > empty (markerfacecolor=3Dwhite). Is it possible? > > > > Best regards, > > > > Zunbeltz > > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users