Open MrMho opened 3 weeks ago
Looks like the issue here is the pairing confusing the automated detection of plot orientation, causing the Line
mark to sort its data incorrectly. I see two workarounds that produce the expected result with your example:
so.Path
mark instead of so.Line
(this avoids sorting — which is unnecessary after the so.PolyFit
transform anyway — so it's also marginally faster)orient="x"
explicitly in the layer where you add the line fit
When I use
so.PolyFit
(with order > 1) together withso.Plot.pair
like so:I get the following output:
It looks like the orange lines connect the values of the calculated fit in the wrong order.
numpy==1.24.2 pandas==2.0.0 matplotlib==3.7.1 seaborn==0.13.2