【发布时间】:2014-03-22 07:41:09
【问题描述】:
我是 Seaborn 软件包的粉丝,它使用 Matplotlib 制作漂亮的绘图。但我似乎无法弄清楚如何在我的图中显示次要网格线。
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sbn
x = np.linspace(0, 2 * np.pi, 100)
y = np.sin(x)
fig, ax = plt.subplots(1, 1)
ax.scatter(x, y)
ax.grid(b=True, which='major')
ax.grid(b=True, which='minor')
给予:
这里有什么想法吗?还有关于如何调整确实出现的 Seaborn 网格线样式的任何想法……特别是,我想让它们更窄。
【问题讨论】:
标签: python matplotlib seaborn