How to decouple hatch and edge color in matplotlib?

Plot bar plot twice:

import matplotlib.pyplot as plt
from matplotlib.patches import Ellipse, Polygon

fig = plt.figure()
ax1 = fig.add_subplot(111)
# draw hatch
ax1.bar(range(1, 5), range(1, 5), color="none", edgecolor="red", hatch="https://stackoverflow.com/", lw=1., zorder = 0)
# draw edge
ax1.bar(range(1, 5), range(1, 5), color="none", edgecolor="k", zorder=1, lw=2.)

ax1.set_xticks([1.5, 2.5, 3.5, 4.5])
plt.show()

enter image description here

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)