math /samples=15 /xrange=-1:1 histogram /gap=1mm /cumulative=next margin 0.03 fill 0 fill-color-set default!!10 plot '0.5*cos(x)' plot 'x**2/2.25' histogram /cumulative=next plot '0.2*(x+1)' plot '0.2*(1-x)'