Source from https://github.com/R1kk3r/wxMathPlot
