fix console correlation plot function