单个图形中的多个 PGFPlots

单个图形中的多个 PGFPlots

我正在尝试根据 Alekseyenko 撰写的有关嵌套遏制列表的文章重新制作这些情节:

图 5

我已经完成了一个情节:

结果

\documentclass{article}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{multicol}
\usepackage{pgfplots}
\begin{document}
\begin{figure}
    \centering
    \begin{tikzpicture}
        \begin{loglogaxis}[
            title =         NestedContainmentList,
            width =         \textwidth,
            height =        5cm,
            xlabel =        {Query width (kb)},
            xtick =         {0.1, 0.5, 1, 5, 10, 50, 100},
            xticklabels =   {0.1, 0.5, 1, 5, 10, 50, 100},
            xtick pos =     left,
            ylabel =        {Speed ratio},
            ytick =         {1, 2, 4, 8, 16},
            yticklabels =   {1, 2, 4, 8, 16},
            ytick pos =     left,
            tick align =    outside, % Put ticks on the outside
        ]
            \addplot[mark=o] coordinates { (0.1,1) (0.5,1.1) (1,2) (5,4) (10,7) (50,12) (100,16)};
            \addplot[mark=*] coordinates { (0.1,3) (0.5,3.5) (1,5) (5,5.2) (10,8) (50,11) (100,15)};
        \end{loglogaxis}
    \end{tikzpicture}
    \caption{Speed ratio for NestedContainmentList relative to other data structures.}
\end{figure}
\begin{multicols}{2}
\section{First Section}
\blindtext[3]
\end{multicols}
\end{document}

但是,我不知道如何正确地介绍更多情节并像文章中那样安排它们。

相关内容