Questions tagged [tikz-styles]

{tikz-styles} are predefined sets of options that organize how graphics elements are drawn. It is thus possible to program specific styles and reuse the styles on different objects. The {tikz-styles} tag can be used in parallel with {tikz-pgf}.

Filter by
Sorted by
Tagged with
0
votes
1answer
18 views

Visualizing relations in latex

How do I ensure that the texts at the nodes or at the edges stand where they should be rather than running across the figure? I would like it if I can box the nodes. Here is what I am trying to do: \...
3
votes
2answers
56 views

How to draw bar chart from a function

I'd like to know how to draw a bar (step) chart from a given function. The code for a (continuous) chart is: \documentclass[preview,border=2pt,2pt]{standalone} \usepackage{tikz} \usetikzlibrary{...
0
votes
2answers
66 views

Tikzpicture of 3 perfect hexagons overlapping

for some university stuff I need to align 3 perfect hexagons and they have to be overlapping, see attached image below. That means, I need equal distance between every pair of nodes. Of course I could ...
1
vote
1answer
49 views

Filling out the space between two circles with dashed lines in order to create a torus like shape

\documentclass[fleqn]{book} \usepackage{amsmath, amssymb} \usepackage{amsthm} \usepackage{xcolor} \definecolor{nord0}{HTML}{2E3440} \definecolor{nord4}{HTML}{D8DEE9} \definecolor{nord5}{HTML}{E5E9F0} \...
3
votes
1answer
66 views

How to shift plot

I want to draw several plots in the same tikzpicture (I am not sure if there is other ways to do it) using plot function in tikz. The code is: \documentclass[preview,border=2pt,2pt]{standalone} \...
0
votes
2answers
63 views

How do I change the arrow length in a tikz file

Edit: I have the following code in which I want to change the length of arrows: \documentclass[preview,border=2pt,2pt]{standalone} \usepackage{tikz} \usetikzlibrary{shapes,backgrounds} \...
0
votes
2answers
67 views

How can I draw this graph in the picture attached below by using tikz [duplicate]

I would like to draw this graph in the pic via tikz, could you please help me
0
votes
2answers
51 views

How to align label to the center of picture in tikz

I have a tikz code to draw four circles as follows: \begin{document} \pagestyle{empty} \tikzstyle{white} = [fill=white,fill opacity=0.4] \tikzstyle{gray1} = [fill=gray!5,fill opacity=0.7] \...
0
votes
0answers
24 views

How to access style values of a node

I'd like to access the style of a node, something like mynode.fill or mynode.color etc.. Particularly, I have this task: draw a node and grid it. But I'd like to use some node properties when I plot ...
0
votes
2answers
36 views

How to draw complicated arrows in a big flowchart and also how to maintain the size of the whole thing in an article?

I have been trying to draw a big flowchart inside my article. I have managed to draw most of it but got stuck in some places. First, I can't draw the arrow marked in red in the image. I tried to use ...
0
votes
1answer
78 views

How to draw and shade dependent sets with legend? [closed]

Suppose $x$ and $z$ are variables in interval $[0,1]^2$. How is it possible to draw the following sets and shade them and provide legend? $c1 \quad if 0<x<1/13*(5-2sqrt(3)),0<z<1/2(2x+x^2)+...
0
votes
1answer
117 views

A Mindmap with Tikz

I want to create a mindmap by using the following. I have never created a mindmap before. I want to use \usetikzlibrary{mindmap,trees} But I think that I have a lot of things about this. Question 1: ...
1
vote
1answer
46 views

How to make a Whitehead link in the tikzpicture

I made an attempt to make a Hopf link using my own code: \begin{document} \begin{tikzpicture} \begin{knot}[ clip width=3, flip crossing={2}, ] \strand [ultra thick, red ] (1.5,0) ...
2
votes
1answer
57 views

How can I get an horizontal double loop (infinity symbol) with TikZ?

I want to get the following image, wich consists on two horizontal loops, by using Tikz (or Tikz-feynman). I know that probably I have to use the parameter "arc", but I get very confused ...
0
votes
1answer
55 views

How to put one TikZ picture on top of another?

I have two TikZ pictures on my slide, and now for me they are displayed one next to the other. I want first one to be on top of the other one. Also, I want to draw three arrows between Alice and Bob, ...
5
votes
1answer
79 views

