3

I want to draw a Parallelogram which there is a line perpendicular to it and also there are some circles on this Parallelogram and some points on the circles. as you can see in this picture. could any body tell me how I can do that in latex?

enter image description here

  • Welcome to Latex.SX. Try to provide a minimal compilable working example. Do circles look like circles or like ellipses for perspective vision ? – Tarass Mar 17 '18 at 16:32
  • 1
    welcome to tex.se! what you try so far? for an similar picture? o you look to texample.net/tikz/examples – Zarko Mar 17 '18 at 16:34
  • 4
    That will look uggly without perspective ... – Tarass Mar 17 '18 at 16:55
7

I am wondering about the same thing as @Tarass. Here are both possibilities, a picture according to your description and a 3D picture.

\documentclass{article}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\tdplotsetmaincoords{110}{20}
\usepackage{subfig}
\begin{document}
\begin{figure}
 \subfloat{\begin{tikzpicture}
 \draw (-4,-2) -- (2,-2,0) -- (4,2,0) -- (-2,2,0) -- cycle;
 \draw (0,0) circle ({2/3});
 \draw (0,0) circle ({4/3});
 \foreach \Angle in {45,135,225,315}
 {\draw[fill] ({\Angle-30}:{2/3}) circle (1pt);
 \draw[fill] ({\Angle+15}:{4/3}) circle (1pt);}
 \draw (0,0) -- (0,3);
\end{tikzpicture}}
\subfloat{\begin{tikzpicture}
 \tdplotsetrotatedcoords{90}{0}{0}
 \begin{scope}[tdplot_rotated_coords]
 \draw (0,0,0) circle ({2/3});
 \draw (0,0,0) circle ({4/3});
 \foreach \Angle in {45,135,225,315}
 {\draw[fill] ({\Angle-45}:{2/3}) circle (1pt);
 \draw[fill] (\Angle:{4/3}) circle (1pt);}
 \draw (-2,-2,0) -- (2,-2,0) -- (2,2,0) -- (-2,2,0) -- cycle;
 \draw (0,0,0) -- (0,0,3);
 \end{scope}
\end{tikzpicture}}
\end{figure}
\end{document}

enter image description here

  • You were faster ... – Tarass Mar 17 '18 at 16:54
  • @Tarass No worries, I upvoted your post as well. ;-) – user121799 Mar 17 '18 at 17:25
  • You had time to do this too !!! – Tarass Mar 17 '18 at 17:28
  • @Tarass Not really, I am still busy with this and that. – user121799 Mar 17 '18 at 17:31
  • That shall never pass throught this !! – Tarass Mar 17 '18 at 17:33
6

enter image description here

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{3d}
\begin{document}

\begin{tikzpicture}[x  = {(1cm,0cm)},
                    y  = {(40:.5cm)},
                    z  = {(0cm,1cm)}]
\begin{scope}[canvas is xy plane at z=0]
  \draw (0,0) circle (3) ;
  \draw (0,0) circle (2) ;
  \draw (-5,-4) -- (5,-4) -- (5,4) -- (-5,4) -- cycle ;

  \foreach \x in {30,60,...,360} {\fill (\x:3) circle (2pt) ;} ;
\end{scope}

\begin{scope}[canvas is xz plane at y=0]
  \draw[-stealth] (0,0)--(0,4) ;
\end{scope}
\end{tikzpicture}

\bigskip

\begin{tikzpicture}

  \draw (0,0) circle (1) ;
  \draw (0,0) circle (.5) ;

  \draw (-7,-2) -- (2.5,-2) -- (7,1.5) -- (-2.5,1.5) -- cycle ;
  \draw[-stealth] (0,0)--(0,4) ;
  \foreach \x in {30,60,...,360} {\fill (\x:1) circle (2pt) ;} ;

\end{tikzpicture}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.