________________________________
 From: Warren Weckesser <warren.weckes...@enthought.com>
To: "matplotlib-users@lists.sourceforge.net" 
<matplotlib-users@lists.sourceforge.net> 
Sent: Saturday, August 25, 2012 11:13 AM
Subject: Re: [Matplotlib-users] plotting a colored symbol with plot command
 




On Sat, Aug 25, 2012 at 9:59 AM, Michael Rawlins <rawlin...@yahoo.com> wrote:


>
>
>
>
>________________________________
> From: Damon McDougall <damon.mcdoug...@gmail.com>
>To: Michael Rawlins <rawlin...@yahoo.com> 
>Cc: "matplotlib-users@lists.sourceforge.net" 
><matplotlib-users@lists.sourceforge.net> 
>Sent: Saturday, August 25, 2012 4:21 AM
>Subject: Re: [Matplotlib-users] plotting a colored symbol with plot command
> 
>On Fri, Aug 24, 2012 at 02:39:12PM -0700, Michael Rawlins wrote:
>> 
>> 
>> 
>> 
>> ________________________________
>>  From: Damon McDougall <damon.mcdoug...@gmail.com>
>> To: Michael Rawlins <rawlin...@yahoo.com> 
>> Cc: "matplotlib-users@lists.sourceforge.net" 
>> <matplotlib-users@lists.sourceforge.net> 
>> Sent: Friday, August 24, 2012 4:22 PM
>> Subject: Re: [Matplotlib-users] plotting a colored symbol with plot command
>>  
>> On Fri, Aug 24, 2012 at 09:20:47PM +0100,
 Damon McDougall wrote:
>
>> 
>> If I use plt.plot(x, y, color='g', marker='.', markersize=3.0)
>> 
>> the dots are black.
>
>That should not happen... Have you tried some of the other colours? 'r',
>'b', 'm', 'y', 'c'? Are they all black? What are you saving the file as? What
>is the output of:
>
>plt.get_backend()
>
>
>Yes I've tried several. All produce black dots. The output of that command is 
>'agg'.  I use:
>
>plt.savefig('map.eps')
>
>to produce eps images.
>
>


The default 'markeredgecolor' (or 'mec') is black, and with small dots, 
you will see more edge color than face color.  To test this, create the 
same plot but with an exaggerated marker size, e.g. markersize=30.  If 
that is the problem, you can fix it by also setting the edge color to 
green, e.g. mec='g'.

Warren


[Sending to the list this time--forgot to "reply to all" the first time.]


Success.  I've made the markers larger. The correct color is being plotted. As 
Warren suggested, without specifying markeredgecolor I see mostly black border 
with the smaller marker size. Thanks to all for the help.  


 
------------------------------------------------------------------------------
>Live Security Virtual Conference
>Exclusive live event will cover all the ways today's security and
>threat landscape has changed and how IT managers can respond. Discussions
>will include endpoint security, mobile security and the latest in malware
>threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>_______________________________________________
>Matplotlib-users mailing list
>Matplotlib-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to