Pgfplots: 軸の乗数記号を変更する方法

Pgfplots: 軸の乗数記号を変更する方法

x 軸を乗算するシンボルを手動で定義したいのですが、どうすればいいでしょうか?

例: 科学的記数法 $\cdot 10^2$ の代わりに、 $\cdot \Delta_x$ を使用します。

答え1

pgfplots実際に(TikZ 上に構築されていますが、TikZ と同じではありません)について話していると仮定すると、 が必要ですxtick scale label code/.code={$\cdot \Delta_{x}$}

ここに画像の説明を入力してください

\documentclass[border=5mm]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
  domain=0:1e9,samples=2,
  xtick scale label code/.code={$\cdot \Delta_{x}$}
]
\addplot {1};
\end{axis}
\end{tikzpicture}
\end{document}

または、そのようなラベルをオフにして、手動でノードを配置することもできます。

ここに画像の説明を入力してください

\documentclass[border=5mm]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
  domain=0:1e9,samples=2,
  xtick scale label code/.code={},
  name=ax
]
\addplot {1};
\end{axis}
\node [below left] at (ax.outer south east) {$\cdot \Delta_{x}$};
\end{tikzpicture}
\end{document}

関連情報