better plotting in 1D