plot changed according to changes in value class