Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a stable algorithm in sorting marks #3064

Merged
merged 1 commit into from
Oct 8, 2022
Merged

Use a stable algorithm in sorting marks #3064

merged 1 commit into from
Oct 8, 2022

Conversation

mwaskom
Copy link
Owner

@mwaskom mwaskom commented Oct 8, 2022

Closes #3059. With the example from that issue:

(
    so.Plot(x=falseposrate_logistic, y=trueposrate_logistic)
    .add(so.Line(marker="o", pointsize=2))
)

I wasn't able to cook up a toy example to demonstrate the problem so I haven't added a separate test for it. Would be a great addition if anyone can come up with one (i.e. not involving scikit learn, etc.).

@codecov
Copy link

codecov bot commented Oct 8, 2022

Codecov Report

Merging #3064 (8f9c372) into master (c412ddf) will not change coverage.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3064   +/-   ##
=======================================
  Coverage   98.38%   98.38%           
=======================================
  Files          72       72           
  Lines       23537    23537           
=======================================
  Hits        23156    23156           
  Misses        381      381           
Impacted Files Coverage Δ
seaborn/_marks/area.py 96.51% <100.00%> (ø)
seaborn/_marks/line.py 100.00% <100.00%> (ø)

@mwaskom mwaskom merged commit 5013aea into master Oct 8, 2022
@mwaskom mwaskom deleted the line/sorting branch October 8, 2022 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

so.Line appears to be plotting some line segments out of order for Numpy arrays
1 participant