Corrected inline plotting issue