Hey Michael!
Welcome
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'
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!
···
On Fri, Aug 24, 2012 at 01:00:13PM -0700, Michael Rawlins wrote:
--
Damon McDougall
http://www.damon-is-a-geek.com
B2.39
Mathematics Institute
University of Warwick
Coventry
West Midlands
CV4 7AL
United Kingdom