The following code
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
df = pd.DataFrame({"x": [1.0, 2.0, 3.0, 4.0, 5.0], "y": [1.5, 4.2, 5.8, 8.6, 11.0], "z": [0.0, 2.0, 3.0, 3.5, 4.0]})
sns.lmplot(df, x="x", y="y", x_partial="z")
plt.show()
produces the following figure
This is in contrast to sns.regplot(df, x="x", y="y", x_partial="z"), which yields
where xlim is correctly set for the x-axis. The same issue interestingly does not occur with y_partial.
The following code
produces the following figure
This is in contrast to
sns.regplot(df, x="x", y="y", x_partial="z"), which yieldswhere xlim is correctly set for the x-axis. The same issue interestingly does not occur with y_partial.