Fill between x and baseline x position in Matplotlib
问题 I'm looking for a way to use fill_between in matplotlib to shade between x1 and x2 as opposed to y1 and y2. I have a series of log plots, with depth on the Y axis, and the measured variable on the x axis and would like to shade to the left or right, as opposed to above or below, of the plotted line. I'm sure this should be possible with fill_between but cant make it work. As an example: import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec gs = gridspec