wirwerdenwissen
08-08-2010, 00:24
Moin moin
Gibt es eine Möglichkeit in LaTeX figures zu drehen (nicht nur die Bilder)? Ich bin auf dieses Problem gestossen, weil ich meine Diagramme mit dem epslatex terminal von Gnuplot herstelle. Gnuplot generiert ein pdf Bild und ein .tex file, das .tex file enthält die Informationen bezgl. Rahmen, Beschriftung u.ä.
das pdf Bild den Graphen, Fehlerbalken usw.
Mein Ziel ist es, folgendes zu drehen (damit ich das Diagramm um 90° gedreht eine eigene Seite einnehmen lassen kann)
\begin{figure}[htbp]
\begin{center}
\scalebox{0.7}{\input{xxx}}
\end{center}
\caption{}
\end{figure}
wobei das .tex file xxx folgendes enthält
% GNUPLOT: LaTeX picture with Postscript
\begingroup
\makeatletter
\providecommand\color[2][]{%
\GenericError{(gnuplot) \space\space\space\@spaces}{%
Package color not loaded in conjunction with
terminal option `colourtext'%
}{See the gnuplot documentation for explanation.%
}{Either use 'blacktext' in gnuplot or load the package
color.sty in LaTeX.}%
\renewcommand\color[2][]{}%
}%
\providecommand\includegraphics[2][]{%
\GenericError{(gnuplot) \space\space\space\@spaces}{%
Package graphicx or graphics not loaded%
}{See the gnuplot documentation for explanation.%
}{The gnuplot epslatex terminal needs graphicx.sty or graphics.sty.}%
\renewcommand\includegraphics[2][]{}%
}%
\providecommand\rotatebox[2]{#2}%
\@ifundefined{ifGPcolor}{%
\newif\ifGPcolor
\GPcolorfalse
}{}%
\@ifundefined{ifGPblacktext}{%
\newif\ifGPblacktext
\GPblacktexttrue
}{}%
% define a \g@addto@macro without @ in the name:
\let\gplgaddtomacro\g@addto@macro
% define empty templates for all commands taking text:
\gdef\gplbacktext{}%
\gdef\gplfronttext{}%
\makeatother
\ifGPblacktext
% no textcolor at all
\def\colorrgb#1{}%
\def\colorgray#1{}%
\else
% gray or color?
\ifGPcolor
\def\colorrgb#1{\color[rgb]{#1}}%
\def\colorgray#1{\color[gray]{#1}}%
\expandafter\def\csname LTw\endcsname{\color{white}}%
\expandafter\def\csname LTb\endcsname{\color{black}}%
\expandafter\def\csname LTa\endcsname{\color{black}}%
\expandafter\def\csname LT0\endcsname{\color[rgb]{1,0,0}}%
\expandafter\def\csname LT1\endcsname{\color[rgb]{0,1,0}}%
\expandafter\def\csname LT2\endcsname{\color[rgb]{0,0,1}}%
\expandafter\def\csname LT3\endcsname{\color[rgb]{1,0,1}}%
\expandafter\def\csname LT4\endcsname{\color[rgb]{0,1,1}}%
\expandafter\def\csname LT5\endcsname{\color[rgb]{1,1,0}}%
\expandafter\def\csname LT6\endcsname{\color[rgb]{0,0,0}}%
\expandafter\def\csname LT7\endcsname{\color[rgb]{1,0.3,0}}%
\expandafter\def\csname LT8\endcsname{\color[rgb]{0.5,0.5,0.5}}%
\else
% gray
\def\colorrgb#1{\color{black}}%
\def\colorgray#1{\color[gray]{#1}}%
\expandafter\def\csname LTw\endcsname{\color{white}}%
\expandafter\def\csname LTb\endcsname{\color{black}}%
\expandafter\def\csname LTa\endcsname{\color{black}}%
\expandafter\def\csname LT0\endcsname{\color{black}}%
\expandafter\def\csname LT1\endcsname{\color{black}}%
\expandafter\def\csname LT2\endcsname{\color{black}}%
\expandafter\def\csname LT3\endcsname{\color{black}}%
\expandafter\def\csname LT4\endcsname{\color{black}}%
\expandafter\def\csname LT5\endcsname{\color{black}}%
\expandafter\def\csname LT6\endcsname{\color{black}}%
\expandafter\def\csname LT7\endcsname{\color{black}}%
\expandafter\def\csname LT8\endcsname{\color{black}}%
\fi
\fi
\setlength{\unitlength}{0.0500bp}%
\begin{picture}(12000.00,6720.00)%
\gplgaddtomacro\gplbacktext{%
\csname LTb\endcsname%
\put(1342,704){\makebox(0,0)[r]{\strut{}$0$}}%
\put(1342,1854){\makebox(0,0)[r]{\strut{}$0.3$}}%
\put(1342,3005){\makebox(0,0)[r]{\strut{}$0.6$}}%
\put(1342,4155){\makebox(0,0)[r]{\strut{}$0.9$}}%
\put(1342,5306){\makebox(0,0)[r]{\strut{}$1.2$}}%
\put(1342,6456){\makebox(0,0)[r]{\strut{}$1.5$}}%
\put(1474,484){\makebox(0,0){\strut{}$0$}}%
\put(3173,484){\makebox(0,0){\strut{}$5$}}%
\put(4872,484){\makebox(0,0){\strut{}$10$}}%
\put(6571,484){\makebox(0,0){\strut{}$15$}}%
\put(8271,484){\makebox(0,0){\strut{}$20$}}%
\put(9970,484){\makebox(0,0){\strut{}$25$}}%
\put(11669,484){\makebox(0,0){\strut{}$30$}}%
\put(440,3580){\rotatebox{90}{\makebox(0,0){\strut {}$OD_{660}$}}}%
\put(6571,154){\makebox(0,0){\strut{}$t \ [h]$}}%
\put(624,4668){\makebox(0,0)[l]{\strut{}$A$}}%
\put(624,1025){\makebox(0,0)[l]{\strut{}$A$}}%
}%
\gplgaddtomacro\gplfronttext{%
\csname LTb\endcsname%
\put(10682,6283){\makebox(0,0)[r]{\strut{}xxxx}}%
}%
\gplbacktext
\put(0,0){\includegraphics{xxx}}%
\gplfronttext
\end{picture}%
\endgroup
\put(0,0){\includegraphics{xxx}}%: xxx ist das pdf-file
Oder könnte mir jemand der sich mit gnuplot UND LaTex auskennt ne Alternative anbieten?
Danke im voraus.
Gibt es eine Möglichkeit in LaTeX figures zu drehen (nicht nur die Bilder)? Ich bin auf dieses Problem gestossen, weil ich meine Diagramme mit dem epslatex terminal von Gnuplot herstelle. Gnuplot generiert ein pdf Bild und ein .tex file, das .tex file enthält die Informationen bezgl. Rahmen, Beschriftung u.ä.
das pdf Bild den Graphen, Fehlerbalken usw.
Mein Ziel ist es, folgendes zu drehen (damit ich das Diagramm um 90° gedreht eine eigene Seite einnehmen lassen kann)
\begin{figure}[htbp]
\begin{center}
\scalebox{0.7}{\input{xxx}}
\end{center}
\caption{}
\end{figure}
wobei das .tex file xxx folgendes enthält
% GNUPLOT: LaTeX picture with Postscript
\begingroup
\makeatletter
\providecommand\color[2][]{%
\GenericError{(gnuplot) \space\space\space\@spaces}{%
Package color not loaded in conjunction with
terminal option `colourtext'%
}{See the gnuplot documentation for explanation.%
}{Either use 'blacktext' in gnuplot or load the package
color.sty in LaTeX.}%
\renewcommand\color[2][]{}%
}%
\providecommand\includegraphics[2][]{%
\GenericError{(gnuplot) \space\space\space\@spaces}{%
Package graphicx or graphics not loaded%
}{See the gnuplot documentation for explanation.%
}{The gnuplot epslatex terminal needs graphicx.sty or graphics.sty.}%
\renewcommand\includegraphics[2][]{}%
}%
\providecommand\rotatebox[2]{#2}%
\@ifundefined{ifGPcolor}{%
\newif\ifGPcolor
\GPcolorfalse
}{}%
\@ifundefined{ifGPblacktext}{%
\newif\ifGPblacktext
\GPblacktexttrue
}{}%
% define a \g@addto@macro without @ in the name:
\let\gplgaddtomacro\g@addto@macro
% define empty templates for all commands taking text:
\gdef\gplbacktext{}%
\gdef\gplfronttext{}%
\makeatother
\ifGPblacktext
% no textcolor at all
\def\colorrgb#1{}%
\def\colorgray#1{}%
\else
% gray or color?
\ifGPcolor
\def\colorrgb#1{\color[rgb]{#1}}%
\def\colorgray#1{\color[gray]{#1}}%
\expandafter\def\csname LTw\endcsname{\color{white}}%
\expandafter\def\csname LTb\endcsname{\color{black}}%
\expandafter\def\csname LTa\endcsname{\color{black}}%
\expandafter\def\csname LT0\endcsname{\color[rgb]{1,0,0}}%
\expandafter\def\csname LT1\endcsname{\color[rgb]{0,1,0}}%
\expandafter\def\csname LT2\endcsname{\color[rgb]{0,0,1}}%
\expandafter\def\csname LT3\endcsname{\color[rgb]{1,0,1}}%
\expandafter\def\csname LT4\endcsname{\color[rgb]{0,1,1}}%
\expandafter\def\csname LT5\endcsname{\color[rgb]{1,1,0}}%
\expandafter\def\csname LT6\endcsname{\color[rgb]{0,0,0}}%
\expandafter\def\csname LT7\endcsname{\color[rgb]{1,0.3,0}}%
\expandafter\def\csname LT8\endcsname{\color[rgb]{0.5,0.5,0.5}}%
\else
% gray
\def\colorrgb#1{\color{black}}%
\def\colorgray#1{\color[gray]{#1}}%
\expandafter\def\csname LTw\endcsname{\color{white}}%
\expandafter\def\csname LTb\endcsname{\color{black}}%
\expandafter\def\csname LTa\endcsname{\color{black}}%
\expandafter\def\csname LT0\endcsname{\color{black}}%
\expandafter\def\csname LT1\endcsname{\color{black}}%
\expandafter\def\csname LT2\endcsname{\color{black}}%
\expandafter\def\csname LT3\endcsname{\color{black}}%
\expandafter\def\csname LT4\endcsname{\color{black}}%
\expandafter\def\csname LT5\endcsname{\color{black}}%
\expandafter\def\csname LT6\endcsname{\color{black}}%
\expandafter\def\csname LT7\endcsname{\color{black}}%
\expandafter\def\csname LT8\endcsname{\color{black}}%
\fi
\fi
\setlength{\unitlength}{0.0500bp}%
\begin{picture}(12000.00,6720.00)%
\gplgaddtomacro\gplbacktext{%
\csname LTb\endcsname%
\put(1342,704){\makebox(0,0)[r]{\strut{}$0$}}%
\put(1342,1854){\makebox(0,0)[r]{\strut{}$0.3$}}%
\put(1342,3005){\makebox(0,0)[r]{\strut{}$0.6$}}%
\put(1342,4155){\makebox(0,0)[r]{\strut{}$0.9$}}%
\put(1342,5306){\makebox(0,0)[r]{\strut{}$1.2$}}%
\put(1342,6456){\makebox(0,0)[r]{\strut{}$1.5$}}%
\put(1474,484){\makebox(0,0){\strut{}$0$}}%
\put(3173,484){\makebox(0,0){\strut{}$5$}}%
\put(4872,484){\makebox(0,0){\strut{}$10$}}%
\put(6571,484){\makebox(0,0){\strut{}$15$}}%
\put(8271,484){\makebox(0,0){\strut{}$20$}}%
\put(9970,484){\makebox(0,0){\strut{}$25$}}%
\put(11669,484){\makebox(0,0){\strut{}$30$}}%
\put(440,3580){\rotatebox{90}{\makebox(0,0){\strut {}$OD_{660}$}}}%
\put(6571,154){\makebox(0,0){\strut{}$t \ [h]$}}%
\put(624,4668){\makebox(0,0)[l]{\strut{}$A$}}%
\put(624,1025){\makebox(0,0)[l]{\strut{}$A$}}%
}%
\gplgaddtomacro\gplfronttext{%
\csname LTb\endcsname%
\put(10682,6283){\makebox(0,0)[r]{\strut{}xxxx}}%
}%
\gplbacktext
\put(0,0){\includegraphics{xxx}}%
\gplfronttext
\end{picture}%
\endgroup
\put(0,0){\includegraphics{xxx}}%: xxx ist das pdf-file
Oder könnte mir jemand der sich mit gnuplot UND LaTex auskennt ne Alternative anbieten?
Danke im voraus.