call a function which creates plot, then use its plot for subplot command on MATLAB