Added plotting functionality for gl and G function