Integrating a plot to a wxWidgets user interface