fix inlineing of matplotlib