|
From: Michael R. <raw...@ya...> - 2012-08-24 21:39:22
|
________________________________ From: Damon McDougall <dam...@gm...> To: Michael Rawlins <raw...@ya...> Cc: "mat...@li..." <mat...@li...> 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 |