Skip to content

Big white space areas above and below graphs #43

Description

@danielmgit

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions