From fe86c7399d9bc20f7f95f7557d6d2b80e7b86be3 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 29 Jan 2019 15:23:53 +0100 Subject: Revamp gnuplot plotting to generate better output Using the pdfcairo terminal for generating fluid flow plots in gnuplot using raw paraview-generated CSV exports generates high quality results. Sadly the resulting files are both unoptimized and quite big which leads to both large and unperformant documents (i.e. some PDF readers even crash) As an alternative this new gnuplot structure generates the fluid plot itself using the pngcairo terminal and includes the resulting high-resolution PNG image into a normal pdfcairo plot. This works out quite well. As a side benefit the plot scripts are now much easier to maintain. --- img/common/knudsen_wrapper.gnuplot | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 img/common/knudsen_wrapper.gnuplot (limited to 'img/common/knudsen_wrapper.gnuplot') diff --git a/img/common/knudsen_wrapper.gnuplot b/img/common/knudsen_wrapper.gnuplot new file mode 100644 index 0000000..5562b56 --- /dev/null +++ b/img/common/knudsen_wrapper.gnuplot @@ -0,0 +1,16 @@ +reset + +set term pdfcairo enh size 21cm, 5cm +set output 'static/'.plotname.'.pdf' + +set palette defined (0 "dark-green", 0.5 "dark-green", 0.5 "yellow", 1.5 "yellow", 1.5 "red", 2 "red") + +set size ratio -1 +set xtics 0,2,22 +set ytics 0,1,4 +set cbtics ("{/Symbol \243}0" 0, "1" 1, "{/Symbol \263}2" 2) +set cbrange [0:2] + +set cblabel "Verfeinerungskriterium" offset 1,0 + +plot 'tmp/'.plotname.'.png' binary filetype=png origin=(0.00625,0.00625) dx=0.00625 dy=0.00625 with rgbimage palette -- cgit v1.2.3