|
From: Grothausmann, R. Dr. <gro...@mh...> - 2016-06-24 07:57:15
|
Dear mailing list members, Is there any way to set the SVG viewbox to the auto-calculated margins after plotting? Or any other way to get an SVG with all margins set to 0 BUT not losing everything outside the margins like annotations? I tried: set terminal svg set lmargin 0 set rmargin 0 set tmargin 0 set bmargin 0 set xlabel "test" but the output SVG does not contain any text/elements outside the margins. When not setting the margins to 0, and adjusting the viewbox of the SVG afterwards (with the border coords found via inkscape) works, but I can't find a way to get the auto-computed margin values to e.g. create a sed-command that adjusts the viewbox accordingly after gnuplot finished. I checked show variables all for variables containing fitting values. GPVAL_TERM_XMIN fits viewbox-x and GPVAL_TERM_XMAX-GPVAL_TERM_XMIN fits viewbox-width; GPVAL_TERM_YMAX-GPVAL_TERM_YMIN fits viewbox-height but GPVAL_TERM_YMIN does NOT fit viewbox-y. I could find no other value in the list that would fit or allow to calculate the correct value for viewbox-y as later found via inkscape. Any help or hints are very much appreciated Roman |