Python 3.7: Fill area between two lines with different x-axes values that zigzag a lot
问题 I have a dataset whose uncertainty I would like to represent as a filled region around the main plot. The errors are large in the x-axes direction, so I have not been able to use plt.fill_between(x, y1, y2) , which requires a common set of x-axes. I have tried using plt.fill(np.append(x1, x2[::-1])) as suggested elsewhere on this website, but because my data zigzags up and down a lot, the filled regions end up looking like nodes (see attached figure). What I would like to accomplish is a