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

return ax from scatter for external usage #253

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

return ax from scatter for external usage #253

wants to merge 2 commits into from

Conversation

PythonFZ
Copy link
Member

@PythonFZ PythonFZ commented Jan 4, 2024

No description provided.

@PythonFZ PythonFZ requested a review from M-R-Schaefer January 4, 2024 11:29
@@ -42,7 +42,7 @@ def density_scatter(ax, x, y, bins, **kwargs) -> None:
# Sort the points by density, so that the densest points are plotted last
idx = z.argsort()
x, y, z = x[idx], y[idx], z[idx]
ax.scatter(x, y, c=z, **kwargs)
return ax.scatter(x, y, c=z, **kwargs)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this return ax itself?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought I need this change, but I found another solution. There is probably a better way to make this function more user friendly, but we can also close.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mind either way

@PythonFZ PythonFZ added the wontfix This will not be worked on label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants