Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 轴标签在我的图中不断被剪掉_Python 3.x_Tkinter_Seaborn_Figure - Fatal编程技术网

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)
?非常有效,谢谢!