diff --git a/tikz/pairing-function/Makefile b/tikz/pairing-function/Makefile index 8b333b4..c7b5a8e 100644 --- a/tikz/pairing-function/Makefile +++ b/tikz/pairing-function/Makefile @@ -1,14 +1,14 @@ SOURCE = pairing-function DELAY = 80 DENSITY = 300 -WIDTH = 500 +WIDTH = 512 make: pdflatex $(SOURCE).tex -output-format=pdf make clean clean: - rm -rf $(TARGET) *.class *.html *.log *.aux *.data + rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot gif: pdfcrop $(SOURCE).pdf @@ -28,4 +28,6 @@ svg: #inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg pdf2svg $(SOURCE).pdf $(SOURCE).svg # Necessary, as pdf2svg does not always create valid svgs: - inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg + inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg + rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg + rm $(SOURCE)1.svg diff --git a/tikz/pairing-function/pairing-function.png b/tikz/pairing-function/pairing-function.png index 31ff522..238ee04 100644 Binary files a/tikz/pairing-function/pairing-function.png and b/tikz/pairing-function/pairing-function.png differ diff --git a/tikz/pairing-function/pairing-function.tex b/tikz/pairing-function/pairing-function.tex index 33589d4..fe1b849 100644 --- a/tikz/pairing-function/pairing-function.tex +++ b/tikz/pairing-function/pairing-function.tex @@ -30,9 +30,12 @@ compat=newest, % for better label placement font=\sansmath\sffamily, % math and normal text in sans serif xlabel=$y$, ylabel=$x$, % the label texts + ylabel style={rotate=-90}, xmin=0, ymin=0, % axis origin enlarge y limits=false, % don't enlarge the y axis beyond the data range - enlarge x limits={upper,abs=0.02}, % enlarge x axis slightly to make sure the last tick mark is drawn completely + enlarge x limits={upper,abs=0}, % enlarge x axis slightly to make sure the last tick mark is drawn completely + xticklabel style={yshift=-1ex}, + yticklabel style={xshift=-1ex}, axis lines*=left, % only draw the left axis lines, not a box unit vector ratio*={1 1 1}, % equal axis scaling. "*" to make sure the axes can only be reduced in size, not enlarged width=6cm, % set the overall width of the plot