title: How to make a striped patch in matplotlib?
body: <p>I would like to make a patch (e.g., a <a href="https://matplotlib.org/api/_as_gen/matplotlib.patches.Rectangle.html#matplotlib.patches.Rectangle" rel="nofollow noreferrer">Rectangle</a>) that is striped (e.g. alternating yellow and red lines of equal thickness at an angle of 45º). I can think of two ways, but both seem more complicated than they should be: 1) making an <code>implot</code> and masking it, and 2) generating a separate patch for each stripe. Is there a better way to do this, preferably one that can be saved as vector graphic?</p>