Forráskód Böngészése

Improve Quality for commos QI

Martin Thoma 9 éve
szülő
commit
a0b32a4982

+ 5 - 3
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

BIN
tikz/pairing-function/pairing-function.png


+ 4 - 1
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