\begin{Verbatim}[commandchars=\\\{\}]
\PYG{n}{gd\PYGZus{}diagram}\PYG{o}{.}\PYG{n}{draw}\PYG{p}{(}
    \PYG{n+nb}{format}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{}linear\PYGZdq{}}\PYG{p}{,}
    \PYG{n}{orientation}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{}landscape\PYGZdq{}}\PYG{p}{,}
    \PYG{n}{pagesize}\PYG{o}{=}\PYG{l+s+s2}{\PYGZdq{}A4\PYGZdq{}}\PYG{p}{,}
    \PYG{n}{fragments}\PYG{o}{=}\PYG{l+m+mi}{4}\PYG{p}{,}
    \PYG{n}{start}\PYG{o}{=}\PYG{l+m+mi}{0}\PYG{p}{,}
    \PYG{n}{end}\PYG{o}{=}\PYG{n+nb}{len}\PYG{p}{(}\PYG{n}{record}\PYG{p}{),}
\PYG{p}{)}
\PYG{n}{gd\PYGZus{}diagram}\PYG{o}{.}\PYG{n}{write}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}plasmid\PYGZus{}linear.pdf\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}PDF\PYGZdq{}}\PYG{p}{)}
\PYG{n}{gd\PYGZus{}diagram}\PYG{o}{.}\PYG{n}{write}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}plasmid\PYGZus{}linear.eps\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}EPS\PYGZdq{}}\PYG{p}{)}
\PYG{n}{gd\PYGZus{}diagram}\PYG{o}{.}\PYG{n}{write}\PYG{p}{(}\PYG{l+s+s2}{\PYGZdq{}plasmid\PYGZus{}linear.svg\PYGZdq{}}\PYG{p}{,} \PYG{l+s+s2}{\PYGZdq{}SVG\PYGZdq{}}\PYG{p}{)}
\end{Verbatim}
