How to draw this diagram/graph using tikz? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)How to draw stack diagram with TiKz?Cannot draw this diagram using tikz-cdHow to refine this tikz diagram?How to draw vertical spiral using TiKZ?How to draw this simple box diagram with TikzTikz: Better way to draw this simple diagramDraw diagram in TikZPhasor summation using tikzCan I draw this diagram in Tikz?How to draw/optimize this graph with tikz

Flight departed from the gate 5 min before scheduled departure time. Refund options

Fit odd number of triplets in a measure?

Is this Kuo-toa homebrew race balanced?

How do I say "this must not happen"?

Are there any irrational/transcendental numbers for which the distribution of decimal digits is not uniform?

What is a more techy Technical Writer job title that isn't cutesy or confusing?

Did any compiler fully use 80-bit floating point?

Twin's vs. Twins'

Can the Haste spell grant both a Beast Master ranger and their animal companion extra attacks?

Noise in Eigenvalues plot

How could a hydrazine and N2O4 cloud (or it's reactants) show up in weather radar?

How much damage would a cupful of neutron star matter do to the Earth?

Keep at all times, the minus sign above aligned with minus sign below

Is there a verb for listening stealthily?

My mentor says to set image to Fine instead of RAW — how is this different from JPG?

Typical Calculus BC Separation of Variables Question

Can two people see the same photon?

Do i imagine the linear (straight line) homotopy in a correct way?

Does a random sequence of vectors span a Hilbert space?

Pointing to problems without suggesting solutions

How to make triangles with rounded sides and corners? (squircle with 3 sides)

Derived column in a data extension

Does the transliteration of 'Dravidian' exist in Hindu scripture? Does 'Dravida' refer to a Geographical area or an ethnic group?

Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?



How to draw this diagram/graph using tikz?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)How to draw stack diagram with TiKz?Cannot draw this diagram using tikz-cdHow to refine this tikz diagram?How to draw vertical spiral using TiKZ?How to draw this simple box diagram with TikzTikz: Better way to draw this simple diagramDraw diagram in TikZPhasor summation using tikzCan I draw this diagram in Tikz?How to draw/optimize this graph with tikz










1















I have this diagram, and I have tried to draw it doing every dot and line, but I was wondering, is there a way to do it with foreach cycles or something like that? thanks.



enter image description here










share|improve this question



















  • 4





    What have you tried so far? Anyway you are not a new user anymore

    – JouleV
    yesterday






  • 2





    @close-voters: The OP hasn't been online for 2 hours, i.e. he doesn't know what is going on yet. Give him some time.

    – JouleV
    yesterday











  • @JouleV Questions can also be reopened. In its current state it is unclear. Therefore voting to close.

    – Henri Menke
    yesterday











  • @HenriMenke The question is not unclear. OP informs us that he/she have solved the problem, but the code used is not optimal OP then asks if somebody may give him a tip how to solve the same with a loop or similar. OP does not ask you to write the code, just provide a hint, as JouleV has done.

    – Sveinung
    yesterday















1















I have this diagram, and I have tried to draw it doing every dot and line, but I was wondering, is there a way to do it with foreach cycles or something like that? thanks.



enter image description here










share|improve this question



















  • 4





    What have you tried so far? Anyway you are not a new user anymore

    – JouleV
    yesterday






  • 2





    @close-voters: The OP hasn't been online for 2 hours, i.e. he doesn't know what is going on yet. Give him some time.

    – JouleV
    yesterday











  • @JouleV Questions can also be reopened. In its current state it is unclear. Therefore voting to close.

    – Henri Menke
    yesterday











  • @HenriMenke The question is not unclear. OP informs us that he/she have solved the problem, but the code used is not optimal OP then asks if somebody may give him a tip how to solve the same with a loop or similar. OP does not ask you to write the code, just provide a hint, as JouleV has done.

    – Sveinung
    yesterday













1












1








1








I have this diagram, and I have tried to draw it doing every dot and line, but I was wondering, is there a way to do it with foreach cycles or something like that? thanks.



enter image description here










share|improve this question
















I have this diagram, and I have tried to draw it doing every dot and line, but I was wondering, is there a way to do it with foreach cycles or something like that? thanks.



enter image description here







tikz-pgf diagrams






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday









JouleV

14.8k22666




14.8k22666










asked yesterday









J.RodriguezJ.Rodriguez

3266




