encoder with plot data