Youprevious question suggests you already have the center coordinates, why not save that variable as well? Anyway, you can easily extend the solution there to include the center coordinate.
(Also, it's better not to overwrite thepatch function with a variable)
Best Answer