Compensate for bug in matplotlib

Signed-off-by: Jonas Kalderstam <jonas@kalderstam.se>