/usr/share/gnudatalanguage/lib/py_plot.pro is in libgnudatalanguage0 0.9.7-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ;; simple example file for using python's matplotlib package from GDL
pro PY_PLOT,x,y,XLABEL=xlabel,YLABEL=ylabel,TITLE=title,GRID=grid
on_error, 2
if N_ELEMENTS( xlabel) eq 1 then begin
PYTHON,"matplotlib.matlab","xlabel",STRING(xlabel)
endif
if N_ELEMENTS( ylabel) eq 1 then begin
PYTHON,"matplotlib.matlab","ylabel",STRING(ylabel)
endif
if N_ELEMENTS( title) eq 1 then begin
PYTHON,"matplotlib.matlab","title",STRING(title)
endif
if KEYWORD_SET( grid) then begin
PYTHON,"matplotlib.matlab","grid",1
endif
PYTHON,"python_plot","py_plot",x,y
end
|