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

ax.scatter or ax.plot in scatter_plot_2d? #252

Open
lukashergt opened this issue Jan 17, 2023 · 4 comments
Open

ax.scatter or ax.plot in scatter_plot_2d? #252

lukashergt opened this issue Jan 17, 2023 · 4 comments
Milestone

Comments

@lukashergt
Copy link
Collaborator

In #50 (comment) we changed scatter_plot_2d such that it uses ax.plot instead of ax.scatter:

One additional change that is mixed in here is to revert ax.scatter to ax.plot in scatter_plot_2d, since I have observed scatter to make axis limits misbehave in non-trivial ways when applied to practical examples where data have very different scales. This has been documented and will be fixed in matplotlib v3.2, but until that is merged, we should revert to ax.plot. Whilst ax.scatter is more consistent with the name of the function, moving away from that actually neatens up a lot of the colouring issues that we have seen before (#32 #21 #45 #19 #31)

The bugs are supposedly fixed by now. Do we want to go back to ax.scatter? If so, 2.0.0 would be the time to do this.

Apparently ax.plot might be faster, but ax.scatter can potentially do more.

For reference:

@lukashergt lukashergt added this to the 2.0.0 milestone Jan 17, 2023
@AdamOrmondroyd
Copy link
Collaborator

AdamOrmondroyd commented Feb 10, 2023

Unfortunately, pandas's ScatterPlot doesn't use the _make_plot() which calls _plot() pattern of HistPlot/KdePlot, but if I can get them to change this then I would agree with switching to ax.scatter

@williamjameshandley
Copy link
Collaborator

That's pretty clear. Let's remove this from 2.0.0, but keep the issue as a placeholder to remind us if/when @Ormorod fixes pandas.

@williamjameshandley williamjameshandley removed this from the 2.0.0 milestone Feb 21, 2023
@AdamOrmondroyd
Copy link
Collaborator

I hadn't realised you were keen for this change, I'll get a PR in to pandas asap

@AdamOrmondroyd
Copy link
Collaborator

AdamOrmondroyd commented Feb 24, 2023

If you could give pandas PR#51582 some love to get the ball rolling that would be great, as I suspect this will be harder to get through than a genuine bug fix

@williamjameshandley williamjameshandley added this to the 2.1.0 milestone Jun 15, 2023
@lukashergt lukashergt modified the milestones: 2.1.0, 3.0.0 Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants