Il 07/09/03 Massimiliano Mirra <mmirra@xxxxxxxxx> ha scritto: > Magari c'è anche un modo per passargli un insieme di punti arbitrario > (che rappresenti ad esempio dei poligoni) e farglielo disegnare? Non > mi dispiacerebbe usarlo come visualizzatore per xSpace (traduzione: > sbolognare tutto il lavoro sull'interfaccia ad un programma bell'e > pronto...). Certo! Io l'ho usato proprio per questo: ho realizzato un programma in C che scrive opportunamente i punti su un file di testo. Poi ho integrato il tutto con uno script di shell, che avvia gnuplot con tale file di testo. Gnuplot collega i punti con rette e disegna il profilo della montagna che sto analizzando. :-) Esempio: set arrow from 0,0 to 10,12 nohead (traccia una retta fra due punti) Se invece metti i punti in un file di testo, puoi anche scegliere di collegarli interpolandoli con curve invece che con rette. Ti allego il mio file del pendio. Per disegnarlo, basta dare: gnuplot plottaggio.txt Se ti vuoi divertire, puoi anche redirigere l'output su file: ottieni meravigliosi file LaTeX, Postscript, png... :) > p.s.: Ci si rilegge la settimana prossima. Voi genovesi non volete > farvi un giro a Marzaglia? E' a metà strada, sarebbe ideale. :-) Negativo. :-( Non ho neanche il tempo per dormire. Credevi forse che non ci avessi già pensato? Vedere in carne ed ossa i miei amici del SannioLUG?!?! Peccato! :-(((((((((((((((((((((((( -- Bartolomeo -------->
set grid set key title "PENDIO" box set arrow from 0.000000,25.850000 to 0.000000,25.850000 nohead lt 2 set arrow from 1.750000,24.820000 to 1.750000,23.340000 nohead lt 2 set arrow from 3.500000,23.520000 to 3.500000,21.170000 nohead lt 2 set arrow from 5.250000,22.220000 to 5.250000,19.110000 nohead lt 2 set arrow from 7.000000,20.920000 to 7.000000,17.200000 nohead lt 2 set arrow from 8.750000,19.630000 to 8.750000,15.430000 nohead lt 2 set arrow from 10.500000,18.390000 to 10.500000,13.790000 nohead lt 2 set arrow from 12.250000,17.150000 to 12.250000,12.260000 nohead lt 2 set arrow from 14.000000,15.910000 to 14.000000,10.830000 nohead lt 2 set arrow from 15.750000,14.680000 to 15.750000,9.490000 nohead lt 2 set arrow from 17.500000,13.410000 to 17.500000,8.250000 nohead lt 2 set arrow from 19.250000,12.120000 to 19.250000,7.080000 nohead lt 2 set arrow from 21.000000,10.820000 to 21.000000,5.990000 nohead lt 2 set arrow from 22.750000,9.530000 to 22.750000,4.980000 nohead lt 2 set arrow from 24.500000,8.230000 to 24.500000,4.030000 nohead lt 2 set arrow from 26.250000,6.880000 to 26.250000,3.150000 nohead lt 2 set arrow from 28.000000,5.520000 to 28.000000,2.330000 nohead lt 2 set arrow from 29.750000,4.160000 to 29.750000,1.570000 nohead lt 2 set arrow from 31.500000,2.800000 to 31.500000,1.100000 nohead lt 2 set arrow from 33.250000,1.440000 to 33.250000,0.570000 nohead lt 2 set arrow from 35.000000,0.000000 to 35.000000,0.000000 nohead lt 2 plot '-' title "strato 1" w l lw 4, '-' title "strato 2" w l lt 1, '-' title "falda" w l, '-' title "sup. scivolamento" w l lt 2 lw 2 0.000000 25.850000 1.750000 24.820000 3.500000 23.520000 5.250000 22.220000 7.000000 20.920000 8.750000 19.630000 10.500000 18.390000 12.250000 17.150000 14.000000 15.910000 15.750000 14.680000 17.500000 13.410000 19.250000 12.120000 21.000000 10.820000 22.750000 9.530000 24.500000 8.230000 26.250000 6.880000 28.000000 5.520000 29.750000 4.160000 31.500000 2.800000 33.250000 1.440000 35.000000 0.000000 e 0.000000 24.400000 1.750000 23.340000 3.500000 22.130000 5.250000 20.910000 7.000000 19.700000 8.750000 18.480000 10.500000 17.270000 12.250000 16.060000 14.000000 14.840000 15.750000 13.630000 17.500000 12.410000 19.250000 11.200000 21.000000 9.990000 22.750000 8.570000 24.500000 7.160000 26.250000 5.650000 28.000000 4.130000 29.750000 2.620000 31.500000 1.100000 33.250000 -0.420000 35.000000 -2.020000 e 0.000000 21.780000 1.750000 20.660000 3.500000 19.530000 5.250000 18.410000 7.000000 17.200000 8.750000 16.160000 10.500000 15.040000 12.250000 13.910000 14.000000 12.790000 15.750000 11.660000 17.500000 10.540000 19.250000 9.420000 21.000000 8.290000 22.750000 7.260000 24.500000 6.230000 26.250000 5.210000 28.000000 4.130000 29.750000 3.150000 31.500000 2.120000 33.250000 1.090000 35.000000 0.000000 e 0.000000 25.850000 1.750000 23.340000 3.500000 21.170000 5.250000 19.110000 7.000000 17.200000 8.750000 15.430000 10.500000 13.790000 12.250000 12.260000 14.000000 10.830000 15.750000 9.490000 17.500000 8.250000 19.250000 7.080000 21.000000 5.990000 22.750000 4.980000 24.500000 4.030000 26.250000 3.150000 28.000000 2.330000 29.750000 1.570000 31.500000 1.100000 33.250000 0.570000 35.000000 0.000000 e pause -1