Prakash,

The basic code to draw/redraw is not particularly difficult but is quite long winded. I will post a partial sample later today but please confirm:

p = g = 100 regardless of other (changeable) measurements. This will impose constraints on the other values.