poly_gate() uses path.Path() from matplotlib
poly_gate() uses path.Path() from matplotlib