Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试创建一个带有一个散点图和多个线图的图。为了看清楚点,我需要前面的散点图。然而,改变我的代码中的顺序并不能解决这个问题。线图总是覆盖散点图。有任何想法吗?
请帮忙。
zorder散点图时使用参数,例如
zorder
sns.scatterplot(x, y, ax=ax, color='orange', zorder=7)
您可能需要zorder根据图中元素的数量调整该值。