Wednesday, June 15, 2011
Split PDF into single pages
pdftk p_node_edit_operations.pdf burst output p_node_edit_operations_%02d.pdf
Monday, June 6, 2011
Colour a vector depending on a condition in gnuplot
plot "data.txt" using 1:2:(+0):(-($2-$3)):(($2 > $3) ? (rgb("0","255","0")):(rgb("255","0","0"))) notitle with vectors lc rgb variable
plot arrows between values in gnuplot
plot "data.txt" using 1:2 title "orig" lt 2 pt 2, \
"data.txt" using 1:3 title "step 1 1" lt 1 pt 3, \
"data.txt" using 1:2:(+0):(-($2-$3)) notitle with vectors arrowstyle 1
"data.txt" using 1:3 title "step 1 1" lt 1 pt 3, \
"data.txt" using 1:2:(+0):(-($2-$3)) notitle with vectors arrowstyle 1
Friday, June 3, 2011
Crop a PDF with Latex
\documentclass{article}
\usepackage{graphicx}
\usepackage[active,tightpage]{preview}
\PreviewMacro[{*[][]{}}]{\includegraphics}
\begin{document}
\pagestyle {empty}
\includegraphics[viewport=0 270 420 570]{NawrockiFig-crop.pdf}
\end{document}
\usepackage{graphicx}
\usepackage[active,tightpage]{preview}
\PreviewMacro[{*[][]{}}]{\includegraphics}
\begin{document}
\pagestyle {empty}
\includegraphics[viewport=0 270 420 570]{NawrockiFig-crop.pdf}
\end{document}
Subscribe to:
Posts (Atom)