Description
This is a LaTeX document that produces a graph using the TikZ and pgfplots packages. The graph shows the estimated profit as a function of the netback per barrel of oil, with the x-axis representing the netback in dollars per barrel and the y-axis representing the profit in millions of Canadian dollars.
The graph is generated using the "axis" environment provided by the pgfplots package. The "domain" option sets the range of values for the x-axis, and the "title", "xlabel", and "ylabel" options are used to set the title and labels for the graph.
The "addplot" command is used to plot the function that represents the estimated profit, with the "mark" option set to "none" to remove the markers for each data point, and "samples" set to 100 to increase the smoothness of the plotted function.
The "node" command is used to place a small circle at a specific point on the graph, which is accomplished using the "pin" option to provide additional text associated with the node.
Finally, the "fill" and "outer sep" options are used to set the appearance of the node and the text label associated with it, respectively.
Keywords
tikzpicture, axis, xlabel, ylabel, addplot, function, samples, node, fill, draw, circle, minimum, width, inner, sep, pin, outer, domain, title.
Source Code
\documentclass{standalone}% 'crop' is the default for v1.0, before it was 'preview'
%\usetikzlibrary{...}% tikz package already loaded by 'tikz' option
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\pgfplotsset{compat=1.7}
\begin{document}
\begin{tikzpicture}
\begin{axis}[domain=50:150, title={Estimated Profit},
xlabel={Netback per barrel of oil},
ylabel={Million of dollars \$ (CAD)}]
\addplot[mark=none, samples=100, red] function {0.66*x};
\node [fill, draw, circle, minimum width=3pt, inner sep=0pt, pin={[fill=white, outer sep=2pt]}] at (0,35) {};
\node[outer sep=2pt,fill=white] at (2.5, 155) {\$90 Oil};
\end{axis}
\end{tikzpicture}
\end{document}