<div dir="ltr">The following script runs fine with pyqt version 4 but not version 5.  With Qt5 the interactive plot window is too small, but the text remains at the size that would be correct for a larger properly sized window.  I'm running Qt5 with the latest Anaconda installation on a Mac.  Is this a problem with the matplotlib backend for Qt5?  By the way, the version of the plot saved to the file text.pdf is correctly sized.<br><br><br>

<p style="margin:0px;text-indent:0px">from matplotlib.backends.backend_qt5agg \</p>
<p style="margin:0px;text-indent:0px">     import FigureCanvasQTAgg as FigureCanvas</p>
<p style="margin:0px;text-indent:0px">from matplotlib.figure import Figure</p>
<p style="margin:0px;text-indent:0px"><br></p>
<p style="margin:0px;text-indent:0px">fig = Figure(figsize=(6, 4))</p>
<p style="margin:0px;text-indent:0px">canvas = FigureCanvas(fig)</p>
<p style="margin:0px;text-indent:0px">ax = fig.add_subplot(111)</p>
<p style="margin:0px;text-indent:0px">ax.plot([1, 2, 3, 2, 3, 4, 3, 4, 5])</p>
<p style="margin:0px;text-indent:0px">ax.set_title('A simple plot')</p>
<p style="margin:0px;text-indent:0px">ax.grid(True)</p>
<p style="margin:0px;text-indent:0px">ax.set_xlabel('time')</p>
<p style="margin:0px;text-indent:0px">ax.set_ylabel('volts')</p>
<p style="margin:0px;text-indent:0px">canvas.print_figure('test.pdf')</p>
<p style="margin:0px;text-indent:0px">canvas.show()</p>
<p style="margin:0px;text-indent:0px"><br></p></div>