gestione directory

visualizzare directory corrente,eventualmente assegnare nuova directory,salvare file,richiamare file (txt,dat)
(usando le icone del menų oppure inserendo codice comando)

ipotesi:creata cartella personale in C:\progragnu\
sottocartelle in progragnu per file tipo txt, plt, dat :esetxt, eseplt, esedat
(non necessario avere pių cartelle:basterebbe progragnu)
esempi indirizzamenti con icone (non inserire apici)

OPEN.....
C:\progragnu\esetxt\..............C:\progragnu\esetxt\file.txt
SAVE.....C:\progragnu\esetxt\file.txt

esempi indirizzameti diretti da codice (inserire apici)
LOAD.....'C:\progragnu\esetxt\file.txt'
SAVE....'C:\progragnu\eseplt\file.plt'

uso di icone SAVE,OPEN o FILE

con inserimento percorso da codice

 


 

# scrivere file tipo dati prova2.dat
# regitrarlo come prova2.dat
# richiamarlo con PLOT e prova2.dat
# registrarlo con SAVE e prova2.plt
# richiamarlo con OPEN e prova2.plt
#
1	6
2	7	
3	8
4	9	
5	10
#
# fine file

 

 


richiamare file.txt con NOTES-FILE-APRI per eventuali modifiche,correzioni:poi FILE-SALVA

# esempio file scritto con notes
# registrato con SAVE c:\progragnu\esetxt\prova1.txt
# richiamato con LOAD c:\progragnu\esetxt\prova1.txt
# registrato con SAVE c:\provagnu\eseplt\prova1.plt
# richiamato con LOAD c:\provagnu\eseplt\prova1.plt
# visualizzato codice prova1.plt con NOTES :FILE..APRI...
# visualizzato listato prova1.txt con NOTES:FILE..APRI...
#
plot sin(x)
pause -1
plot cos(x)
pause -1
plot sin(x),cos(x),x
pause -1
#
# fine listato

 


richiamare file.plt con NOTES-FILE-APRI per vedere codice

#!/gnuplot
#
#
# G N U P L O T
# MS-Windows 32 bit version 3.7
# patchlevel 1
# last modified Fri Oct 22 18:00:00 BST 1999
#
# Copyright(C) 1986 - 1993, 1998, 1999
# Thomas Williams, Colin Kelley and many others
#
# Type `help` to access the on-line reference manual
# The gnuplot FAQ is available from
# <http://www.ucc.ie/gnuplot/gnuplot-faq.html>
#
# Send comments and requests for help to <info-gnuplot@dartmouth.edu>
# Send bugs, suggestions and mods to <bug-gnuplot@dartmouth.edu>
#
# set terminal windows
# set output
set noclip points
set clip one
set noclip two
set bar 1.000000
set border 31 lt -1 lw 1.000
set xdata
set ydata
set zdata
set x2data
set y2data
set boxwidth
set dummy x,y
set format x "%g"
set format y "%g"
set format x2 "%g"
set format y2 "%g"
set format z "%g"
set angles radians
set nogrid
set key title ""
set key right top Right noreverse box linetype -2 linewidth 1.000 samplen 4 spacing 1 width 0
set nolabel
set noarrow
set nolinestyle
set nologscale
set offsets 0, 0, 0, 0
set pointsize 1
set encoding default
set nopolar
set noparametric
set view 60, 30, 1, 1
set samples 100, 100
set isosamples 10, 10
set surface
set nocontour
set clabel '%8.3g'
set mapping cartesian
set nohidden3d
set cntrparam order 4
set cntrparam linear
set cntrparam levels auto 5
set cntrparam points 5
set size ratio 0 1,1
set origin 0,0
set data style points
set function style lines
set xzeroaxis lt -2 lw 1.000
set x2zeroaxis lt -2 lw 1.000
set yzeroaxis lt -2 lw 1.000
set y2zeroaxis lt -2 lw 1.000
set tics in
set ticslevel 0.5
set ticscale 1 0.5
set mxtics default
set mytics default
set mx2tics default
set my2tics default
set xtics border mirror norotate autofreq
set ytics border mirror norotate autofreq
set ztics border nomirror norotate autofreq
set nox2tics
set noy2tics
set title "" 0.000000,0.000000 ""
set timestamp "" bottom norotate 0.000000,0.000000 ""
set rrange [ * : * ] noreverse nowriteback # (currently [0.000000:10.0000] )
set trange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] )
set urange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] )
set vrange [ * : * ] noreverse nowriteback # (currently [-5.00000:5.00000] )
set xlabel "" 0.000000,0.000000 ""
set x2label "" 0.000000,0.000000 ""
set timefmt "%d/%m/%y\n%H:%M"
set xrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )
set x2range [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )
set ylabel "" 0.000000,0.000000 ""
set y2label "" 0.000000,0.000000 ""
set yrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )
set y2range [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )
set zlabel "" 0.000000,0.000000 ""
set zrange [ * : * ] noreverse nowriteback # (currently [-10.0000:10.0000] )
set zero 1e-008
set lmargin -1
set bmargin -1
set rmargin -1
set tmargin -1
set locale "C"
plot sin(x),cos(x),x
# EOF