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. > > > > > 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' >
Sorry! That should me 'markeredgecolor'. All commands are American spelling. If I had a penny for every time I got a syntax error for using British spelling, I'd have about 3 pence. > option, or 'mec' for short: > > plt.plot(x, y, 'wo', mec='w') > > Kablam! Big white Os with no black edge. > You can also control the size of the marker there, too: > > plt.plot(x, y, 'wo', mec='w', markersize=10.0) > > > > > places white dots with black around the edges. I see that the 'w' is for > > white and 'o' is for the symbol. I'd like to use the former command since > > that gives me control over marker size and a dot without a black edge. > > > > Lastly, it's not clear to me if I should be using plt.plot or just plot. > > Both work, and I don't know the difference. > > If you're using pylab, it doesn't matter: > > In [5]: print plot > <function plot at 0x10cddbd70> > > In [6]: print plt.plot > <function plot at 0x10cddbd70> > > They are *literally* the same function in memory. > > Hope this helps, Michael. > Good luck! > > -- > Damon McDougall > http://www.damon-is-a-geek.com > B2.39 > Mathematics Institute > University of Warwick > Coventry > West Midlands > CV4 7AL > United Kingdom -- 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