Python 在seaborn FactoryPlot中绘制虚线

Python 在seaborn FactoryPlot中绘制虚线,python,matplotlib,seaborn,Python,Matplotlib,Seaborn,在上面的绘图中,是否有方法将其中一种线型绘制为虚线,例如,将“其余”线绘制为虚线。使用linestyles参数并根据matplotlib进行选择: import seaborn as sns sns.set(style="ticks") exercise = sns.load_dataset("exercise") g = sns.factorplot(x="time", y="pulse", hue="kind", data=exercise) 使用线型参数并根据matplotlib选择:

在上面的绘图中,是否有方法将其中一种线型绘制为虚线,例如,将“其余”线绘制为虚线。

使用
linestyles
参数并根据matplotlib进行选择:

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

使用
线型
参数并根据matplotlib选择:

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