add revision plot code
Merge branch 'Tuesbranch'