使用 Seaborn 扩展 x 轴的值

时间:2021-08-01 13:56:14

标签: matplotlib plot seaborn bin

我用下面的代码得到了下面的图

sns.scatterplot(x="activeorder_driver_ratio", y="idle_time%",hue='binned PtoD', data=df_operations_analysis)
plt.grid(which='major', linestyle='-', linewidth='0.5', color='green')
plt.figure(figsize=(18,8))

current output

当前x轴从0.2移动到0.4,相差0.2

我希望 x 轴显示相差 0.05 的值,x 轴显示 0,0.05,0.1,0.15.....2,2.5

0 个答案:

没有答案