added direct plotting ability.