
If the figure dpi is different (matplotlib default is fig.dpi=100), 1 point = fig.dpi/72. If the figure dpi is 72 as well, one point is one pixel. It might be useful to be able to specify sizes in pixels instead of points. The standard size of points in matplotlib is 72 points per inch (ppi) - 1 point is hence 1/72 inches.

Also linewidths is often specified in points. Points are often used in typography, where fonts are specified in points. So far the answer to what the size of a scatter marker means is given in units of points. doubling the underlying quantity should double the area of the marker. Specifying the size of the scatter markers in terms of some quantity which is proportional to the area of the marker makes in thus far sense as it is the area of the marker that is perceived when comparing different patches rather than its side length or diameter. This is the motivation to call it "area" even though in most cases it isn't really. In all cases however the area of the marker is proportional to the s parameter.


However it is the second example (where we are scaling area) that doubling area appears to make the circle twice as big to the eye. Similarly the second example each circle has area double the last one which gives an exponential with base 2. The question asked about doubling the width of a circle so in the first picture for each circle (as we move from left to right) it's width is double the previous one so for the area this is an exponential with base 4. Now the apparent size of the markers increases roughly linearly in an intuitive fashion.Īs for the exact meaning of what a 'point' is, it is fairly arbitrary for plotting purposes, you can just scale all of your sizes by a constant until they look reasonable.Įdit: (In response to comment from probably confusing wording on my part. If instead we have # doubling the area of markers Notice how the size increases very quickly. To see this consider the following two examples and the output they produce. Because of the scaling of area as the square of width, doubling the width actually appears to increase the size by more than a factor 2 (in fact it increases it by a factor of 4). There is a reason, however, that the size of markers is defined in this way. This means, to double the width (or height) of the marker you need to increase s by a factor of 4.

This can be a somewhat confusing way of defining the size but you are basically specifying the area of the marker.
