Patch to mathplot.h