在绘图中添加线条以显示变化

发布于 2025-01-16 04:56:23 字数 392 浏览 3 评论 0原文

我使用脚本创建了以下图:

merged_data.plot(x = "Ratio_IP1_Average_1", y = "Ratio_IP1_Average_2", kind = "scatter", color = "#830051") plt.text(44.8, 45.6, “+ DMSO”,水平对齐='左',尺寸='中', color='#68D2DF', Weight='semibold')

在此处输入图片描述

我现在想要添加水平线和垂直线,以显示控制值周围的方差,以便突出显示任何异常值。这些值位于数据框中,但我需要调用特定的单元格,最好使用列名称。我该怎么做?

I have created the following plot using the script:

merged_data.plot(x = "Ratio_IP1_Average_1", y = "Ratio_IP1_Average_2", kind = "scatter", color = "#830051") plt.text(44.8, 45.6, "+ DMSO", horizontalalignment='left', size='medium', color='#68D2DF', weight='semibold')

enter image description here

I now want to add horizontal and vertical lines which show the variance around my control value, so any outliers can be highlighted. These values are within the data frame, but I am required to call a specific cell, ideally using the column name. How would I do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文