|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Concentric circlesAll,
I'm looking for some ideas on how to draw the attached image using Tikz. Any suggestions welcome. David. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
|
|
Re: Concentric circlesLe 27 oct. 09 à 19:43, David Arnold a écrit : > All, > > I'm looking for some ideas on how to draw the attached image using > Tikz. \draw[thick] (0,0) circle (3cm); \draw[thick,fill=black!30] (0,0) circle (2cm); \draw[thick,fill=white] (0,0) circle (1cm); \draw[thick] (30:-5cm) -- (30:5cm); \draw[thick] (-30:-5cm) -- (-30:5cm); \draw[thick,fill=black!30] (00) -- (-30:3cm) arc (-30:30:3cm) -- cycle; \draw[thick,fill=black!30] (00) -- (-30:-3cm) arc (-30:30:-3cm) -- cycle; \draw[thick,fill=white] (00) -- (-30:2cm) arc (-30:30:2cm) -- cycle; \draw[thick,fill=white] (00) -- (-30:-2cm) arc (-30:30:-2cm) -- cycle; \draw[thick,fill=black!30] (00) -- (-30:1cm) arc (-30:30:1cm) -- cycle; \draw[thick,fill=black!30] (00) -- (-30:-1cm) arc (-30:30:-1cm) -- cycle; Eric DÉTREZ Maths PC* & Info MP-MP* Lycée Faidherbe Lille ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
|
|
Re: Concentric circlesHi,
Could be parameterised a bit better, but something like this should do the trick: \documentclass{minimal} \usepackage{tikz} \begin{document} \def\a{20} \begin{tikzpicture}[very thick] \foreach \i in {1,-1} { \begin{scope} \clip (0,0) -- (\a*\i:6cm) arc (\a*\i:160*\i:6cm) -- cycle; \path [even odd rule, fill=gray!50, draw=black] \foreach \r in {4,...,1} { circle [radius=\r cm]} ; \end{scope} \begin{scope} \clip (0,0) -- (-\i*90+90-\a:6cm) arc (-\i*90+90-\a:-\i*90+90+\a:6cm) -- cycle; \path [even odd rule, fill=gray!50, draw=black] \foreach \r in {3,...,1} { circle [radius=\r cm]} ; \end{scope} } \draw (180-\a:6cm) -- (-\a:6cm) (180+\a:6cm) -- (\a:6cm); \end{tikzpicture} \end{document} Hope this helps, Mark 2009/10/27 David Arnold <dwarnold45@...>: > All, > > I'm looking for some ideas on how to draw the attached image using Tikz. > > Any suggestions welcome. > > David. > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > pgf-users mailing list > pgf-users@... > https://lists.sourceforge.net/lists/listinfo/pgf-users > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
|
|
Re: Concentric circlesThe astute among you will notice I got it rather wrong. Here is a
corrected version (note, it requires the latest CVS version). \documentclass{minimal} \usepackage{tikz} \begin{document} \def\a{20} \begin{tikzpicture}[very thick] \foreach \i in {1,-1} { \begin{scope} \clip (0,0) -- (\a*\i:6cm) arc (\a*\i:160*\i:6cm) -- cycle; \path [even odd rule, fill=gray!50, draw=black] \foreach \r in {3,...,1} { circle [radius=\r cm]} ; \draw circle [radius=4cm]; \end{scope} \begin{scope} \clip (0,0) -- (-\i*90+90-\a:6cm) arc (-\i*90+90-\a:-\i*90+90+\a:6cm) -- cycle; \path [even odd rule, fill=gray!50, draw=black] \foreach \r in {4,...,1} { circle [radius=\r cm]} ; \end{scope} } \draw (180-\a:6cm) -- (-\a:6cm) (180+\a:6cm) -- (\a:6cm); \end{tikzpicture} \end{document} Mark 2009/10/27 Mark Wibrow <m.wibrow@...>: > Hi, > > Could be parameterised a bit better, but something like this should do > the trick: > > \documentclass{minimal} > > \usepackage{tikz} > > \begin{document} > > \def\a{20} > > \begin{tikzpicture}[very thick] > \foreach \i in {1,-1} > { > \begin{scope} > \clip (0,0) -- (\a*\i:6cm) arc (\a*\i:160*\i:6cm) -- cycle; > \path [even odd rule, fill=gray!50, draw=black] > \foreach \r in {4,...,1} { circle [radius=\r cm]} ; > \end{scope} > \begin{scope} > \clip (0,0) -- (-\i*90+90-\a:6cm) arc > (-\i*90+90-\a:-\i*90+90+\a:6cm) -- cycle; > \path [even odd rule, fill=gray!50, draw=black] > \foreach \r in {3,...,1} { circle [radius=\r cm]} ; > \end{scope} > } > \draw (180-\a:6cm) -- (-\a:6cm) (180+\a:6cm) -- (\a:6cm); > \end{tikzpicture} > \end{document} > > Hope this helps, > > Mark > > > 2009/10/27 David Arnold <dwarnold45@...>: >> All, >> >> I'm looking for some ideas on how to draw the attached image using Tikz. >> >> Any suggestions welcome. >> >> David. >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> pgf-users mailing list >> pgf-users@... >> https://lists.sourceforge.net/lists/listinfo/pgf-users >> >> > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
|
|
Re: Concentric circlesHmm. Still not right, as I gave you an extra circle. Call it a bonus.
2009/10/27 Mark Wibrow <m.wibrow@...>: > The astute among you will notice I got it rather wrong. Here is a > corrected version (note, it requires the latest CVS version). > > \documentclass{minimal} > > \usepackage{tikz} > > \begin{document} > > \def\a{20} > > \begin{tikzpicture}[very thick] > \foreach \i in {1,-1} > { > \begin{scope} > \clip (0,0) -- (\a*\i:6cm) arc (\a*\i:160*\i:6cm) -- cycle; > \path [even odd rule, fill=gray!50, draw=black] > \foreach \r in {3,...,1} { circle [radius=\r cm]} ; > \draw circle [radius=4cm]; > > \end{scope} > \begin{scope} > \clip (0,0) -- (-\i*90+90-\a:6cm) arc > (-\i*90+90-\a:-\i*90+90+\a:6cm) -- cycle; > \path [even odd rule, fill=gray!50, draw=black] > \foreach \r in {4,...,1} { circle [radius=\r cm]} ; > > \end{scope} > } > \draw (180-\a:6cm) -- (-\a:6cm) (180+\a:6cm) -- (\a:6cm); > \end{tikzpicture} > \end{document} > > Mark > > 2009/10/27 Mark Wibrow <m.wibrow@...>: >> Hi, >> >> Could be parameterised a bit better, but something like this should do >> the trick: >> >> \documentclass{minimal} >> >> \usepackage{tikz} >> >> \begin{document} >> >> \def\a{20} >> >> \begin{tikzpicture}[very thick] >> \foreach \i in {1,-1} >> { >> \begin{scope} >> \clip (0,0) -- (\a*\i:6cm) arc (\a*\i:160*\i:6cm) -- cycle; >> \path [even odd rule, fill=gray!50, draw=black] >> \foreach \r in {4,...,1} { circle [radius=\r cm]} ; >> \end{scope} >> \begin{scope} >> \clip (0,0) -- (-\i*90+90-\a:6cm) arc >> (-\i*90+90-\a:-\i*90+90+\a:6cm) -- cycle; >> \path [even odd rule, fill=gray!50, draw=black] >> \foreach \r in {3,...,1} { circle [radius=\r cm]} ; >> \end{scope} >> } >> \draw (180-\a:6cm) -- (-\a:6cm) (180+\a:6cm) -- (\a:6cm); >> \end{tikzpicture} >> \end{document} >> >> Hope this helps, >> >> Mark >> >> >> 2009/10/27 David Arnold <dwarnold45@...>: >>> All, >>> >>> I'm looking for some ideas on how to draw the attached image using Tikz. >>> >>> Any suggestions welcome. >>> >>> David. >>> ------------------------------------------------------------------------------ >>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>> is the only developer event you need to attend this year. Jumpstart your >>> developing skills, take BlackBerry mobile applications to market and stay >>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>> http://p.sf.net/sfu/devconference >>> _______________________________________________ >>> pgf-users mailing list >>> pgf-users@... >>> https://lists.sourceforge.net/lists/listinfo/pgf-users >>> >>> >> > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
| Free embeddable forum powered by Nabble | Forum Help |