0

我使用乳胶中的 Tikz 包和 PGF plots 包创建了三个水平条形图。我正在使用 Overleaf。三个水平条形图如下所示: 水平条形图当前的样子

有没有办法将这些水平条形图嵌套在乳胶文档中?我需要这个来为我正在处理的论文节省空间。所以我正在寻找的是这个(注意:这第二张图片旨在说明我正在寻找什么): 我想要什么的概念

这是目前的设置:

\documentclass[10pt,journal,compsoc]{IEEEtran}
\usepackage{tabularx,booktabs}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\usepackage{sfmath}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage{algorithm, algorithmic}
\usepackage{makeidx}
\usepackage{soul}
\usepackage{color}
\usepackage{colortbl}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{amsthm,amssymb,amsmath}

\begin{document}

\pgfplotsset{width=5cm,compat=1.15}
\begin{center}
\begin{figure}[h]
\begin{tikzpicture}
  \begin{axis}[title  = \textbf{2016 Data-set Results: Parameters for a Successful game},
    xbar,
    y axis line style = { opacity = 0 },
    axis x line       = none,
    tickwidth         = 0pt,
    ytick             = data,
    enlarge y limits  = 0.05,
    enlarge x limits  = 0.02,
    width=0.3\textwidth,
    bar width=2mm,
    symbolic y coords = {User Count, Critic Count, Critic Score, User Score, Platform, Genre, Rating},
    nodes near coords,
  ]
  \addplot coordinates { (100,User Count) (93,Critic Count) (57,Critic Score) (20,User Score) (10.5,Platform) (2.3,Genre) (4.52,Rating) };
  \end{axis}
\end{tikzpicture}
\caption{Results for the 2016 Dataset on what parameters make a successful game.}
\end{figure}
\end{center}

\pgfplotsset{width=5cm,compat=1.15}
\begin{center}
\begin{figure}[h]
\begin{tikzpicture}
  \begin{axis}[title  = \textbf{2017 Data-set Results: Parameters for a Successful game},
    xbar,
    y axis line style = { opacity = 0 },
    axis x line       = none,
    tickwidth         = 0pt,
    ytick             = data,
    enlarge y limits  = 0.05,
    enlarge x limits  = 0.02,
    width=0.3\textwidth,
    bar width=2mm,
    symbolic y coords = {User Count, Critic Count, Critic Score, User Score, Platform, Genre, Rating},
    nodes near coords,
  ]
  \addplot coordinates { (100,User Count) (80,Critic Count) (56,Critic Score) (20,User Score) (8.47,Platform) (2.35,Genre) (3.675,Rating) };
  \end{axis}
\end{tikzpicture}
\caption{Results for the 2017 Dataset on what parameters make a successful game.}
\end{figure}
\end{center}

\pgfplotsset{width=5cm,compat=1.15}
\begin{center}
\begin{figure}[h]
\begin{tikzpicture}
  \begin{axis}[title  = \textbf{2019 Data-set Results: Parameters for a Successful game},
    xbar,
    y axis line style = { opacity = 0 },
    axis x line       = none,
    tickwidth         = 0pt,
    ytick             = data,
    enlarge y limits  = 0.05,
    enlarge x limits  = 0.02,
    width=0.3\textwidth,
    bar width=2mm,
    symbolic y coords = {User Count, Critic Count, Critic Score, User Score, Platform, Genre, Rating},
    nodes near coords,
  ]
  \addplot coordinates { (99.8,User Count) (73.6,Critic Count) (71.3,Critic Score) (21,User Score) (9.58,Platform) (2.35,Genre) (4,Rating) };
  \end{axis}
\end{tikzpicture}
\caption{Results for the 2019 Dataset on what parameters make a successful game.}
\end{figure}
\end{center}

\end{document}
4

0 回答 0