________________________________
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:
> Hey Michael!
>
> Welcome :)
>
> On Fri, Aug 24, 2012 at 01:00:13PM -0700, Michael Rawlins wrote:
> >
> > Relatively new user here. I need to place a series of white colored dots on
> > a map. I've been able to place black dots using:
> >
> > plt.plot(x,y,color='k',marker='.',markersize=3.0)
> >
>
> You can change the colour with:
>
> plt.pyplot(x, y, color='g', marker='.', markersize=3.0)
>
> That will plot a green dot.
Damon,
plt.pyplot gives an error:
AttributeError: 'module' object has no attribute 'pyplot'
If I use plt.plot(x, y, color='g', marker='.', markersize=3.0)
the dots are black. But I've found success with:
plt.plot(x,y,'wo',markeredgecolor='white',markersize=3.0)
so all is well. Thanks for your help.
>
> >
> > The color option in this command does not plot the chosen color, only
> > black. The command:
> >
> > plt.plot(x,y,'wo')
> >
>
> You can change the colour of the edge with the 'markeredgecolour'
>
--
Damon McDougall
http://www.damon-is-a-geek.com
B2.39
Mathematics Institute
University of Warwick
Coventry
West Midlands
CV4 7AL
United Kingdom
------------------------------------------------------------------------------
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