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}