Serialization/deserialization of Plot objects.