# Tag Info

9

You are correct when you say that it gets quite messy. The way I've drawn it with straight lines after tritones lines start to double up so instead I suggest drawing two separate graphs for major seconds to tritones and then tritones to major sevenths. So the first, major seconds to tritones, graph would give Which is given by \documentclass[tikz, border=20]...

9

So here it is. Using my previous answers to two of your questions, here's a way to find intersections between lines defined between nodes: \node at (intersection of n2--n6 and n1--n3) (A) {}; is pretty straightforward to understand. You named your nodes n1 to n6, you then put a node named A (not mandatory to name it, but allow you to use it afterwards) at ...

5

\documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{intersections,backgrounds} \begin{document} \tikzset{ summit/.style={inner sep=1pt,outer sep=0pt,circle,fill=black,text=white}, innode/.style={inner sep=1pt,outer sep=0pt,circle,fill=green!50!black,text=white}, outnode/.style={inner sep=1pt,outer sep=0pt,circle,fill=...

5

Here is my approach. I tried to get the data points of the lines using this online tool and did a potential fit usig Excel to get the functions. Then, I added the lines to the loglog-plot. For the labels, you can use \draw in combination with (axis cs:x,y) to have them aligned using plot coordinates. \documentclass[border=5pt]{standalone} \usepackage{...

5

You were quite close to desired result:-). A simple, elementary solution using two loops is: \documentclass[border=3.141592]{standalone} \usepackage{tikz} \usetikzlibrary{backgrounds} \begin{document} \begin{tikzpicture}[ dot/.style = {circle, fill, minimum size=3pt, inner sep=0pt, outer sep=0pt} ] \foreach \i ...

4

Edit: I reduce samples number to your 125. Let me noted, that exact copy of showed image is against of random function (seed of function is not defined, so it can differ from compiling to compiling)). So, if you really like to have exact copy, you need scan original image and include it in your document as graphic file and to image add note about source of ...

4

You might also like a Metapost version, perhaps? \documentclass[border=5mm]{standalone} \usepackage{luamplib} \begin{document} \begin{mplibcode} beginfig(1); path h; h = for t=0 upto 5: 72 dir 60t -- endfor cycle; z0 = whatever[point 0 of h, point 2 of h] = whatever[point 1 of h, point 5 of h]; z1 = whatever[point 0 of h, point 2 of h] = ...

4

Like this: Note: your code fragment doesn't produce showed image You only need to separate drawing lines between vertices on the black and red part: \documentclass[border=3.141592]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ dot/.style={circle,fill, inner sep=1.5pt}, every label/.style={inner sep=0pt}] \newdimen\R \R=1....

3

Updated Here, with ifnum tests according to TeX syntax, we draw the red segments as soon as the nodes are created. \documentclass[tikz,border=5mm]{standalone} \begin{document} \begin{tikzpicture} \foreach \x in {0,...,3} {\foreach \y in {0,...,3} {\node(circ-\x-\y)[draw,circle,inner sep=1pt,fill] at (.5*\x,.5*\y) {}; % lines ...

3

I don't know exactly what kind of changes you will need, but perhaps this could be a starting point. My approach is basically to use calc library to compute the coordinates of the dots. \documentclass[border=2mm]{standalone} \usepackage {amsmath} % for pmatrix \usepackage {tikz} \usetikzlibrary{calc} % for coordinates \begin{document} \begin{...

3

Here is my suggestion. \foreach should be used to shorten the code. nodes={...} means that node options ... are added in the current scope. In this situation, the scope is inside the \path command; and other node options (like [fill=yellow]) can be freely added more. \documentclass[border=5mm]{article} \usepackage{tikz} \usepackage{lipsum} \begin{document} ...

3

Here is a TikZ way using syntax x ? y :z (meaning if x then y else z) and several \foreach commands. \documentclass[tikz,border=5mm]{standalone} \begin{document} \begin{tikzpicture} \def\r{2} \foreach \i in {1,...,6} \path (\i*60:\r) coordinate (A\i); \foreach \i in {1,...,6} \foreach \j in {\i,...,6} { \pgfmathparse{\j-\i-3 ? "black" : "...

2

Here my workflow for the first picture. I would work with tikz and personally prefer using \usetikzlibrary{calc} for this kind of approach. Define the positions for your nodes, draw some circles and, at the and, the arrows. \documentclass[border=5pt]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \tikzset{% every ...

2

A basic loglogaxis like in your picture done with \pgfplots (as suggested by @Zarko): \documentclass[border=1cm]{standalone} \usepackage{pgfplots} \pgfplotsset{log ticks with fixed point,} \begin{document} \begin{tikzpicture} \begin{loglogaxis}[ xlabel=A,ylabel=K, log basis x=10, log basis y = 10, ...

2

Another approach, slightly more compact could be the following: \documentclass[border=2mm]{standalone} \usepackage{ifthen} \usepackage{tikz} \begin{document} \begin{tikzpicture}[line cap=round,line join=round] \foreach\r in {1,2,4} \foreach[count=\i]\a in {0,60,...,300} {% coordinates \coordinate (\i-\r) at (\a:\r); } \foreach\r in {1,2,4} \foreach\i in {...

2

As for a starting point: \documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{intersections} \tikzset{dot/.style={circle,inner sep=1.5pt,fill=red}} \begin{document} \begin{tikzpicture} \draw[name path=line1] (0,0) node[left] {line 1} .. controls ++(1,.5) and ++(-0.5,-2).. (3,0); \draw[name path=line2] (0,-1) node[left] {line ...

2

This is a brute force solution. It should be possible to fully automatize this, i.e. let forest do everything, but I really do not know what the rules for the Stern-Brocot diagram are. \documentclass{article} \usepackage{forest} \begin{document} \begin{forest} for tree={alias/.wrap pgfmath arg={a-#1}{id}, %label/.wrap pgfmath arg={[gray,font=\tiny,inner ...

1

Something like this? \documentclass[border=2mm]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=0.5,y={(0cm,-1cm)}] \foreach \y in {0,1,2} {% lines \draw[red] (0,\y) -- (11,\y); \pgfmathtruncatemacro\xmin{\y*\y-5*\y+7} \pgfmathtruncatemacro\xmax{-\y*\y-\y+10} \foreach \x in {\xmin,...,\xmax} {% dots \node(circ-\x-\y) [...

1

The key was adding these two lines: \path[draw=blue] (n14) circle[radius=0.1]; \path[draw=blue] (n41) circle[radius=0.1]; The MWE: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ dot/.style = {circle, fill, minimum size=3pt, inner sep=0pt, outer sep=0pt} ] \foreach \i in {1,2,3,4} { ...

1

I simply used your code and changed the radius. with contours \documentclass[border=5pt]{standalone} \usepackage{tikz} \usepackage{contour} \contournumber{32} \begin{document} \begin{tikzpicture}[ dot/.style={circle,fill, inner sep=1pt, outer sep=0pt}, every label/.style={inner sep=0pt,font=\tiny,} ] \def\Ra{...

1

I would give each node a name using \node(name)[...] {label} and draw the lines and add the labels. \documentclass[border=5pt]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \foreach \x in {1,...,4}{ \foreach \y in {0,...,2}{ \node(circ-\x-\y)[draw,circle,inner sep=1pt,fill]...

1

If you want a regular triangular grid with dots, you may try this (based on a solution by AndréC). \documentclass[tikz,border=3.14mm]{standalone} \begin{document} \tikzset{d/.style={minimum width=2pt,inner sep=0pt,circle,fill=black}} \begin{tikzpicture} \def\nx{5} \def\ny{3} \pgfmathsetmacro\nyy{(2+2*\ny)*sin(60)} ...

1

Like mentioned in the comments, I suggest the workflow from this answer, since it is close to what you want to achieve. \documentclass[border=5pt]{standalone} \usepackage{tikz} \usetikzlibrary{fit, backgrounds, shapes, calc} \definecolor{mypink}{RGB}{222,136,165} \definecolor{myred}{RGB}{194,100,118} \definecolor{myblue}{RGB}{177,235,255} \definecolor{...

1

\documentclass[tikz, border=20]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.17} \begin{document} \begin{tikzpicture} \begin{axis}[ xlabel=$$x$$, ylabel=$$y$$, xmin=-7, xmax=7, ymin=-30, ymax=30, grid=major, grid style={solid}, ...

1

You asked this some days ago and deleted you question before I could post my answer. Anyway this his how I would have done it: \documentclass[border=2cm,margin=4cm,varwidth]{standalone} \usepackage{tikz} \usetikzlibrary{arrows,backgrounds,snakes} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ domain=-2*pi:2*pi, ...

Only top voted, non community-wiki answers of a minimum length are eligible