you can now set the image size in genplot2
This commit is contained in:
5
Tests/.gitignore
vendored
Normal file
5
Tests/.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
a.scratch
|
||||
|
||||
*.tga
|
||||
|
||||
15
Tests/essai_genplot2.sh
Executable file
15
Tests/essai_genplot2.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
echo "------------------------------------------"
|
||||
echo "GO" | ./mk_dessin.awk > a.scratch
|
||||
wc a.scratch
|
||||
|
||||
echo "------------------------------------------"
|
||||
../Tools/genplot2 -s 640x480
|
||||
errcode=$?
|
||||
echo "code retour genplot2 = " $errcode
|
||||
echo "------------------------------------------"
|
||||
|
||||
echo "------------------------------------------"
|
||||
|
||||
27
Tests/mk_dessin.awk
Executable file
27
Tests/mk_dessin.awk
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/awk -f
|
||||
|
||||
# ce joli programme fabrique un fichier de donnees qui sera
|
||||
# utile au bon deroulement de 'essai_genplot2.sh'
|
||||
|
||||
BEGIN { nbretraits = 20000 }
|
||||
|
||||
END {
|
||||
for (trait=0; trait<nbretraits; trait++)
|
||||
{
|
||||
if (0.498 > rand())
|
||||
{
|
||||
posx += rand()
|
||||
posy += rand()
|
||||
print posx, posy, 1
|
||||
}
|
||||
else
|
||||
{
|
||||
posx -= rand()
|
||||
posy -= rand()
|
||||
print posx, posy, 2
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# job done
|
||||
|
||||
Reference in New Issue
Block a user