plot 1d and 2d convenient functions