Marker Resizing in Seaborn Factorplot

I'm trying to change markersize in Seaborn factorplots, but I'm not sure which keyword argument will pass

import seaborn as sns exercise = sns.load_dataset("exercise") g = sns.factorplot(x="time", y="pulse", hue="kind", data=exercise, ci= .95) 

I tried passing markersize and s based on these StackOverFlow answers, but none of them have an effect

Seaborn_example

bush marking marker size

+5
source share
1 answer

Factorplot calls the default base pointplot function, which takes the markers argument. This is used to differentiate markers. The size for all lines and markers can be changed using the scale argument.

 exercise = sns.load_dataset("exercise") g = sns.factorplot(x="time", y="pulse", hue="kind", data=exercise, ci=95, markers=['o', 'v', 's'], scale = 1.5) 

Same data as above, with different shapes

Also pay attention to the ci argument in your example. 95 will cause ci to be unlikely to see another shape.

+8
source

Source: https://habr.com/ru/post/1240260/


All Articles