add plotGratingMode feature working with getGratingMode method