Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big white space areas above and below graphs #43

Open
danielmgit opened this issue Aug 30, 2016 · 1 comment
Open

Big white space areas above and below graphs #43

danielmgit opened this issue Aug 30, 2016 · 1 comment

Comments

@danielmgit
Copy link
Contributor

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
Copy link
Contributor Author

danielmgit commented Sep 8, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant