I want to do a scatterplot according x and y variables, and the points size depend of a numeric variable and the color of every point depend of a categorical variable.
First, I was trying this with plt.scatter:
After, I tried this using lmplot but the point size is different in relation to the first graph. I think the two graphs should be equals. Why not? The point size is different in every graph.
Your question is no so much descriptive but i guess you want to control the size of the marker. Here is more documentation
Here is the start point for you. A numeric variable can also be assigned to
size
to apply a semantic mapping to the areas of the points:For seaborn
scatterplot
:And to change the size of the points you use the
s
parameter.