Calculate shape and plot (1D)