1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-10-05 18:30:51 +00:00

Use pdf device for printing

This commit is contained in:
Carles Fernandez 2018-02-14 16:26:38 +01:00
parent 9a563f02cc
commit 4be7f08ce4

View File

@ -165,7 +165,7 @@ run-experiment:
- apt-get update
- apt-get upgrade -y
# Grab analysis and representation tools
- apt-get install -y octave epstool slang-xfig transfig
- apt-get install -y octave texlive-latex-base texlive-fonts-recommended texlive-latex-extra
# Grab the data set
- apt-get install -y curl
- cd data
@ -175,7 +175,7 @@ run-experiment:
- md5sum -c data.md5
- cd ..
# Execute the experiment (example)
- echo " x = 0:0.01:3; hf = figure (\"visible\", \"off\"); plot (x, erf (x)); hold on; plot (x, x, \"r\"); axis ([0, 3, 0, 1]); text (0.65, 0.6175, ['$\displaystyle\leftarrow x = {2\over\sqrt{\pi}}' '\int_{0}^{x}e^{-t^2} dt = 0.6175$']); xlabel (\"x\"); ylabel (\"erf (x)\"); title (\"erf (x) with text annotation\"); print (hf, \"results.pdf\", \"-pdf\"); " >> my_test_file.m
- echo " x = 0:0.01:3; hf = figure (\"visible\", \"off\"); plot (x, erf (x)); hold on; plot (x, x, \"r\"); axis ([0, 3, 0, 1]); text (0.65, 0.6175, ['$\displaystyle\leftarrow x = {2\over\sqrt{\pi}}' '\int_{0}^{x}e^{-t^2} dt = 0.6175$']); xlabel (\"x\"); ylabel (\"erf (x)\"); title (\"erf (x) with text annotation\"); print (hf, \"results.pdf\", \"-dpdf\"); " > my_test_file.m
- octave --no-gui my_test_file.m
- mkdir results
- cp results.pdf results/