iccsa-19-vessel

git clone https://git.igankevich.com/iccsa-19-vessel.git
Log | Files | Refs

commit b34641c0485ff56e9b21b0ac83a5d0ea6f9a9847
parent 06c42af1c653eb5c5033c08ccb09528edb516d4c
Author: Ivan Gankevich <igankevich@ya.ru>
Date:   Sat, 30 Mar 2019 15:21:27 +0300

Sections.

Diffstat:
Makefile | 7+++++--
gnuplot/sections.dat | 116+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
gnuplot/sections.gnuplot | 16++++++++++++++++
gnuplot/style.gnuplot | 32++++++++++++++++++++++++++++++++
main.tex | 4+++-
5 files changed, 172 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -12,8 +12,11 @@ FLAGS = \ NAME = iccsa-19-vtestbed build/$(NAME).pdf: main.tex - @echo " LATEX $<" - @-$(LATEXMK) $(FLAGS) -f $< +build/$(NAME).pdf: build/sections.eps + @-$(LATEXMK) $(FLAGS) -f main.tex + +build/sections.svg: gnuplot/sections.dat gnuplot/sections.gnuplot + ./gnuplot/sections.gnuplot build/%.eps: build/%.svg inkscape -z --export-eps=$@ $< diff --git a/gnuplot/sections.dat b/gnuplot/sections.dat @@ -0,0 +1,116 @@ +26 0 0 +6.25 0 7 +7.6 0 8 +7.6 0 9 +7.4 0 9.5 +6.2 0 10 +6 0 10.5 +4.75 0 11 +0.7 0 12 +-7.2 0 14 +-12 0 16 +-13.52 0 18 +-14 0 20 +-13.9 0 22 +-13.2 0 24 +-12.3 0 26 +-11.2 0 28 +-9.1 0 31 +33 8.02 30.7 +33 8.02 30.2 +33 8.32 28 +33 8.51 26 +33 8.52 24 +33 8.38 22 +33 7.82 20 +33 7.11 18 +33 6.21 16 +33 5.12 14 +33 4.27 12 +33 3.98 10 +33 4.23 8 +33 4.23 6 +33 1.9 4 +33 0.77 2 +33 0.61 1.5 +33 0.33 0 +26 0 0 + + +220 0 0 +236.5 0 0.113 +241 0 0.66 +243.4 0 1.5 +244.7 0 1.8 +244.7 0 2 +246 0 4 +245.2 0 6 +242 0 8 +236.4 0 10 +229.5 0 12 +223.6 0 14 +220 0 16 +218.32 0 18 +217.2 0 20 +217 0 22 +217.32 0 24 +218 0 26 +218.66 0 28 +219 0 28.8 +209 2.67 28.8 +209 2.67 28 +209 2.02 26 +209 1.52 24 +209 1.17 22 +209 0.98 20 +209 0.98 18 +209 1.29 16 +209 2.04 14 +209 3.13 12 +209 4.52 10 +209 5.78 8 +209 6.64 6 +209 6.77 4 +209 5.92 2 +209 5.43 1.5 +209 1 0 +220 0 0 + + +209 1 0 +198 1 0 +187 1 0 +176 1 0 +165 1 0 +154 1 0 +143 1 0 +132 1 0 +121 1 0 +110 1 0 +99 1 0 +88 1 0 +77 1 0 +66 1 0 +55 0.9 0 +44 0.7 0 +33 0.33 0 +33 8.02 30.7 +44 9.11 30.6 +55 10 30.4 +66 9.39 30.2 +77 9.69 29.9 +88 9.97 29.7 +99 10.1 29.5 +110 10.11 29.35 +121 10.11 29.2 +132 9.96 29 +143 9.57 29 +154 9 29 +165 8 29 +176 6.65 29 +187 6.51 28.8 +198 4.6 28.8 +209 2.67 28.8 +209 1 0 + + diff --git a/gnuplot/sections.gnuplot b/gnuplot/sections.gnuplot @@ -0,0 +1,16 @@ +#!/usr/bin/gnuplot -d + +set terminal svg size 1920/4,1080/10 dynamic round font 'Times, 10' lw 0.5 +load 'gnuplot/style.gnuplot' +set size ratio -1 +unset border +unset xtics +unset ytics +set key center bottom reverse Left outside maxrows 1 +#set style fill pattern border lc '#404040' + +set output 'build/sections.svg' +plot \ + 'gnuplot/sections.dat' index 0 using 1:3 with filledcurve closed fs pattern 1 ls 1 title 'aft', \ + '' index 2 using 1:3 with filledcurve closed fs pattern 4 ls 3 title 'main', \ + '' index 1 using 1:3 with filledcurve closed fs pattern 2 ls 2 title 'bow' diff --git a/gnuplot/style.gnuplot b/gnuplot/style.gnuplot @@ -0,0 +1,32 @@ + +# line styles for ColorBrewer Paired +# for use with qualitative/categorical data +# provides 8 colors in 4 pairs +# compatible with gnuplot >=4.2 +# author: Anna Schneider + +# line styles +set style line 1 lt 1 lc rgb '#A6CEE3' # light blue +set style line 2 lt 1 lc rgb '#1F78B4' # dark blue +set style line 3 lt 1 lc rgb '#B2DF8A' # light green +set style line 4 lt 1 lc rgb '#33A02C' # dark green +set style line 5 lt 1 lc rgb '#FB9A99' # light red +set style line 6 lt 1 lc rgb '#E31A1C' # dark red +set style line 7 lt 1 lc rgb '#FDBF6F' # light orange +set style line 8 lt 1 lc rgb '#FF7F00' # dark orange + +# palette +set palette maxcolors 8 +set palette defined ( 0 '#A6CEE3',\ + 1 '#1F78B4',\ + 2 '#B2DF8A',\ + 3 '#33A02C',\ + 4 '#FB9A99',\ + 5 '#E31A1C',\ + 6 '#FDBF6F',\ +7 '#FF7F00' ) + +set xtics nomirror out +set ytics nomirror out +set border 1+2 + diff --git a/main.tex b/main.tex @@ -92,7 +92,9 @@ straight lines. \begin{figure} \centering - \caption{\label{fig:sections}} + \includegraphics{build/sections.eps} + \caption{Three sections of a ship hull as defined by VSL + format.\label{fig:sections}} \end{figure} Ship hull is transformed from analytic to discrete form by using