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

Suggestion: lotting individual points #38

Open
keilankessie opened this issue Feb 17, 2024 · 0 comments
Open

Suggestion: lotting individual points #38

keilankessie opened this issue Feb 17, 2024 · 0 comments

Comments

@keilankessie
Copy link

When plotting individual points in matplotlib, e.g:

plt.plot(x, y, marker="x")
mplcyberpunk.add_glow_effects(gradient_fill=True)
plt.show()

The module returns three warnings:

\mplcyberpunk\core.py:172: RuntimeWarning: divide by zero encountered in divide
  moment = lambda y : (scaler(y)-scaler(ya)) / (scaler(yb)-scaler(ya))
\mplcyberpunk\core.py:172: RuntimeWarning: invalid value encountered in divide
  moment = lambda y : (scaler(y)-scaler(ya)) / (scaler(yb)-scaler(ya))
\mplcyberpunk\core.py:186: UserWarning: Attempting to set identical low and high xlims makes transformation singular; automatically expanding.
  im = ax.imshow(z,

Would it be possible for compatibility with single point plots to be implemented, with the same effects as the make_scatter_glow() function?

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

1 participant