new function to plot three curves in one chart