타원을 어떻게 회전시킬 수 있나요?

타원을 어떻게 회전시킬 수 있나요?

나는 이차방정식에서 외적항의 효과를 설명하기 위해 회전된 타원과 쌍곡선을 나란히 그리고 있습니다. pgfmanual.pgf를 통해 tikz에서 플로팅을 배우고 있습니다. 원하는 것을 얻기가 쉽지 않아서 배우는 속도가 느리다. 이 포럼의 다양한 게시물을 통해 일부 코드를 얻었습니다. 아직 해결해야 할 몇 가지 문제가 있는데, 도움을 주시면 매우 감사하겠습니다. 1. 타원에 축 레이블을 넣을 수 없습니다(회전할 수는 있습니다). 2. 쌍곡선을 전혀 회전시킬 수 없습니다. 코드는 다음과 같습니다:

\documentclass[11pt,twoside]{report}
\usetikzlibrary{shapes.geometric, arrows, decorations.pathreplacing, matrix}
\usepackage{pgfplots}

\begin{document}
\begin{tikzpicture}
\begin{scope}[remember picture,rotate=45]
    \coordinate (O) at (0,0);
\coordinate (A) at (2.5,0);
\coordinate (B) at (0,1.6);
% draw ellipse
    \draw[line width = 0.5mm] (O) ellipse (2.5cm and 1.60cm);
% draw axis
\draw[line width = 0.5mm, ->] (-2.5, 0) -- (2.5, 0) coordinate[right] (e1);
\draw[line width = 0.5mm, ->] (0, -2.5) -- (0, 2.5) coordinate[above] (e2);
% calculate brace points for major axis
\path (O) -- (A) coordinate[pos=.02] (a1) coordinate[pos=.98] (a2);
\draw[decorate, decoration = {brace, amplitude = 12pt, mirror, raise =4pt}, yshift = 0pt]
    (a2) -- (a1) coordinate[midway] (tl1);
\coordinate (l1) at ([yshift=1cm]tl1);
% calculate brace points for minor axis
\path (O) -- (B) coordinate[pos=.05] (b1) coordinate[pos=.95] (b2);
\draw[decorate, decoration = {brace, amplitude = 12pt, mirror, raise =4pt}, yshift = 0pt]
    (b2) -- (b1) coordinate[midway] (tl2);
\coordinate (l2) at ([xshift=-.9cm]tl2);
\end{scope}

\draw[line width = 0.5mm, dashed, ->] (-2.5, 0) -- (2.5, 0) node[right]{$x$};
\draw[line width = 0.5mm, dashed, ->] (0, -2.5) -- (0, 2.5) node[above]{$y$};
\node[anchor=south west] at (e1) {$x^{'}$};
\node[anchor=south east] at (e2) {$y^{'}$};
\node[anchor=south west] at ([xshift=-0.1cm,yshift=-0.4cm]l1) {$a$};
\node[anchor=south east] at ([xshift=.2cm]l2) {$b$};
\end{tikzpicture}
%******

\begin{tikzpicture}
\begin{axis}[
        xmin=-2.5,xmax=2.5,
    ymin=-2.5,ymax=2.5]
    all axes={ticks=few}
    \addplot [black,ultra thick,domain=-1:1] ({cosh(x)}, {sinh(x)});
    \addplot [black,ultra thick,domain=-1:1] ({-cosh(x)}, {sinh(x)});
    \addplot[red,dashed] expression {x};
    \addplot[red,dashed] expression {-x};
    \end{axis}
\end{tikzpicture}\\
\end{document}

어떤 도움이라도 주시면 감사하겠습니다.

관련 정보