Skip to content

Commit

Permalink
Fix discussion figure
Browse files Browse the repository at this point in the history
  • Loading branch information
lundal committed Apr 4, 2014
1 parent d4521ba commit 392e4dc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions discussion_graph.tex
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
\pgfplotstableread{
test_name dcpt apcdc cdc pcdc no_prefetcher
{Average speedup} 1.1 1.1 1.1 1.1 1.0
test_name dcpt apcdc pcdc cdc no_prefetcher
{} 1.0841 1.083 1.071 0.989 1.0
}\averagespeeduptable

\newcommand{\ngraph}[2]{
\begin{tikzpicture}[scale=0.5]
\begin{axis}[
ybar, bar width=15pt,ymin=0,
xmin=0.1,xmax=4, xtick=data,
%axis y discontinuity=crunch,
%ymin=0.75,
axis y discontinuity=crunch,
ymin=0.9,
xticklabels from table={#1}{test_name},
xticklabel style={rotate=45,anchor=north east,inner sep=0mm},
ylabel={\Large #2}, ylabel near ticks]
Expand All @@ -26,9 +26,11 @@
\end{axis}
\end{tikzpicture}
}
\begin{figure}[h]
\begin{figure}[ht]
\centering
\ngraph{\averagespeeduptable}{Average speedup}
\caption{Average speedup}
\label{fig:speedup}
\end{figure}

% dcpc Blast #1 http://dm-ark.idi.ntnu.no/pf/184/details/
Expand Down

0 comments on commit 392e4dc

Please sign in to comment.