I have data in a simple pandas table with two columns: depth and a datum. There are multiple samples per depth. Using seaborn's relplot, I can produce a nice plot of the data using:
import seaborn as sns
sns.relplot(x='depth', y='datum', ci='sd', kind='line', data=myData)
This works as expected. However, it makes a lot more sense for depth to be on the y axis, because that represents the earth more faithfully. If I tell seaborn to swap the axes like this:
sns.relplot(y='depth', x='datum', ci='sd', kind='line', data=myData)
it does not work, of course, because the standard deviation is computed with respect to the x-axis. Is there a way to swap the axes, yet compute and plot the standard deviation with respect to what is now the y-axis?