2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-19 11:38:05 +02:00

Improve Quality for commos QI

This commit is contained in:
Martin Thoma 2016-05-24 21:43:16 +02:00
parent dda1d701ab
commit a0b32a4982
3 changed files with 9 additions and 4 deletions

View file

@ -1,14 +1,14 @@
SOURCE = pairing-function SOURCE = pairing-function
DELAY = 80 DELAY = 80
DENSITY = 300 DENSITY = 300
WIDTH = 500 WIDTH = 512
make: make:
pdflatex $(SOURCE).tex -output-format=pdf pdflatex $(SOURCE).tex -output-format=pdf
make clean make clean
clean: clean:
rm -rf $(TARGET) *.class *.html *.log *.aux *.data rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
gif: gif:
pdfcrop $(SOURCE).pdf pdfcrop $(SOURCE).pdf
@ -28,4 +28,6 @@ svg:
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg #inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
pdf2svg $(SOURCE).pdf $(SOURCE).svg pdf2svg $(SOURCE).pdf $(SOURCE).svg
# Necessary, as pdf2svg does not always create valid svgs: # 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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Before After
Before After

View file

@ -30,9 +30,12 @@
compat=newest, % for better label placement compat=newest, % for better label placement
font=\sansmath\sffamily, % math and normal text in sans serif font=\sansmath\sffamily, % math and normal text in sans serif
xlabel=$y$, ylabel=$x$, % the label texts xlabel=$y$, ylabel=$x$, % the label texts
ylabel style={rotate=-90},
xmin=0, ymin=0, % axis origin xmin=0, ymin=0, % axis origin
enlarge y limits=false, % don't enlarge the y axis beyond the data range 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 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 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 width=6cm, % set the overall width of the plot