我正在尝试将它们并排绘制,但是为什么它们会重叠?violinplot & boxplot
plt.subplot= (1,2,1)
color = sb.color_palette()[9]
order = ['Minicompact Cars', 'Subcompact Cars', 'Compact Cars', 'Midsize
Cars','Large Cars']
sb.violinplot(data= fuel_econ, x = fuel_econ['VClass'], y =
fuel_econ['displ'],
inner = 'quartile', color = color, order = order)
plt.xticks(rotation = 15)
plt.subplot= (1,2,2)
sb.boxplot(data =fuel_econ, x=fuel_econ['VClass'], y = fuel_econ['displ'],
color = color, order = order)
plt.xticks(rotation = 15);
答案 0 :(得分:0)
正确的语法是@PostMapping
public String processDesign(@Valid Taco taco, Errors errors)
{
if (errors.hasErrors())
{
return "redirect:/design";
}
// Save the taco design...
// We will do this in chapter 3
log.info("Processing design: " + taco);
return "redirect:/orders/current";
}
(注意,不存在=号)