I've got multiple plots that I'm attempting to line up vertically in a QVBoxLayout. Each plot has one curve, and I've got the legend turned on. The problem appears to be that layout space is allocated to the legend first based on the length of the legend items' text, and the canvas gets whatever is left. Since my data has different names, the legend associated with each plot takes up a different amount of horizontal space, which causes the plot canvases to have different widths from each other.

I've tried calling plot->legend()->setFixedWidth(), but that doesn't seem to cause the plot to resize.