/usr/share/ngraph-gtk/addin/append.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 37 38 39 40 | # append.nsc written by S. ISHIZAKA. 1997/12
#
# This script reads and appends a NGP-file without clearing the present graph.
#
# This script uses rather special techniques.
# We don't recommend to edit this script.
#
# Description: _Append...,append NGP file,
if [ "$*" ]
then
FILE=$*
else
new dialog
FILE=${dialog::get_open_file:'ngp'}
del dialog
fi
if [ "$FILE" ]
then
# hide exsisting 'axis', 'axisgrid' and 'data' instances
system:0:hide_instance axis axisgrid data
# execute file
new shell
shell::shell "$FILE"
del shell
# tighten connection between new instances
for i in `derive -instance data axis axisgrid`
do
exe ${i}:0-! tight
done
# recover hidden instances
system:0:recover_instance axis axisgrid data
# delete closed GRA instance
if [ ${gra::GC} = -1 ]
then
del gra
fi
menu:0:clear
menu:0:modified=true
fi
|