generating plot for IMR