![X軸をミラーリング-pgfplot](https://rvso.com/image/335475/X%E8%BB%B8%E3%82%92%E3%83%9F%E3%83%A9%E3%83%BC%E3%83%AA%E3%83%B3%E3%82%B0-pgfplot.png)
答え1
たとえば、x post scale=-1
2番目の軸に を使用できます。2つの軸の間のギャップを削除するには、2番目の軸の位置をsouth east
最初の軸のアンカーに設定し、そのアンカーを に設定しますsouth west
。x axis line style={-}
追加されました後 axis lines
/ はaxis x line
矢印の先を削除します。
中央に x ラベルを配置するには、環境の\node
後に を追加しaxis
、south east
最初の軸の角の下に配置するのが最も簡単です。
\documentclass[border=4mm]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\pgfplotsset{every outer x axis line/.style={-}}
\begin{axis}[
name=ax1,
axis lines=left,
x axis line style={-}]
\addplot{x};
\end{axis}
\begin{axis}[
axis x line=bottom,
axis y line=right,
x axis line style={-},
x post scale=-1,
at={(ax1.south east)},
anchor=south west]
\addplot{x};
\end{axis}
\node [below=1cm] at (ax1.south east) {Common xlabel};
\end{tikzpicture}
\end{document}