Python 3.x 在python中为x轴条形图添加数据间隔

Python 3.x 在python中为x轴条形图添加数据间隔,python-3.x,seaborn,Python 3.x,Seaborn,我在python中使用stripplot,在axis中,时间范围为3601到8600秒。但从图中很难看到x轴上的时间。如何添加特定间隔(如图中的y轴)使其可见?这是我生成图形的代码 import seaborn as sns; sns.set(color_codes=True) # Visualising the plots fig, ax = plt.subplots(figsize=(10,7)) params_anno = dict(jitter=0.25,size=8, color='#

我在python中使用stripplot,在axis中,时间范围为3601到8600秒。但从图中很难看到x轴上的时间。如何添加特定间隔(如图中的y轴)使其可见?这是我生成图形的代码

import seaborn as sns; sns.set(color_codes=True)
# Visualising the plots
fig, ax = plt.subplots(figsize=(10,7))
params_anno = dict(jitter=0.25,size=8, color='#91bfdb', edgecolor='black', linewidth=1, dodge=False)
ax=sns.stripplot(x=dataset["Time"], y=dataset["Ob7"],**params_anno)
params_anno = dict(data=dataset_2, x='Time', y='Ob7',jitter=0.25)
ax=sns.stripplot(size=8,color='red', edgecolor='black',linewidth=1,**params_anno)
这是我的数字


我看过文档,但找不到合适的例子。有人帮忙吗?

这个问题已经问了5个月了,但是如果有人需要答案的话

您可以尝试以下方法:


是否确实要使用
stripplot
?这通常是指分类数据,而这里你似乎有连续的数字数据,通常的散点图更适合。我想我明白你的意思了。让我试试通常的散点图。但是,难道不可能在这里为连续的数值数据添加一个区间吗?为什么会有这样的选择?文档中明确指出“绘制一个散点图,其中一个变量是分类的。”因为您显然不希望所有变量都是分类的,所以这里不使用这个函数。
from matplotlib import pyplot as plt
import matplotlib.ticker as ticker

fig,axs = plt.subplots()
axs.yaxis.set_major_locator(ticker.MultipleLocator(0.05))