Fixed bug, instead of using global active power, global reactive power is used
completed plot 4