<div dir="ltr">David,<div><br></div><div>Was this fixed in 2.0.2 ?</div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Aug 5, 2017 at 12:35 PM David J Pine <<a href="mailto:djpine@gmail.com">djpine@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Using the qt5agg backend, I get plots that are 2 times too small unless I use pyplot.<br><br>I just upgraded to matplotlib 2.01. I'm running on a Mac using the Anaconda installation: 4.3.17                  py36_0 <div><br>This two scripts produce plots that are the same size. Why do I have to double the figsize parameters when I do not use pyplot? Seems like a bug. I didn't need to do this for the Qt4Agg backend.<br><br></div><div># script 1<br></div><div>import matplotlib<br>matplotlib.use('Qt5Agg')<br>import matplotlib.pyplot as plt<br>fig1, ax = plt.subplots(figsize=(6, 4))<br>ax.plot([1, 2, 3, 2, 3, 4, 3, 4, 5])<br>ax.set_title('A simple plot')<br>ax.grid(True)<br>ax.set_xlabel('time')<br>ax.set_ylabel('volts')<br>plt.savefig('test1.pdf')<br>plt.show()<br><br><div># script 2<br>import matplotlib<br>matplotlib.use('Qt5Agg')<br>from matplotlib.backends.backend_qt5agg \<br>    import FigureCanvasQTAgg as FigureCanvas<br>from matplotlib.figure import Figure<br>fig = Figure(figsize=(12, 8))<br>canvas = FigureCanvas(fig)<br>ax = fig.add_subplot(111)<br>ax.plot([1, 2, 3, 2, 3, 4, 3, 4, 5])<br>ax.set_title('A simple plot')<br>ax.grid(True)<br>ax.set_xlabel('time')<br>ax.set_ylabel('volts')<br>canvas.print_figure('test2.pdf')<br>canvas.show()<br><br></div></div></div>
_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</blockquote></div>