added plotting functions for 1D and 2D NDs