captcp icon indicating copy to clipboard operation
captcp copied to clipboard

Big white space areas above and below graphs

Open danielmgit opened this issue 8 years ago • 1 comments

There is quite a big amount of white space above and below of plotted graphs. Especially when embedding in other documents this is inconvenient. Following some additions to the default makefile to automatically crop graph files:

GNUPLOT_FILES = $(wildcard *.gpi)
PNG_OBJ = $(patsubst %.gpi,%.png,  $(GNUPLOT_FILES))
PDF_OBJ = $(patsubst %.gpi,%.pdf,  $(GNUPLOT_FILES))

->TEMPFILE := $(shell mktemp)

%.pdf: %.eps
@echo "conversion in pdf format"

->@ps2epsi $< TEMPFILE ->@epstopdf --outfile=$*.pdf TEMPFILE ->@rm TEMPFILE @echo "end"

Daniel

danielmgit avatar Aug 30 '16 12:08 danielmgit

Alternatively, pdfcrop from https://launchpad.net/ubuntu/precise/+package/texlive-extra-utils can be used on the pdf file itself.

danielmgit avatar Sep 08 '16 05:09 danielmgit