61 def plot(self, axes=None, **kwargs):
62 """Plot polygon with matplotlib
66 axes : `matplotlib.axes.Axes`
67 Matplotlib axes to use, or None
69 Additional arguments to `matplotlib.axes.Axes.plot`
70 or `matplotlib.axes.Axes.scatter`.
74 axes : `matplotlib.axes.Axes`
75 The axes used to make the plot (same as ``axes``, if provided).
79 import matplotlib.pyplot
as plt
83 x = (p1.getX(), p2.getX())
84 y = (p1.getY(), p2.getY())
85 axes.plot(x, y, **kwargs)
87 x = numpy.array([p[0]
for p
in vertices])
88 y = numpy.array([p[1]
for p
in vertices])
89 axes.scatter(x, y, **kwargs)