How to mesh connect the nodes and do curvy arrows in TikZ?

I want to draw the following in TikZ: However, I'm not sure how I can draw all the arrows, and position the math equations in the places that they are shown. I have the following nodes (I used "...
2
votes
1answer
65 views

How to draw arrows below nodes in TikZ?

I want to replicate the following drawing with TikZ in beamer, with slight changes to the names. Currently, I have something like this, but it is not exactly what I want. The lines are next to the ...
0
votes
1answer
45 views

TikZ drawing lines between nodes and text above/below nodes

I want to draw kind of a protocol flow, where I have two parties, and each send one message to the other one. One arrow should be above the other one, and above both arrows there should be some text. ...
0
votes
1answer
49 views

how to create a term-life annuity timeline on LaTex [duplicate]

how to create a term-life annuity timeline like this
3
votes
2answers
67 views

Increase the width of the arrowhead and shape boundary

I want to increase the width of the arrowhead and want to make the boundary of the shapes border a little darker (like I want to make the lines of the rectangle to be thicker). Is there is any way of ...
0
votes
0answers
20 views

Why is minimum width ignored?

I am trying to draw a simple node with a split rectangle. minimum height works as expected. But minimum width is simply ignored. I'd like to make the node a bit wider. Below is an MWE. \documentclass{...
0
votes
2answers
99 views

Draw Toroid in Tikz

I want to draw a toroid in TikZ like shown in the example picture below: I found already something: Modify TikZ coil decoration But I have no Idea to bring this on a circle. First, Yes it must be ...
1
vote
2answers
68 views

Draw hash table (int -> array)

I would like to visualize a hash table that maps integers onto arrays of integers. I have found visualizations for both arrays and hashtables, but none of the hashtables had arrays as values. What I ...
0
votes
1answer
42 views

fitting tikz in two column document

I have the following tikzcd diagrams in my two column document" \begin{center} \begin{tikzcd}[column sep=20,row sep=20] P: \prod_{i=1}^{WS}{G} \arrow[r,"RTL"] & \prod_{i=...
0
votes
2answers
35 views

Help Lines point of origin in tikz

I use this code: \documentclass[12pt,a4paper,oneside]{book} \usepackage{tikz} \usetikzlibrary{positioning, decorations.text, calc} \usepackage{lipsum} \begin{document} \lipsum[1] \begin{figure}[!ht]...
0
votes
1answer
37 views

TikZ plots are not centered

I use the following to show examples of overfitting, underfitting and balance: \documentclass[12pt,a4paper,oneside]{book} \usepackage{tikz} \usetikzlibrary{positioning, decorations.text, calc} \...
1
vote
2answers
54 views

Drawing a arrow tip with text in it or a double arrow with different angles on both tips

I need to draw a figure as attached. Any help is appreciated. I tried a double arrow but I an unable to give different angles on both tips. Any other idea is welcome.
1
vote
1answer
73 views

Accordion Keyboard layout with TikZ

I am trying to draw accordion keyboard layout with Tikz To have results like this with modified variable, Could someone helps me to create something similar with Tikz ? Does anyone have any code ...
0
votes
1answer
33 views

How to remove the tick number in tikzpicture code?

