drawOnData for plotStateSpace working