Fix bug where plotted series were not labelled correctly in the legend.
Explicitly create the plot with a parent window so the configuration
window can be dismissed automatically.