I created the code of tikzpicture in Geogebra. I want to remove the tick number leaving only the ticks. How to modify the code and remove the tick number. The code of the tick picture is: \begin{...
2
votes
1answer
52 views

Intervals on the real line. How to construct the symbolic diagrams of real intervals on the real line?

I'm trying to elaborate on my student's exercises on interval notation on the number line. I tried using the LaTeX code of this response here to draw intervals on the number line identical to those in ...
0
votes
1answer
24 views

using columns breaks the compilation of the document

while using the beamer class to try to make this slide 2 things poped up- When try to use columns it breaks the document The coordinates gets messed since the circle expected (thanks to abcdefg) ...
1
vote
1answer
43 views

Reference custom labels of TikZ graphic in text

I have drawn the following diagram using the tikz package. I need to add labels on arrows and reference them back in the text. How can I do that? I would be so grateful if someone could give feedback ...
2
votes
2answers
250 views

A rectangular shaped carpet with the grass

I have a rectangular shaped carpet. Is it possible to create a specific code to simulate a grass carpet, like in a golf field? \documentclass[tikz,border=5]{standalone} \usepackage[prefix=]{xcolor-...
0
votes
0answers
76 views

tikz drawing perpendicular line

I copied and pasted some code from another thread on this forum, and it has worked, however I am unsure how to change the length of the line. On the attached image, the line is the one labelled H(X,T)....
1
vote
1answer
43 views

Haw can I put one node into the other

I want to make flowcart diagram with while loop and some actions inside it. I have written the folofing latex code: \documentclass[12pt, a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[...
1
vote
1answer
63 views

How to do the following diagram in Tikz?

I'm trying to do the following diagram Here's my try: \documentclass{article} \usepackage[latin1]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \pagestyle{empty} \tikzstyle{...
0
votes
1answer
61 views

How to define line behaviour in Tikz?

I have the following LaTex code: % !TEX TS-program = pdflatex % !TEX encoding = UTF-8 Unicode \documentclass[14pt, a4paper]{article} % use larger type; default would be 10pt \usepackage[utf8]{inputenc}...
2
votes
3answers
133 views

Edit fading in TikZ

I have a filldraw rectangle with custom fading (i.e. more than just top fill = color1, bottom fill = color2 for instance), that is defined using the \shade option following this post by Tobias Brink. ...
1
vote
2answers
93 views

Labeling an edge in TikZ

I'm new to TikZ (and LaTeX) and I'm trying to create a graph with nodes. I've been reading the manual and I've created a graph using the same method in the picture. I'd like to now label my edges, but ...
0
votes
0answers
47 views

Draw a tree-graph in Latex with Tikz or qtree

Is it possible to draw tree-graphs like the image below in LaTeX? I just need an idea of ​​how to write the first two levels of the tree. I believe that from there I can continue... thanks!!!!!
3
votes
1answer
68 views

How to label a cylinder in tikz

I am trying to create a cylinder like this But I only have the cylinder. How how I do it? Thanks. \documentclass[preview]{standalone} \usepackage{tikz} \begin{document} \begin{figure} \centering ...
0
votes
0answers
75 views

Visual editor for tikz

I would like to draw something like the block of nested file icons as roughly drawn on the paint. This is my current desired, but I need to find a better way about drawing on LaTeX infrastructure. So ...
1
vote
1answer
64 views

Creating rack and pignon arrangement

I'm trying to create a rack and pignon arrangement in tikz. I found a code allowing to draw a pignon. I'm trying to add a rack in order to have the arrangement. I wrote this code \documentclass[...
7
votes
2answers
271 views

Projectile motion: change an old code and make it more beautiful

Given this image, where a golf player throws a ball with a angle of 54.0° above horizontal and a speed v₀=13.5 m/s. Looking this excellent old answer Sketching a graph mapping projectile motion using ...
0
votes
0answers
26 views

Annotating / Labeling an Image with tikz-imagelabels and adding a custom style

I want to use the TikZ package tikz-imagelabels in conjunction with these types of labels I found used in a pie-chart demo but I have absolutely no idea where to start. Im not so good with TikZ to ...
0
votes
1answer
42 views

setting a normal distribution over a graph's node using tikz

I would like to add a normal distribution inside a circle node using tikz package \node[scale=4,circle, fill=blue!55!cyan!25] (Og1) at (0,0) {}; The area under the plot would be coloured if it is ...
2
votes
2answers
103 views

importing an external image on top of a node using tikz

How can I generate this nodes and edge structure using tikz in latex? I created the following figure using tikz, now I'd like to put some figures on the top of each node (e.g. a heart with heart-...
0
votes
1answer
27 views

Tikz - Exceptions from every picture style

I implemented for every picture the overlay and remember picture argument. I wonder how I can achieve exceptions for certain tikz pictures from these two arguments. For instance by defining a ...
2
votes
2answers
95 views

\newcommand in tikz picture options

I want to insert a \newcommand in the style options of my tikzpictures for more efficiency. However, it produces an error, although the string itself is correct and works when being inserted directly ...
1
vote
1answer
35 views

Newline in tikzpicture

How do I get the edge from q5 to qA to break into two lines? I looked at other posts and nothing seemed to work. Edit: Added macros and formatting %=====================================================...

1
2 3 4 5
29