Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Allow dragging in matplotlib 3d plots.
It seems that dragging is not support by matplotlib when drawing and visualizing 3D plots interactively, though rotating and zooming are supported. This can be very inconvenient when you want to visualize and observe a small part of a 3D plot with large range, e.g., a large point cloud scene. Thus, if you also meet this problem like I do, have a try of this one.
pip install mplot3d-dragger
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
# import Dragger3D
from mplot3d_dragger import Dragger3D
fig = plt.figure()
ax = Axes3D(fig)
# ... (your plotting) ...
# wrap your axes with Dragger3D
dr = Dragger3D(ax)
# or for real-time dragging
# dr = Dragger3D(ax, real_time=True)
# but this can be stuttering
# when you have a lot of objects in one figure
# show()
plt.show()
Press SPACE, drag 3D objects by moving your cursor on figure (do not press mouse key), and release SPACE.
FAQs
Allow dragging in matplotlib 3d plots.
We found that mplot3d-dragger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.