workaround matplotlib backward-incompatible change