You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Use the 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)
Pass 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
The text was updated successfully, but these errors were encountered: