【发布时间】:2017-04-03 23:43:59
【问题描述】:
我可以在 Pandas 图中清除 xlabel 的文本:
plt.xlabel("")
相反,是否可以隐藏标签?
可能类似于.xaxis.label.set_visible(False)。
【问题讨论】:
-
好吧,这里是文档:pandas.pydata.org/pandas-docs/stable/generated/…这听起来像你要找的东西:
sharex : boolean, default True if ax is None else False In case subplots=True, share x axis and set some x axis labels to invisible; defaults to True if ax is None otherwise False if an ax is passed in; Be aware, that passing in both an ax and sharex=True will alter all x axis labels for all axis in a figure! sharey : boolean, default False In case subplots=True, share y axis and set some y axis labels to invisible
标签: python python-2.7 python-3.x pandas