图表标题的脚注

图表标题的脚注

我想在图表标题上添加脚注。添加脚注后,它消失了!这是我的MWE

\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}

\pagestyle{empty}
\usetikzlibrary{patterns}

\begin{document}
\begin{tikzpicture}
\begin{axis}
[
    axis lines*=left,
    title=Histogram of S\&P 500 CEOs Past Experience \footnote{Hey, where are you?},
    xbar,
    width=8cm,
    height=5cm,
    xlabel={},
    symbolic y coords={Sales, Marketing, Finance, Operations},
    ytick=data,
    xmin=0,
    xmax=0.5, 
    nodes near coords,
    nodes near coords align={horizontal}
    ]

  \addplot
[draw=blue,pattern=horizontal lines light blue] 
coordinates
     {(0.17,Sales)  (0.24,Marketing) (0.31,Finance) (0.42,Operations)};
\end{axis}
\end{tikzpicture}
\end{document}

有什么帮助吗?

答案1

正如 JLdiaz 所提到的,\footnotemark组合\footnotetext可以帮助您:

\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}

\pagestyle{empty}
\usetikzlibrary{patterns}

\begin{document}
\begin{tikzpicture}
\begin{axis}
[
    axis lines*=left,
    title=Histogram of S\& P 500 CEOs Past Experience \footnotemark, %% <---------
    xbar,
    width=8cm,
    height=5cm,
    xlabel={},
    symbolic y coords={Sales, Marketing, Finance, Operations},
    ytick=data,
    xmin=0,
    xmax=0.5, 
    nodes near coords,
    nodes near coords align={horizontal}
    ]

  \addplot
[draw=blue,pattern=horizontal lines light blue] 
coordinates
     {(0.17,Sales)  (0.24,Marketing) (0.31,Finance) (0.42,Operations)};
\end{axis}
\end{tikzpicture}
\footnotetext{Hey, where are you?} %% <-----
\end{document}

在此处输入图片描述

相关内容