import numpy as np
import matplotlib.pyplot as plt

xs = [0.1, 0.9, 0.5, 0.1]
ys = [0.1, 0.1, 0.9, 0.1]

plt.fill(xs, ys)
plt.axis([0.0, 1.0, 0.0, 1.0])
plt.show()