1
0
mirror of https://github.com/chylex/Brotli-Builder.git synced 2024-11-25 07:42:56 +01:00
Brotli-Builder/Paper/Source/Figures/TikZ/disabled-block-split-context-model.tex
2020-05-14 23:32:45 +02:00

78 lines
1.8 KiB
TeX

\begin{tikzpicture}
\begin{axis}[
width = 0.96\textwidth,
height = 0.91*\axisdefaultheight,
xbar stacked,
xmin = 0,
xmax = 84,
xtick distance = 10,
y dir = reverse,
ytick = data,
ytick pos = left,
extra y ticks = {4, 5, 6, 7, 8, 9, 10, 11},
extra y tick labels = {$+1.4$, $+1.3$, $+1.3$, $+1.3$, $+1.4$, $+1.4$, $+5.4$, $+3.5$},
extra y tick style = {ticklabel pos = right},
scaled ticks = false,
enlarge x limits = {abs = 0},
enlarge y limits = {abs = 0.8},
nodes near coords,
nodes near coords align = {horizontal},
nodes near coords style = {xshift = 2pt, /pgf/number format/.cd, fixed zerofill, precision = 1},
legend columns = -1,
legend style = {
at = {(0.5, 1.05)},
anchor = south,
column sep = 0.05cm,
/tikz/every even column/.append style = {
column sep = 0.3cm
}
},
legend image code/.code = {
\draw[#1] (0cm, -0.075cm) rectangle (0.2cm, 0.135cm);
},
xlabel = Total Compressed Size (MiB),
ylabel = Quality,
ylabel style = {yshift = -width(+0.0)}
]
\addplot[blue, fill = blue!30!white] coordinates {
(76.42, 4)
(71.05, 5)
(69.56, 6)
(68.39, 7)
(67.53, 8)
(66.81, 9)
(60.60, 10)
(59.04, 11)
};
\addplot[red, fill = red!30!white, point meta = x, every node near coord/.append style = {/tikz/.cd, xshift = 1.5pt}] coordinates {
(1.4129, 4)
(1.3275, 5)
(1.3100, 6)
(1.3136, 7)
(1.3404, 8)
(1.3620, 9)
(0, 10)
(0, 11)
};
\addplot[red, fill = red!30!white, point meta = x, every node near coord/.append style = {/tikz/.cd, xshift = 11pt}] coordinates {
(0, 4)
(0, 5)
(0, 6)
(0, 7)
(0, 8)
(0, 9)
(5.3895, 10)
(0, 11)
};
\addplot[red, fill = red!30!white, point meta = x, every node near coord/.append style = {/tikz/.cd, xshift = 6pt}] coordinates {
(0, 4)
(0, 5)
(0, 6)
(0, 7)
(0, 8)
(0, 9)
(0, 10)
(3.4190, 11)
};
\end{axis}
\end{tikzpicture}