paper/src/graph1.tex
author Eugen Sawin <sawine@me73.com>
Wed, 27 Apr 2011 23:14:57 +0200
changeset 20 db5300dc9a50
permissions -rw-r--r--
Fixed minor error.
     1 % GNUPLOT: LaTeX picture with Postscript
     2 \begingroup
     3   \makeatletter
     4   \providecommand\color[2][]{%
     5     \GenericError{(gnuplot) \space\space\space\@spaces}{%
     6       Package color not loaded in conjunction with
     7       terminal option `colourtext'%
     8     }{See the gnuplot documentation for explanation.%
     9     }{Either use 'blacktext' in gnuplot or load the package
    10       color.sty in LaTeX.}%
    11     \renewcommand\color[2][]{}%
    12   }%
    13   \providecommand\includegraphics[2][]{%
    14     \GenericError{(gnuplot) \space\space\space\@spaces}{%
    15       Package graphicx or graphics not loaded%
    16     }{See the gnuplot documentation for explanation.%
    17     }{The gnuplot epslatex terminal needs graphicx.sty or graphics.sty.}%
    18     \renewcommand\includegraphics[2][]{}%
    19   }%
    20   \providecommand\rotatebox[2]{#2}%
    21   \@ifundefined{ifGPcolor}{%
    22     \newif\ifGPcolor
    23     \GPcolorfalse
    24   }{}%
    25   \@ifundefined{ifGPblacktext}{%
    26     \newif\ifGPblacktext
    27     \GPblacktexttrue
    28   }{}%
    29   % define a \g@addto@macro without @ in the name:
    30   \let\gplgaddtomacro\g@addto@macro
    31   % define empty templates for all commands taking text:
    32   \gdef\gplbacktext{}%
    33   \gdef\gplfronttext{}%
    34   \makeatother
    35   \ifGPblacktext
    36     % no textcolor at all
    37     \def\colorrgb#1{}%
    38     \def\colorgray#1{}%
    39   \else
    40     % gray or color?
    41     \ifGPcolor
    42       \def\colorrgb#1{\color[rgb]{#1}}%
    43       \def\colorgray#1{\color[gray]{#1}}%
    44       \expandafter\def\csname LTw\endcsname{\color{white}}%
    45       \expandafter\def\csname LTb\endcsname{\color{black}}%
    46       \expandafter\def\csname LTa\endcsname{\color{black}}%
    47       \expandafter\def\csname LT0\endcsname{\color[rgb]{1,0,0}}%
    48       \expandafter\def\csname LT1\endcsname{\color[rgb]{0,1,0}}%
    49       \expandafter\def\csname LT2\endcsname{\color[rgb]{0,0,1}}%
    50       \expandafter\def\csname LT3\endcsname{\color[rgb]{1,0,1}}%
    51       \expandafter\def\csname LT4\endcsname{\color[rgb]{0,1,1}}%
    52       \expandafter\def\csname LT5\endcsname{\color[rgb]{1,1,0}}%
    53       \expandafter\def\csname LT6\endcsname{\color[rgb]{0,0,0}}%
    54       \expandafter\def\csname LT7\endcsname{\color[rgb]{1,0.3,0}}%
    55       \expandafter\def\csname LT8\endcsname{\color[rgb]{0.5,0.5,0.5}}%
    56     \else
    57       % gray
    58       \def\colorrgb#1{\color{black}}%
    59       \def\colorgray#1{\color[gray]{#1}}%
    60       \expandafter\def\csname LTw\endcsname{\color{white}}%
    61       \expandafter\def\csname LTb\endcsname{\color{black}}%
    62       \expandafter\def\csname LTa\endcsname{\color{black}}%
    63       \expandafter\def\csname LT0\endcsname{\color{black}}%
    64       \expandafter\def\csname LT1\endcsname{\color{black}}%
    65       \expandafter\def\csname LT2\endcsname{\color{black}}%
    66       \expandafter\def\csname LT3\endcsname{\color{black}}%
    67       \expandafter\def\csname LT4\endcsname{\color{black}}%
    68       \expandafter\def\csname LT5\endcsname{\color{black}}%
    69       \expandafter\def\csname LT6\endcsname{\color{black}}%
    70       \expandafter\def\csname LT7\endcsname{\color{black}}%
    71       \expandafter\def\csname LT8\endcsname{\color{black}}%
    72     \fi
    73   \fi
    74   \setlength{\unitlength}{0.0500bp}%
    75   \begin{picture}(7200.00,5040.00)%
    76     \gplgaddtomacro\gplbacktext{%
    77       \csname LTb\endcsname%
    78       \put(1342,704){\makebox(0,0)[r]{\strut{}$-10$}}%
    79       \put(1342,1072){\makebox(0,0)[r]{\strut{}$0$}}%
    80       \put(1342,1439){\makebox(0,0)[r]{\strut{}$10$}}%
    81       \put(1342,1807){\makebox(0,0)[r]{\strut{}$20$}}%
    82       \put(1342,2174){\makebox(0,0)[r]{\strut{}$30$}}%
    83       \put(1342,2542){\makebox(0,0)[r]{\strut{}$40$}}%
    84       \put(1342,2910){\makebox(0,0)[r]{\strut{}$50$}}%
    85       \put(1342,3277){\makebox(0,0)[r]{\strut{}$60$}}%
    86       \put(1342,3645){\makebox(0,0)[r]{\strut{}$70$}}%
    87       \put(1342,4012){\makebox(0,0)[r]{\strut{}$80$}}%
    88       \put(1342,4380){\makebox(0,0)[r]{\strut{}$90$}}%
    89       \put(1474,484){\makebox(0,0){\strut{}$0$}}%
    90       \put(2149,484){\makebox(0,0){\strut{}$2$}}%
    91       \put(2823,484){\makebox(0,0){\strut{}$4$}}%
    92       \put(3498,484){\makebox(0,0){\strut{}$6$}}%
    93       \put(4172,484){\makebox(0,0){\strut{}$8$}}%
    94       \put(4847,484){\makebox(0,0){\strut{}$10$}}%
    95       \put(5521,484){\makebox(0,0){\strut{}$12$}}%
    96       \put(6196,484){\makebox(0,0){\strut{}$14$}}%
    97       \put(6870,484){\makebox(0,0){\strut{}$16$}}%
    98       \put(440,2542){\rotatebox{90}{\makebox(0,0){\strut{}Voltage $V_p$ [V]}}}%
    99       \put(4172,154){\makebox(0,0){\strut{}Resistance $R_0$ [$Omega$]}}%
   100       \put(4172,4710){\makebox(0,0){\strut{}Graph 3: Dependence of $V_p$ on $R_0$}}%
   101     }%
   102     \gplgaddtomacro\gplfronttext{%
   103       \csname LTb\endcsname%
   104       \put(5883,4207){\makebox(0,0)[r]{\strut{}"cut_laldo.csv" using 1:2}}%
   105     }%
   106     \gplbacktext
   107     \put(0,0){\includegraphics{graph1}}%
   108     \gplfronttext
   109   \end{picture}%
   110 \endgroup