Fix script for generation of dummy artificial data. Fix plotting xndarray with dim of length 1