BUG: avoid having views of data in plots