Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'll appreciate suggestions for a code that create the following nice visualization of frame-dragging (or anything alike):

enter image description here

share|improve this question
13  
Also, please don't just post a picture and say "I want to draw this": Show what you've tried so far, and explain where exactly you're stuck. –  Jake May 7 '12 at 19:44
    
Werner and Jack, please see my acomment to percusse below. I think my question was very clear, I asked for a code to start with. The suggestion below is just what I needed. –  user1999 May 8 '12 at 8:12
    
@user1999: Of course the question is clear, but the way it is now, it is also a bit selfish: This is a very localised problem that's only likely to benefit you. If you had done a bit of research yourself, you probably could have figured out a way to get started yourself. Then you could have asked a more widely applicable question ("How do I loop over two variables at once?", for instance). Since you say that "the suggestion below is just what I needed", why don't you also accept it? –  Jake May 8 '12 at 10:48
    
@user1999: No problem. @ percusse explained the way this community usually operates. –  Werner May 8 '12 at 18:38

1 Answer 1

up vote 13 down vote accepted

Just for the sake of answering with something instead of letting it linger in the unanswered list. Since your accept rate is zero and this is a question, your future questions are also unlikely to be answered. Please consider improving your stats and question formulation.

\documentclass[border=5mm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\foreach \x in {1,...,10}{
\pgfmathparse{1-atan(\x)/90}
\xdef\rotang{\pgfmathresult}
\node[draw,circle,minimum height=\x cm,rotate=7/\x*\rotang r] (n-\x) at (0,0) {};
\foreach \y [count=\yi] in {22.5,45,...,360}{
\coordinate (l-\x-\yi) at (n-\x.\y) {};
    }
}
\foreach \yi [count=\y]in {22.5,45,...,360}
    \draw[thick] (l-1-\y) to[in=175+\yi,out=105+\yi] (l-2-\y)
        \foreach \x [evaluate=\x as \nextx using {int(\x+1)} ] in {3,4,...,8}{
           --(l-\x-\y) -- (l-\nextx-\y)  
        } -- (l-10-\y);
\end{tikzpicture}
\end{document}

enter image description here

share|improve this answer
5  
This is really fancy! Although I guess the more "pedagogic" thing to do would have been to wait for a day or two to see if the OP adds new information, and if they don't to close the question as "Too localized". Now they got what they wanted, why wouldn't they post another draw-it-for-me question in the future? –  Jake May 8 '12 at 6:56
1  
This is really awesome. I didn't have a clue how to start (my knowledge in tikz is of order zero...) Thanks a lot. I'll play a bit with the parameters and learn how to alter the graphics according to my exact needs. Thanks again! –  user1999 May 8 '12 at 8:07
1  
@user1999 Did you also read what I have written in the intro of my answer? –  percusse May 8 '12 at 9:27
    
Yes, of course. Sometimes you do not know where to start. In this case you just ask for a starting point and hope someone finds it an interesting challenge so both sides benefit. And sometimes one gives help just for the sake of giving help... I admit it happenes to me once in a while... –  user1999 May 8 '12 at 10:17
1  
with pleasure... now I see that people have already noticed me about acceptance in the past, but I did not get it :) –  user1999 May 8 '12 at 13:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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