New answers tagged

3

With defining style for nodes in circle, and redefining node distance and \decoration your ME can become much shorter and clear: \documentclass[tikz,border=20pt]{standalone} \usepackage{graphicx} \usepackage{amsmath} \usepackage{amsthm} \usepackage{tikz} \usetikzlibrary{arrows.meta, % <--- automata, calc, chains, ...


2

Is something like this what you want? I'd suggest to place nodes (positioning library with on grid option) and use them as reference to easily drawn the edges instead of absolute coordinates. Using nodes, edges stop drawing at their borders. \documentclass[border=1pt]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{...


1

Here's another solution, maybe way better than my previous one (which has some inaccuracies in calculations for the bar length), now with pgfplots. \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \def\r{0.6pt} %define the radius of spot \def\ax{3.3} %define the length of x-axis \def\ay{...


3

I came with something that could be a good start. \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[yscale=3] \def\r{0.6pt} %define the radius of spot \def\b{3} %define the postion of b \def\s{1.3} \def\m{0} \def\n{50} % number of bars \def\xmin{-\b} \def\...


2

There are serious redudancies in your code and you can shrink it very easily by using \foreach and also insert your label=above... option into your tikzset. Also, in order to simplify, you may replace your triangle tikzset by a simple barycentric definition of point D. Your code worked really fine but I'd rather use a shorter one: \documentclass[border=5pt]{...


2

Something like this? \documentclass[tikz, border=2mm]{standalone} \usetikzlibrary{shapes.geometric, positioning} \begin{document} \begin{tikzpicture}[ hexagon/.style={regular polygon, regular polygon sides=6, minimum size=2cm, outer sep=0pt, draw}, mylabel/.style={circle, inner sep=1pt} ] \node[hexagon] (...


2

If you want to draw the torus with tikz I think that is better if you draw circles in a a plane set with canvas and let tikz to calculate the perspective for you. The following code has a tikz drawing with a possible solution (if I correctly understand what you want to achieve). Then I added another pgfplots drawing perhaps more simple and that looks better (...


5

You can design the second plot with the same coordinates as the first one and shift it by the vector (x,y) using \begin{shift}[shift={(x,y)}] ... \end{shift} This allows you to reuse identical parts like shown below. \documentclass[border=2pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[ line/....


1

Principle to draw shorter line as are follows from given coordinates is use the option \shorten > = <amount> (to make arrows shorten on destination coordinate) and shorten < = <amount> (to make it shorted on the start coordinate). For illustration serve the following example: \documentclass[preview,border=2pt,2pt]{standalone} \usepackage{...


1

Like this? Instead arrows are used modified pin in nodes placed on path of fuzzy functions. By this the diagram code is much shorter: \documentclass[preview,border=2pt,2pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[ aligned pin/.style args = {[#1]#2:#3}% based on https://tex.stackexchange.com/...


2

One more example: \documentclass[tikz, 12pt, margin=3.141592]{standalone} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture}[ E/.style = {ellipse, draw, minimum height=#1, minimum width=#1*2}, every label/.append style = {inner sep=2pt, font=\small} ] \node[E=3em, label=part 2] {part 3}; \node[E=6em, label=part 1] {}...


0

\documentclass[border=10pt]{standalone}%[12pt]{article} \usepackage{tikz} \usetikzlibrary{shadows,arrows,shapes,positioning,calc} \tikzset{ ell/.style={draw,ellipse,minimum height=2em,minimum width=8em,align=center}, elll/.style={draw,ellipse,minimum height=4em,minimum width=10em,align=center}, every label/.style={font=\scriptsize}, } \begin{document} \...


2

Like this? it is much simpler to draw your images with shapec circle: \documentclass[tikz, margin=3.141592]{standalone} \begin{document} \begin{tikzpicture}[ C/.style = {circle, draw, minimum size=#1, align=center} ] \node (n1) [C=44mm] {\\ $X_1$}; \node (n2) [C=50mm] at (4,0) {\\ $X_2$}; \node (n3) [C=54mm] at (2,2)...


2

\documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,backgrounds} \usepackage{verbatim} \begin{document} \pagestyle{empty} \begin{tikzpicture} \draw[fill=gray!10, fill opacity=0.7] (0,0) circle (2.2cm) node[ red] {$X_1$} ; \draw [fill=gray!10, fill opacity=0.7] (2,2) circle (2.7cm) node[ red] {$X_2$}; ...


1

\documentclass{article} \usepackage{tikz} \usepackage{listings} \usetikzlibrary{shapes.geometric, arrows} \usetikzlibrary{positioning} \tikzstyle{io} = [trapezium, trapezium left angle=80, trapezium right angle=100, minimum width=1.5cm, minimum height=2cm, text centered, draw=black, fill=blue!30, inner sep=20pt] \tikzstyle{process} = [rectangle, minimum ...


3

The following might help getting you started. However, the font sizes in the child nodes are extremely small, so maybe using an enumerated list as you did in your question is a better way to present this information in a more legible way: \documentclass{article} \usepackage{tikz} \usetikzlibrary{mindmap,trees} \begin{document} \begin{center} \begin{...


Top 50 recent answers are included