Go to
http://win.ua.ac.be/~nschloe/content/matlab2tikz
download the zipfile, place .m-scripts in matlab working directory.
Print to TiKz figure from matlab with
matlab2tikz( 'myfile.tikz' );
correct the plot labels (escape %, remove or add $ for math mode), embed into
LaTeX file by
\newlength\fheight \newlength\fwidth \setlength\fheight{4cm} \setlength\fwidth{6cm} \input{myfile.tikz}
Thursday, July 14, 2011
Wednesday, July 13, 2011
Loop over multiple files
Loop over multiple input files and do something, beep when done.
for i in `ls ../../data/bralibase/unaligned/*/*.fa`; do perl planACstar.pl -p=9 -q=9 $i >> $i.res; done; beep
Friday, July 8, 2011
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
Subscribe to:
Posts (Atom)