3266







  • 4





    What have you tried so far? Anyway you are not a new user anymore

    – JouleV
    yesterday






  • 2





    @close-voters: The OP hasn't been online for 2 hours, i.e. he doesn't know what is going on yet. Give him some time.

    – JouleV
    yesterday











  • @JouleV Questions can also be reopened. In its current state it is unclear. Therefore voting to close.

    – Henri Menke
    yesterday











  • @HenriMenke The question is not unclear. OP informs us that he/she have solved the problem, but the code used is not optimal OP then asks if somebody may give him a tip how to solve the same with a loop or similar. OP does not ask you to write the code, just provide a hint, as JouleV has done.

    – Sveinung
    yesterday












  • 4





    What have you tried so far? Anyway you are not a new user anymore

    – JouleV
    yesterday






  • 2





    @close-voters: The OP hasn't been online for 2 hours, i.e. he doesn't know what is going on yet. Give him some time.

    – JouleV
    yesterday











  • @JouleV Questions can also be reopened. In its current state it is unclear. Therefore voting to close.

    – Henri Menke
    yesterday











  • @HenriMenke The question is not unclear. OP informs us that he/she have solved the problem, but the code used is not optimal OP then asks if somebody may give him a tip how to solve the same with a loop or similar. OP does not ask you to write the code, just provide a hint, as JouleV has done.

    – Sveinung
    yesterday







4




4





What have you tried so far? Anyway you are not a new user anymore

– JouleV
yesterday





What have you tried so far? Anyway you are not a new user anymore

– JouleV
yesterday




2




2





@close-voters: The OP hasn't been online for 2 hours, i.e. he doesn't know what is going on yet. Give him some time.

– JouleV
yesterday





@close-voters: The OP hasn't been online for 2 hours, i.e. he doesn't know what is going on yet. Give him some time.

– JouleV
yesterday













@JouleV Questions can also be reopened. In its current state it is unclear. Therefore voting to close.

– Henri Menke
yesterday





@JouleV Questions can also be reopened. In its current state it is unclear. Therefore voting to close.

– Henri Menke
yesterday













@HenriMenke The question is not unclear. OP informs us that he/she have solved the problem, but the code used is not optimal OP then asks if somebody may give him a tip how to solve the same with a loop or similar. OP does not ask you to write the code, just provide a hint, as JouleV has done.

– Sveinung
yesterday





@HenriMenke The question is not unclear. OP informs us that he/she have solved the problem, but the code used is not optimal OP then asks if somebody may give him a tip how to solve the same with a loop or similar. OP does not ask you to write the code, just provide a hint, as JouleV has done.

– Sveinung
yesterday










1 Answer
1






active

oldest

votes


















7














This does not provide a full code, but a hint so that you can shorten your code. You can use a pic for every group of dots like that.



