On Wed, Jan 2, 2013 at 4:46 PM, Joe Louderback <jglouderb...@gmail.com>wrote:

> import matplotlib.pyplot as plt
>
> fig = plt.figure()
> plot = fig.add_subplot(111)
>
> plot.scatter([1, 2, 3], [4, 5, 6], c = [0.2, 0.4, 0.6], label = 'one',
>      cmap = 'jet', marker = 'o', edgecolor = 'face')
>
> plot.scatter([1, 2, 3], [7, 6, 5], c = [0.2, 0.4, 0.6], label = 'two',
>               cmap = 'jet', marker = 'o', edgecolor = 'face',
>       facecolor = 'none')
> plot.legend()
> plt.show()
>

I'm not quite sure what /should/ happen when you set the `facecolor` to
'none' and the `edgecolor` to 'face'. I'm surprised anything shows up at
the axes at all. But if you remove the `edgecolor` kwarg things look better:

import matplotlib.pyplot as plt
fig = plt.figure()
plot = fig.add_subplot(111)
plot.scatter([1, 2, 3], [4, 5, 6], c = [0.2, 0.4, 0.6], label = 'one',
     cmap = 'jet', marker = 'o', edgecolor = 'face')

plot.scatter([1, 2, 3], [7, 6, 5], c = [0.2, 0.4, 0.6], label = 'two',
              cmap = 'jet', marker = 'o', facecolor='none')
plot.legend()
plt.show()
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to