Advertisement
Guest User

PGFplots

a guest
Oct 30th, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 1.13 KB | None | 0 0
  1. % -*- root: ../../../plots.tex -*-
  2.  
  3. % Default plot settings
  4. \pgfplotsset{legend style={fill=black!8!white,
  5.                           at={(0.5,-0.20)},
  6.                           anchor=north,
  7.                           legend cell align=left,
  8.                           legend columns=3,
  9.                           font=\sffamily,
  10.                           column sep=0.3cm}}
  11. \pgfplotsset{width=20cm, height=12cm}
  12. \pgfplotsset{
  13. every axis label/.append style={font=\sffamily},
  14. tick label style={font=\sffamily},
  15. }
  16.  
  17.  
  18. \pgfplotsset{legend style={legend columns=2}}
  19. \begin{tikzpicture}
  20.    \begin{axis}[
  21.        xlabel={Time (days)},
  22.        xtick={200,400,...,1600},
  23.        ylabel={OPR+WPR (stb/day)},
  24.        xtick={200,400,...,1600},
  25.        xmin=0, xmax=1500,
  26.        ]
  27.        \addplot[color=red, mark=o]
  28.                table[  x=TIME,
  29.                        y expr={\thisrow{FOPR} + \thisrow{FWPR}/1000},
  30.                        col sep=comma, skip coords between index={0}{1}
  31.                     ]
  32.                {data/spe71a.csv};
  33.  
  34.        \addlegendentry{1a: Oil + Gas};
  35.    \end{axis}
  36. \end{tikzpicture}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement