diff options
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.
Diffstat (limited to 'img/common/knudsen_wrapper.gnuplot')
-rw-r--r-- | img/common/knudsen_wrapper.gnuplot | 16 |
1 files changed, 16 insertions, 0 deletions
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 |