Python 3.x 轴标签在我的图中不断被剪掉
我不知道如何使轴标签适合这个图形。无论我如何调整它的大小,标签总是被切断Python 3.x 轴标签在我的图中不断被剪掉,python-3.x,tkinter,seaborn,figure,Python 3.x,Tkinter,Seaborn,Figure,我不知道如何使轴标签适合这个图形。无论我如何调整它的大小,标签总是被切断 def scatter_plot(self): # generate seaborn plot def create_plot(): x = sns.lmplot(data=rand_set, x=xv, y=yv, height=5, aspect=12/7) return x.fig figure = create_plot() canvas = Fig
def scatter_plot(self):
# generate seaborn plot
def create_plot():
x = sns.lmplot(data=rand_set, x=xv, y=yv, height=5, aspect=12/7)
return x.fig
figure = create_plot()
canvas = FigureCanvasTkAgg(figure, master=bot_frame)
canvas.draw()
canvas.get_tk_widget().pack(expand=True)
您是否尝试过
x.fig.紧密布局()
?或者类似于x.fig.subplots\u adjust(左=0.1,下=0.1)
?非常有效,谢谢!