added 1d plot