plot inversion