老师,作图时候图像变形了,看着不美观,是需要调整啥参数吗?

来源:3-27 本章小结

baby猫

2018-10-26

图片描述

写回答

1回答

途索

2018-10-27

同学你好,相关参数贴下面啦。
意思大概是
orient可以用来指定垂直还是水平方向;
color指定颜色;
saturation指定饱和度;
witdh指定宽度;
linewith指定线宽。
orient : “v” | “h”, optional
Orientation of the plot (vertical or horizontal). This is usually inferred from the dtype of the input variables, but can be used to specify when the “categorical” variable is a numeric or when plotting wide-form data.
color : matplotlib color, optional
Color for all of the elements, or seed for a gradient palette.
palette : palette name, list, or dict, optional
Colors to use for the different levels of the hue variable. Should be something that can be interpreted by color_palette(), or a dictionary mapping hue levels to matplotlib colors.
saturation : float, optional
Proportion of the original saturation to draw colors at. Large patches often look better with slightly desaturated colors, but set this to 1 if you want the plot colors to perfectly match the input color spec.
width : float, optional
Width of a full element when not using hue nesting, or width of all the elements for one level of the major grouping variable.
dodge : bool, optional
When hue nesting is used, whether elements should be shifted along the categorical axis.
fliersize : float, optional
Size of the markers used to indicate outlier observations.
linewidth : float, optional
Width of the gray lines that frame the plot elements.
whis : float, optional
Proportion of the IQR past the low and high quartiles to extend the plot whiskers. Points outside this range will be identified as outliers.

0
1
baby猫
非常感谢!
2018-10-31
共1条回复

Python3数据分析与挖掘建模实战,快速胜任数据分析师

快速胜任数据分析岗位,逆袭成为数据掘金时代的抢手人才!

2204 学习 · 489 问题

查看课程