Move stacking to metadata and don't modify data.

Close #868.
`plotMetadata` is per plot and dataset. `_getPlotMetadataForDataset ` is called when new dataset appears and only it that situation.