I can plot my semilogy plot fine to Qt5Agg backend, but switching to pdf gave the error ValueError: Can only output finite numbers in PDF Of course I can workaround it, but it's inconsistent (and annoying).