/usr/share/ngraph-gtk/addin/legend.nsc is in ngraph-gtk-addins 6.07.02-2build3.
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 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | # legend.nsc written by S. ISHIZAKA. 1997/12
#
# This script generates a legend box.
#
# Please edit the following X, Y, and WIDTH variables as you like.
#
# Description: _Legend...,automatic legend generator,
X=5000 # top-left of the legend to be inserted.
Y=5000 # top-left of the legend to be inserted.
WIDTH=2000 # width of "type" field.
if [ `object data -instance` != 0 ]
then
DATALIST=${system:0:temp_file}
object data -instance > "$DATALIST"
get data:0-! -id -field source file array id hidden x y type mark_type mark_size line_width line_style R G B R2 G2 B2 math_x math_y >> "$DATALIST"
SCRIPT=${system:0:temp_file}
"${NGRAPHLIB}/legend" -x ${X} -y ${Y} -w ${WIDTH} "$DATALIST" "$SCRIPT"
if [ -s "$SCRIPT" ];
then
new shell
shell::shell "$SCRIPT"
del shell
gra::clear
gra::draw
gra::flush
fi
system:0:unlink_temp_file "$DATALIST"
system:0:unlink_temp_file "$SCRIPT"
else
new dialog
dialog::beep
dialog::message "No data file."
del dialog
fi
|