documentclass[tikz]standalone
tikzset
dotcirc/.style=circle,inner sep=2pt,draw,fill=#1,
pics/tripdots/.style args=#1/#2-#3/#4-#5/#6,name=#7
code=
beginscope[local bounding box=#7]
draw (-1.2,0)--(1.2,0);
draw (0,0.2)--(0,-.2);
path (-1,0) node[dotcirc=#1] (#2) ;
path (0,0) node[dotcirc=#3] (#4) ;
path (1,0) node[dotcirc=#5] (#6) ;
endscope



begindocument
begintikzpicture
pic at (0,0) tripdots=red/ra-yellow/ya-green/ga,name=a;
draw[<-] (a) -- ++(.5,1) node[above] scalebox0.5Traffic lights;
draw[<-] (ra) -- ++ (.5,-1) node[below] scalebox0.5A colored circle;
endtikzpicture
enddocument


enter image description here






share|improve this answer

























  • A good answer to the question. :)

    – Sveinung
    yesterday











  • Thanks a lot!. And a question, I have hear somethimes that "pic" use, but I don't know how it is, is that a package? I know I am not new at this but there are a lot of things I still don't know about tex.

    – J.Rodriguez
    yesterday






  • 1





    @J.Rodriguez You just have to read chapter 18 of the PGF manual. pic is very useful - it is a syntax in TikZ, not a package.

    – JouleV
    yesterday












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f485713%2fhow-to-draw-this-diagram-graph-using-tikz%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









7














This does not provide a full code, but a hint so that you can shorten your code. You can use a pic for every group of dots like that.



documentclass[tikz]standalone
tikzset
dotcirc/.style=circle,inner sep=2pt,draw,fill=#1,
pics/tripdots/.style args=#1/#2-#3/#4-#5/#6,name=#7
code=
beginscope[local bounding box=#7]
draw (-1.2,0)--(1.2,0);
draw (0,0.2)--(0,-.2);
path (-1,0) node[dotcirc=#1] (#2) ;
path (0,0) node[dotcirc=#3] (#4) ;
path (1,0) node[dotcirc=#5] (#6) ;
endscope



begindocument
begintikzpicture
pic at (0,0) tripdots=red/ra-yellow/ya-green/ga,name=a;
draw[<-] (a) -- ++(.5,1) node[above] scalebox0.5Traffic lights;
draw[<-] (ra) -- ++ (.5,-1) node[below] scalebox0.5A colored circle;
endtikzpicture
enddocument


enter image description here






share|improve this answer

























  • A good answer to the question. :)

    – Sveinung
    yesterday











  • Thanks a lot!. And a question, I have hear somethimes that "pic" use, but I don't know how it is, is that a package? I know I am not new at this but there are a lot of things I still don't know about tex.

    – J.Rodriguez
    yesterday






  • 1





    @J.Rodriguez You just have to read chapter 18 of the PGF manual. pic is very useful - it is a syntax in TikZ, not a package.

    – JouleV
    yesterday
















7














This does not provide a full code, but a hint so that you can shorten your code. You can use a pic for every group of dots like that.



documentclass[tikz]standalone
tikzset
dotcirc/.style=circle,inner sep=2pt,draw,fill=#1,
pics/tripdots/.style args=#1/#2-#3/#4-#5/#6,name=#7
code=
beginscope[local bounding box=#7]
draw (-1.2,0)--(1.2,0);
draw (0,0.2)--(0,-.2);
path (-1,0) node[dotcirc=#1] (#2) ;
path (0,0) node[dotcirc=#3] (#4) ;
path (1,0) node[dotcirc=#5] (#6) ;
endscope



begindocument
begintikzpicture
pic at (0,0) tripdots=red/ra-yellow/ya-green/ga,name=a;
draw[<-] (a) -- ++(.5,1) node[above] scalebox0.5Traffic lights;
draw[<-] (ra) -- ++ (.5,-1) node[below] scalebox0.5A colored circle;
endtikzpicture
enddocument


enter image description here






share|improve this answer

























  • A good answer to the question. :)

    – Sveinung
    yesterday











  • Thanks a lot!. And a question, I have hear somethimes that "pic" use, but I don't know how it is, is that a package? I know I am not new at this but there are a lot of things I still don't know about tex.

    – J.Rodriguez
    yesterday






  • 1





    @J.Rodriguez You just have to read chapter 18 of the PGF manual. pic is very useful - it is a syntax in TikZ, not a package.

    – JouleV
    yesterday














7












7








7







This does not provide a full code, but a hint so that you can shorten your code. You can use a pic for every group of dots like that.



documentclass[tikz]standalone
tikzset
dotcirc/.style=circle,inner sep=2pt,draw,fill=#1,
pics/tripdots/.style args=#1/#2-#3/#4-#5/#6,name=#7
code=
beginscope[local bounding box=#7]
draw (-1.2,0)--(1.2,0);
draw (0,0.2)--(0,-.2);
path (-1,0) node[dotcirc=#1] (#2) ;
path (0,0) node[dotcirc=#3] (#4) ;
path (1,0) node[dotcirc=#5] (#6) ;
endscope



begindocument
begintikzpicture
pic at (0,0) tripdots=red/ra-yellow/ya-green/ga,name=a;
draw[<-] (a) -- ++(.5,1) node[above] scalebox0.5Traffic lights;
draw[<-] (ra) -- ++ (.5,-1) node[below] scalebox0.5A colored circle;
endtikzpicture
enddocument


enter image description here






share|improve this answer















This does not provide a full code, but a hint so that you can shorten your code. You can use a pic for every group of dots like that.



documentclass[tikz]standalone
tikzset
dotcirc/.style=circle,inner sep=2pt,draw,fill=#1,
pics/tripdots/.style args=#1/#2-#3/#4-#5/#6,name=#7
code=
beginscope[local bounding box=#7]
draw (-1.2,0)--(1.2,0);
draw (0,0.2)--(0,-.2);
path (-1,0) node[dotcirc=#1] (#2) ;
path (0,0) node[dotcirc=#3] (#4) ;
path (1,0) node[dotcirc=#5] (#6) ;
endscope



begindocument
begintikzpicture
pic at (0,0) tripdots=red/ra-yellow/ya-green/ga,name=a;
draw[<-] (a) -- ++(.5,1) node[above] scalebox0.5Traffic lights;
draw[<-] (ra) -- ++ (.5,-1) node[below] scalebox0.5A colored circle;
endtikzpicture
enddocument


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited yesterday

























answered yesterday









JouleVJouleV

14.8k22666




14.8k22666












  • A good answer to the question. :)

    – Sveinung
    yesterday











  • Thanks a lot!. And a question, I have hear somethimes that "pic" use, but I don't know how it is, is that a package? I know I am not new at this but there are a lot of things I still don't know about tex.

    – J.Rodriguez
    yesterday






  • 1





    @J.Rodriguez You just have to read chapter 18 of the PGF manual. pic is very useful - it is a syntax in TikZ, not a package.

    – JouleV
    yesterday


















  • A good answer to the question. :)

    – Sveinung
    yesterday











  • Thanks a lot!. And a question, I have hear somethimes that "pic" use, but I don't know how it is, is that a package? I know I am not new at this but there are a lot of things I still don't know about tex.

    – J.Rodriguez
    yesterday






  • 1





    @J.Rodriguez You just have to read chapter 18 of the PGF manual. pic is very useful - it is a syntax in TikZ, not a package.

    – JouleV
    yesterday

















A good answer to the question. :)

– Sveinung
yesterday





A good answer to the question. :)

– Sveinung
yesterday













Thanks a lot!. And a question, I have hear somethimes that "pic" use, but I don't know how it is, is that a package? I know I am not new at this but there are a lot of things I still don't know about tex.

– J.Rodriguez
yesterday





Thanks a lot!. And a question, I have hear somethimes that "pic" use, but I don't know how it is, is that a package? I know I am not new at this but there are a lot of things I still don't know about tex.

– J.Rodriguez
yesterday




1




1





@J.Rodriguez You just have to read chapter 18 of the PGF manual. pic is very useful - it is a syntax in TikZ, not a package.

– JouleV
yesterday






@J.Rodriguez You just have to read chapter 18 of the PGF manual. pic is very useful - it is a syntax in TikZ, not a package.

– JouleV
yesterday


















draft saved

draft discarded
















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f485713%2fhow-to-draw-this-diagram-graph-using-tikz%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Благоевград Съдържание География | История | Население | Политика | Икономика и инфрастуктура | Здравеопазване | Образование и наука | Култура и забавления | Забележителности | Личности | Литература | Външни препратки | Бележки | Навигация42°01′18.99″ с. ш. 23°05′51″ и. д. / 42.021944° с. ш. 23.0975° и. д.*БлагоевградразширитередактиранеОфициален уебсайт на община БлагоевградНовинарски портал на Благоевград – blagoevgrad.euСайтове за БлагоевградНационален статистически институтdariknews.bgГригоровичъ, Викторъ. „Очеркъ путешествія по Европейской Турціи“. Москва, 1877.Стрезов, Георги. Два санджака от Източна Македония. Периодично списание на Българското книжовно дружество в Средец, кн. XXXVII и XXXVIII, 1891, стр. 18 – 19.Македония. Етнография и статистикаГаджанов, Димитър Г. Мюсюлманското население в Новоосвободените земи, в: Научна експедиция в Македония и Поморавието 1916, Военноиздателски комплекс „Св. Георги Победоносец“, Университетско издателство „Св. Климент Охридски“, София, 1993, стр. 244.паметник на незнайния четник&cd=18&hl=en&ct=clnk&client=firefox-a „История на днешен Благоевград“, взето от www.museumblg.com на 16 март 2010 г.„Справка за населението на град Благоевград, община Благоевград, област Благоевград, НСИ“„The population of all towns and villages in Blagoevgrad Province with 50 inhabitants or more according to census results and latest official estimates“„Ethnic composition, all places: 2011 census“История на Неврокопска епархия.Национален статистически институтМюсюлманско изповедание. Главно мюфтийствоНационален публичен регистър на храмовете в БългарияМюсюлманско изповедание. Главно мюфтийствоwww.dnes.bg Джамията в Благоевград не била паленаwww.sesc-bg.orgСписък на побратимени градовеТехническо побратимяванеГУМ грейва в цветовете на нощен Лас Вегас под името „Largo“, „МОЛ Благоевград“..., в. „Струма“grabo.bgwww.cinemaxbg.comррр4238731-067cad53a-0546-417b-a3d3-51e49b1d2232147736077147736077

What is the best defense strategy for Survival in Grand Theft Auto Online?What is JP used for in Grand Theft Auto Online?How do I setup a Crew HQ in Grand Theft Auto Online?How does stealth work in Grand Theft Auto Online?Is it possible to own more than 10 cars in Grand Theft Auto online?Where to find truck/trailers in Grand Theft Auto OnlineWhat are some of the best missions to do on Grand Theft Auto 5 onlineFastest Car in Grand Theft Auto V PCHow to setup a Crew vs Crew online session in Grand Theft Auto Online?Grand theft auto 5 crossplayingRestart Grand Theft Auto V Online?

How does Billy Russo acquire his 'Jigsaw' mask? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why does Bane wear the mask?Why does Kylo Ren wear a mask?Why did Captain America remove his mask while fighting Batroc the Leaper?How did the OA acquire her wisdom?Is Billy Breckenridge gay?How does Adrian Toomes hide his earnings from the IRS?What is the state of affairs on Nootka Sound by the end of season 1?How did Tia Dalma acquire Captain Barbossa's body?How is one “Deemed Worthy”, to acquire the Greatsword “Dawn”?How did Karen acquire the handgun?