python - Seaborn散点图增加了vline标记的粗细
问题描述
我正在生成一个 KDE 图并将数据点添加为散点图。我正在使用 vline 标记“|” 对于这个散点图。我怎样才能增加这个标记的厚度。增加s=200
以s=1000
增加高度。有没有办法在不改变高度的情况下改变厚度?
import seaborn as sns
import numpy as np
import matplotlib.pyplot as plt
numberList = np.random.rand(20)
ax = sns.kdeplot(numberList)
ax = sns.scatterplot(x=numberList, y=0.1, marker='|', s=200)
plt.show()
解决方案
推荐阅读
- java - 两个独立服务中是否存在数据同步模式?
- c++ - 如何在 C++ 中正确实现 addObject() 函数?
- javascript - 记录来自 API 调用的函数结果 - Javascript
- reactjs - 您可以根据路由器位置动态更新 Firestore 查询吗?
- c - 为什么 fopen() 和 open() 不能识别 char 指针
- python - 带有 DeleteView 的 Bootbox 在 Django 中找不到 url
- python - 需要帮助打印清单
- mysql - docker-compose 与 Spring Boot 和 MySQL 集成不断发生错误通信链接失败
- linux - 在 pythonanywhere 中初始化 Tor 时出错 - 卡在 5%
- excel - vba 循环运行时单元格编辑错误