![使用镜子倒车](https://linux22.com/image/381752/%E4%BD%BF%E7%94%A8%E9%95%9C%E5%AD%90%E5%80%92%E8%BD%A6.png)
在这个问题xscale=-1
,我得到了使用或 反转曲线的答案\scalebox{-1}[1]
。
我发现可以使用 反转括号mirror
,如以下代码所示。mirror
也可以用于反转曲线吗?
\documentclass{beamer}
\beamertemplatenavigationsymbolsempty
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{frame}[fragile,t]
\frametitle{}
\begin{tikzpicture}[scale=.9, transform shape]
\draw [thick, red, decorate,decoration={brace,amplitude=3.5pt}, xshift=0pt, yshift=-.08cm] (1.2,1) -- +(-90:1.cm);
\draw [thick, blue, decorate,decoration={brace,amplitude=3.5pt, mirror}, xshift=0pt, yshift=-.08cm] (1,1) -- +(-90:1.cm);
\end{tikzpicture}
\begin{tikzpicture}[scale=.9, transform shape]
\draw [very thick, red] (.8,-2.6) to [out=20,in=-125] +(42.:2.4cm) node [red, xshift=.4cm, yshift=.2cm] {$AS$};
\begin{scope}[xscale=-1,xshift=-4cm]
\draw [very thick, blue] (.8,-2.6) to [out=20,in=-125]
+(42.:2.4cm) node [blue, xshift=.4cm, yshift=.2cm,xscale=-1] {$AS$};
\end{scope}
\end{tikzpicture}
\end{frame}
\end{document}