Most plotting methods like plot() and errorbar automatically change to the next colour in the color_palette when you plot multiple things on the same graph. For some reason this is not the case for fill_between(). I know that I could hard-code this but it is done in a loop which makes it annoying. Is there a good way to get around this?
import numpy as np
import matplotlib.pyplot as plt
x = np.asarray([1.0, 2.0, 3.0, 4.0, 5.0])
y = np.asarray([1.0, 2.0, 3.0, 4.0, 5.0])
xerr = np.asarray([0.2, 0.4, 0.6, 0.8, 1.0])
yerr = np.asarray([0.1, 0.2, 0.3, 0.4, 0.5])
plt.fill_between(x, y-yerr, y+yerr,alpha=0.5)
plt.fill_between(y,x-xerr,x+xerr,alpha=0.5)
plt.show()
Maybe just to get the current position in the palette and iterate to the next will be enough.