
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
autogpy: AutoGnuplot.py - automatic generation of gnuplot figures from python, including scripts and data.
Author: Alessandro Corbetta, 2019-2020
Documentation: https://acorbe.github.io/autogpy/
Examples Link
Github Link
autogpy
eliminates annoying duplications of code and data when employing python for data analysis and gnuplot for figures. Providing a gnuplot-like or a matplotlib-like syntax, autogpy
automatically generates gnuplot scripts and dumps suitably the data.
plot
can be producedplt.hist
-like gnuplot histogram figures generatorRequirements
pdftoppm
(via poppler-utils
) or imagemagick
to convert the output pdf figures in png format for jupyter notebook previewVia pip
pip install autogpy
On Google Colab
!apt install gnuplot texlive poppler-utils ghostscript texlive-latex-extra
!pip install autogpy
From source
git clone git@github.com:acorbe/autogpy.git
pip install autogpy/
Please see also the examples and the documentation.
import autogpy
import numpy as np
xx = np.linspace(0,6,100)
yy = np.sin(xx)
zz = np.cos(xx)
with autogpy.AutogpyFigure("test_figure") as figure:
# gnuplot-like syntax
figure.plot(r'with lines t "sin"',xx,yy)
# matplotlib-like syntax
figure.plot(xx,zz,u='1:2',w='lines',label='cos')
generates the following figure (also appearing in jupyter)
Most importantly, the following source and data are created in the folder test_figure
$ ls test_figure
.gitignore
Makefile
sync_me.sh
fig__0__.dat
fig__1__.dat
fig__.core.gnu
fig__.jpg.gnu
fig__.pdflatex_compile.sh
fig__.pdflatex.gnu
fig__.tikz_compile.sh
fig__.tikz.gnu
With make
one can obtain jpg, epslatex, and tikz/pgfplot versions of the figure. Notice that the input data has been formatted automatically and dumped in the .dat
files.
Inspecting the fig__.pdflatex.gnu
, responsible of the epslatex version of the figure, one gets:
set terminal epslatex size 9.9cm,8.cm color colortext standalone 'phv,12 ' linewidth 2
set output 'fig.latex.nice/plot_out.tex'
p "fig__0__.dat" with lines t "sin",\
"fig__1__.dat" u 1:2 with lines t "cos"
KWONW ISSUES
gnuplot-tikz.lua
. Some versions of these might have bugs. Call figure.display_fixes()
to show known fixes.FAQs
autogpy: AutoGnuplot.py - automatic generation of gnuplot figures from python, including scripts and data.
We found that autogpy 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.