\begin{tikzpicture}
  \begin{axis}[
    width = .9\textwidth, % Scale the plot to \linewidth
    grid = both, % Display a grid
    major grid style = {dashed,gray!50}, % Set the major grid style
    minor grid style = {dashed,gray!20}, % Set the minor grid style
    xlabel = Šířka čítače (b) , % Set the labels
    ylabel = Velikost (počet NAND2 hradel),
    xmin = 2,
    xmax = 16,
    xtick = {2,4,6,8,10,12,14,16},
  %  x tick label style = {/pgf/number format/1000 sep={ }, rotate=90,anchor=east}, % Display labels sideways
  %  ymin = -30,
  %  ymax = 0,
    legend pos = north west,
    legend entries={CFSR, Binární}
    ]
    \addplot [color=black, solid]  table[x=Width, y=CFSR_ALL] {obrazky/sizes.csv};
    \addplot [color=black, dashed] table[x=Width, y=DEC_ALL]  {obrazky/sizes.csv};
%    \addplot [color=gray, dashed, domain=2:16] {16.333*x-2};
%    \addplot [color=gray, solid, domain=2:16] {11.1333*x+4.333*x-0.333};
%    \addplot [color=gray, solid, domain=2:16] {11.1333*x+4.333*2-0.333};
  \end{axis}
\end{tikzpicture}
