preliminary version - plotting x0 and x1