How can I set the left margin of the graph such that the y-axis labels don't get cut off? I generated my plot by calling pg.PlotWidget(), and when I generate my graph and save it to disk (using .grab() on the plot widget), the y-axis labels are all cut off. I have tried setContentsMargins() on the PlotWidget, setting tickTextWidth on the y-axis (obtained via plot.getPlotItem().getAxis('left') ), and adding the plot widget to a layout in another widget and calling setContentsMargins on those, and none of those seems to have any effect on how much space is available for the labels. How can I fix this? Thanks.