Saturday, May 7, 2011

Draw nice RNA 2d structures in PGF/TikZ

Vienna package - RNAplot:
RNAplot -o svg

change colours in inkscape if desired

transform inkscape svg to pgf/tikz code:
inkscape2tikz -o output.tex input.svg

change tikz code, e.g. add
\tikzstyle{every node} = [fill=white]
for better readability, and delete
line width = XXX
for standard line width

Remove background rectangle
 \path[draw=white,fill=white,rounded corners=0.0000cm] (0.0000,0.0000) rectangle  (452.0000,452.0000);

No comments:

Post a Comment