Makes it possibly to plot from the SDF-editor  

Adds a class for making plots from the SDF-editor and makes it and the SDF-editor interact. It Will probably need some changes in the statistic plugin as well. Those are in a separate pull request, for that plug-in.