1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/book/src/graph1.tex Wed Mar 23 21:10:10 2011 +0100
1.3 @@ -0,0 +1,110 @@
1.4 +% GNUPLOT: LaTeX picture with Postscript
1.5 +\begingroup
1.6 + \makeatletter
1.7 + \providecommand\color[2][]{%
1.8 + \GenericError{(gnuplot) \space\space\space\@spaces}{%
1.9 + Package color not loaded in conjunction with
1.10 + terminal option `colourtext'%
1.11 + }{See the gnuplot documentation for explanation.%
1.12 + }{Either use 'blacktext' in gnuplot or load the package
1.13 + color.sty in LaTeX.}%
1.14 + \renewcommand\color[2][]{}%
1.15 + }%
1.16 + \providecommand\includegraphics[2][]{%
1.17 + \GenericError{(gnuplot) \space\space\space\@spaces}{%
1.18 + Package graphicx or graphics not loaded%
1.19 + }{See the gnuplot documentation for explanation.%
1.20 + }{The gnuplot epslatex terminal needs graphicx.sty or graphics.sty.}%
1.21 + \renewcommand\includegraphics[2][]{}%
1.22 + }%
1.23 + \providecommand\rotatebox[2]{#2}%
1.24 + \@ifundefined{ifGPcolor}{%
1.25 + \newif\ifGPcolor
1.26 + \GPcolorfalse
1.27 + }{}%
1.28 + \@ifundefined{ifGPblacktext}{%
1.29 + \newif\ifGPblacktext
1.30 + \GPblacktexttrue
1.31 + }{}%
1.32 + % define a \g@addto@macro without @ in the name:
1.33 + \let\gplgaddtomacro\g@addto@macro
1.34 + % define empty templates for all commands taking text:
1.35 + \gdef\gplbacktext{}%
1.36 + \gdef\gplfronttext{}%
1.37 + \makeatother
1.38 + \ifGPblacktext
1.39 + % no textcolor at all
1.40 + \def\colorrgb#1{}%
1.41 + \def\colorgray#1{}%
1.42 + \else
1.43 + % gray or color?
1.44 + \ifGPcolor
1.45 + \def\colorrgb#1{\color[rgb]{#1}}%
1.46 + \def\colorgray#1{\color[gray]{#1}}%
1.47 + \expandafter\def\csname LTw\endcsname{\color{white}}%
1.48 + \expandafter\def\csname LTb\endcsname{\color{black}}%
1.49 + \expandafter\def\csname LTa\endcsname{\color{black}}%
1.50 + \expandafter\def\csname LT0\endcsname{\color[rgb]{1,0,0}}%
1.51 + \expandafter\def\csname LT1\endcsname{\color[rgb]{0,1,0}}%
1.52 + \expandafter\def\csname LT2\endcsname{\color[rgb]{0,0,1}}%
1.53 + \expandafter\def\csname LT3\endcsname{\color[rgb]{1,0,1}}%
1.54 + \expandafter\def\csname LT4\endcsname{\color[rgb]{0,1,1}}%
1.55 + \expandafter\def\csname LT5\endcsname{\color[rgb]{1,1,0}}%
1.56 + \expandafter\def\csname LT6\endcsname{\color[rgb]{0,0,0}}%
1.57 + \expandafter\def\csname LT7\endcsname{\color[rgb]{1,0.3,0}}%
1.58 + \expandafter\def\csname LT8\endcsname{\color[rgb]{0.5,0.5,0.5}}%
1.59 + \else
1.60 + % gray
1.61 + \def\colorrgb#1{\color{black}}%
1.62 + \def\colorgray#1{\color[gray]{#1}}%
1.63 + \expandafter\def\csname LTw\endcsname{\color{white}}%
1.64 + \expandafter\def\csname LTb\endcsname{\color{black}}%
1.65 + \expandafter\def\csname LTa\endcsname{\color{black}}%
1.66 + \expandafter\def\csname LT0\endcsname{\color{black}}%
1.67 + \expandafter\def\csname LT1\endcsname{\color{black}}%
1.68 + \expandafter\def\csname LT2\endcsname{\color{black}}%
1.69 + \expandafter\def\csname LT3\endcsname{\color{black}}%
1.70 + \expandafter\def\csname LT4\endcsname{\color{black}}%
1.71 + \expandafter\def\csname LT5\endcsname{\color{black}}%
1.72 + \expandafter\def\csname LT6\endcsname{\color{black}}%
1.73 + \expandafter\def\csname LT7\endcsname{\color{black}}%
1.74 + \expandafter\def\csname LT8\endcsname{\color{black}}%
1.75 + \fi
1.76 + \fi
1.77 + \setlength{\unitlength}{0.0500bp}%
1.78 + \begin{picture}(7200.00,5040.00)%
1.79 + \gplgaddtomacro\gplbacktext{%
1.80 + \csname LTb\endcsname%
1.81 + \put(1342,704){\makebox(0,0)[r]{\strut{}$-10$}}%
1.82 + \put(1342,1072){\makebox(0,0)[r]{\strut{}$0$}}%
1.83 + \put(1342,1439){\makebox(0,0)[r]{\strut{}$10$}}%
1.84 + \put(1342,1807){\makebox(0,0)[r]{\strut{}$20$}}%
1.85 + \put(1342,2174){\makebox(0,0)[r]{\strut{}$30$}}%
1.86 + \put(1342,2542){\makebox(0,0)[r]{\strut{}$40$}}%
1.87 + \put(1342,2910){\makebox(0,0)[r]{\strut{}$50$}}%
1.88 + \put(1342,3277){\makebox(0,0)[r]{\strut{}$60$}}%
1.89 + \put(1342,3645){\makebox(0,0)[r]{\strut{}$70$}}%
1.90 + \put(1342,4012){\makebox(0,0)[r]{\strut{}$80$}}%
1.91 + \put(1342,4380){\makebox(0,0)[r]{\strut{}$90$}}%
1.92 + \put(1474,484){\makebox(0,0){\strut{}$0$}}%
1.93 + \put(2149,484){\makebox(0,0){\strut{}$2$}}%
1.94 + \put(2823,484){\makebox(0,0){\strut{}$4$}}%
1.95 + \put(3498,484){\makebox(0,0){\strut{}$6$}}%
1.96 + \put(4172,484){\makebox(0,0){\strut{}$8$}}%
1.97 + \put(4847,484){\makebox(0,0){\strut{}$10$}}%
1.98 + \put(5521,484){\makebox(0,0){\strut{}$12$}}%
1.99 + \put(6196,484){\makebox(0,0){\strut{}$14$}}%
1.100 + \put(6870,484){\makebox(0,0){\strut{}$16$}}%
1.101 + \put(440,2542){\rotatebox{90}{\makebox(0,0){\strut{}Voltage $V_p$ [V]}}}%
1.102 + \put(4172,154){\makebox(0,0){\strut{}Resistance $R_0$ [$Omega$]}}%
1.103 + \put(4172,4710){\makebox(0,0){\strut{}Graph 3: Dependence of $V_p$ on $R_0$}}%
1.104 + }%
1.105 + \gplgaddtomacro\gplfronttext{%
1.106 + \csname LTb\endcsname%
1.107 + \put(5883,4207){\makebox(0,0)[r]{\strut{}"cut_laldo.csv" using 1:2}}%
1.108 + }%
1.109 + \gplbacktext
1.110 + \put(0,0){\includegraphics{graph1}}%
1.111 + \gplfronttext
1.112 + \end{picture}%
1.113 +\endgroup