Following patch cleanups those few deprecations.
Created attachment 262179 [details, diff]
Created attachment 262181 [details, diff]
a working patch
'Scuse me, should have spent those two minutes testing.
This version actually works.
Minor note - matplotlib checks for libpng via 'pkg-config libpng'.
*** Bug 355115 has been marked as a duplicate of this bug. ***
Thanks for the patch. Applied in 1.0.1-r1.