mplcyberpunk icon indicating copy to clipboard operation
mplcyberpunk copied to clipboard

Suggestion: lotting individual points

Open keilankessie opened this issue 1 year ago • 0 comments

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?

keilankessie avatar Feb 17 '24 17:02 keilankessie