I'd like to plot values where the area of a marker is proportional to
some value. How is the size value given in, say:
scatter(x,y,'o',s=10)
used to generate the markers? By eye it looks like the size value is
proportional to the area (i.e. proportional to the radius squared for
circle markers), but it would be nice to know for sure.
Thanks,
Neil
Neil Crighton wrote:
I'd like to plot values where the area of a marker is proportional to
some value. How is the size value given in, say:
scatter(x,y,'o',s=10)
used to generate the markers? By eye it looks like the size value is
proportional to the area (i.e. proportional to the radius squared for
circle markers), but it would be nice to know for sure.
Hi Neil,
good eyes Have a look at the scatter documentation:
"s is a size in points^2. It is a scalar
or an array of the same length as x and y."
Manuel
···
Thanks,
Neil
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
Thanks! I also found the description under the class
RegularPolyCollection in collections.py:
* sizes gives the area of the circle circumscribing the regular
polygon in points^2
Neil
Manuel wrote:
···
Hi Neil,
good eyes Have a look at the scatter documentation:
"s is a size in points^2. It is a scalar
or an array of the same length as x and y."
Manuel
Neil Crighton wrote:
I'd like to plot values where the area of a marker is proportional to
some value. How is the size value given in, say:
scatter(x,y,'o',s=10)
used to generate the markers? By eye it looks like the size value is
proportional to the area (i.e. proportional to the radius squared for
circle markers), but it would be nice to know for sure.