use median and make a plot