Skip to content
Snippets Groups Projects
Commit 1c502ce0 authored by Alexis  CRISCUOLO's avatar Alexis CRISCUOLO
Browse files

1.1

parent e188eaab
No related branches found
No related tags found
No related merge requests found
......@@ -303,7 +303,7 @@ then
[ $XMAX -gt 5000 ] && step=500;
for x in $(seq 0 $step $(( $XMAX + $step )))
do
x1=$(bc -l <<<"scale=3;$HXSTART+$x*$HWIDTH/($XMAX+$step/2)" | sed 's/^\./0\./');
x1=$(bc -l <<<"scale=3;$HXSTART+$x*$HWIDTH/($XMAX+$step)" | sed 's/^\./0\./');
y1=$HYSTART;
x2=$x1;
y2=$(( $HYSTART + $HHEIGTH + 3 ));
......@@ -320,7 +320,7 @@ then
do
x=$HXSTART;
y=$(( $y + 10 ));
w=$(bc -l <<<"scale=3;$card*$HWIDTH/($XMAX+$step/2)" | sed 's/^\./0\./');
w=$(bc -l <<<"scale=3;$card*$HWIDTH/($XMAX+$step)" | sed 's/^\./0\./');
h=8;
echo -e " <rect x=\"$x\" y=\"$y\" width=\"$w\" height=\"$h\" stroke=\"$HCOLOR\" stroke-width=\"0.1\" fill=\"#$hex\" />\n";
done < $FTMP ;
......@@ -403,7 +403,7 @@ else
[ $XMAX -gt 5000 ] && step=500;
for x in $(seq 0 $step $(( $XMAX + $step )))
do
x1=$(bc -l <<<"scale=3;$FXSTART+$x*$FWIDTH/($XMAX+$step/2)" | sed 's/^\./0\./');
x1=$(bc -l <<<"scale=3;$FXSTART+$x*$FWIDTH/($XMAX+$step)" | sed 's/^\./0\./');
y1=$(( $FYSTART - 1 ));
x2=$x1;
y2=$(( $FYSTART + $FHEIGTH + 2 ));
......@@ -434,7 +434,7 @@ else
# CDS
x=$FXSTART;
y1=$(( $y + 1 ));
w=$(bc -l <<<"scale=3;$nrbh*$FWIDTH/($XMAX+$step/2)" | sed 's/^\./0\./');
w=$(bc -l <<<"scale=3;$nrbh*$FWIDTH/($XMAX+$step)" | sed 's/^\./0\./');
h=2;
echo -e " <rect x=\"$x\" y=\"$y1\" width=\"$w\" height=\"$h\" stroke=\"$FCOLOR\" stroke-width=\"0.1\" fill=\"olive\" />\n";
x=$(bc -l <<<"scale=3;$x+$w" | sed 's/^\./0\./');
......@@ -476,7 +476,7 @@ else
h=11;
while IFS=$'\t' read -r hex ctg card
do
w=$(bc -l <<<"scale=3;$card*$FWIDTH/($XMAX+$step/2)" | sed 's/^\./0\./');
w=$(bc -l <<<"scale=3;$card*$FWIDTH/($XMAX+$step)" | sed 's/^\./0\./');
echo -e " <rect x=\"$x\" y=\"$y2\" width=\"$w\" height=\"$h\" stroke=\"$FCOLOR\" stroke-width=\"0.1\" fill=\"#$hex\" />\n";
x=$(bc -l <<<"scale=3;$x+$w" | sed 's/^\./0\./');
done < $FTMP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment