How can show that two ellipses are in different planes?
\documentclass[convert = false, border = 1cm]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\pgfmathsetmacro{\as}{2};
\pgfmathsetmacro{\bs}{1.95};
\pgfmathsetmacro{\cs}{sqrt(\as^2 - \bs^2)}
\pgfmathsetmacro{\al}{3};
\pgfmathsetmacro{\bl}{2.25};
\pgfmathsetmacro{\cl}{sqrt(\al^2 - \bl^2)}
\pgfmathsetmacro{\xs}{abs(\cs - \cl)}
\draw (0, 0) ellipse [x radius = \as cm, y radius = \bs cm];
\draw (\xs, 0) ellipse [x radius = \al cm, y radius = \bl cm];
\filldraw[black] (-\cs, 0) circle [radius = .1cm];
\filldraw[black] (-\cl + \xs, 0) circle [radius = .1cm];
\end{tikzpicture}
\end{document}
From the image, we see that both ellipses are in the same plane. How can I rotate the small ellipse to make it appear as if the smaller ellipse is in a different plane?
Using rotate around
doesn't achieve that look.
Edit 2:
I am a little hesitant about using xslant
and yslant
since it appears that the ellipse is being shifted and stretched.
Here is a poor picture(my phone camera flash refused to work) of two ellipse in different planes.
If adjust my smaller ellipse, it stretches and appears to shift dramatically.
From the image below, the focus appears to be in the center of smaller ellipse now and it has elongated.
Edit:
So I found this post Why isn't the arc drawn on the good plane using tikz-3dplot in Tait-Bryan convention but I don't fully understand the code. However, the poster was able to rotate ellipse and have a better visual appeal and the poster could define the plane it is in such as xy
, yz
, and xz
. How could I adapt this code to my situation?
Best Answer
One possibility would be to use
xslant
,yslant
; the effect is better is one draws some containing planes:A brief description of
xslant
andyslant
: