We’re rewarding the question askers & reputations are being recalculated! Read more.

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
1
vote
1answer
68 views

Graphic of Richardson Number

I was inspired by the graphic Moon Synodic Period, created by Tangent Plane. I insert the code here. I tried to create scale definitions, so I could scale the graph and the text, but I'm not entirely ...
5
votes
3answers
673 views

I drew a randomly colored grid of points with tikz, how do I force it to remember the first grid from then on?

I'm using beamer and I have a randomly colored grid (three colors, 4 x 19 grid) on the slides. Since I use the \pause command, it generates a new grid every time I click to the next point. How do I ...
1
vote
3answers
34 views

How to bring points in a tikz grid closer together/remove the space between points in grid in tikz?

So I have a grid of 4x19 points/small circles, which need to be individually colored later. It has to fit into a beamer presentation sheet, so the points have to be brought closer together. This is ...
4
votes
2answers
209 views

Formatiing text inside tikz node

I am trying to align text inside the tikz node like in picture below. I tried to use tabular environment, but I wasn't successful. Is there a way to align text like that? Code I wrote so far: \...
1
vote
1answer
29 views

Connecting two nodes from the same mother node horizontally

I am trying to create a diagram where one node connects to two nodes horizontally. I have attached the image of the diagram I want. However, I am having trouble moving the d node upward so that the ...
0
votes
1answer
75 views

Adding circle to tikz graph with arrows

In continue to the great answer provided in: Changing a tikz figure to have more blocks I'd like to modify this figure and add an "adder" node with arrow and text, and also add a text near the ...
2
votes
1answer
63 views

Plot a graph above a curve with vertical lines as pattern

I want to plot the graph of a function (say a sine) on a curve, that is to say, plot the graph above a straight line then distort it into a given curve. Here's a minimal example : \documentclass[...
6
votes
2answers
161 views

TIKZ - changing one block into parallel multiple blocks

I have the following code: \documentclass[crop,tikz]{standalone} \usepackage{tikz} \usepackage{textcomp} \usetikzlibrary{shapes,arrows} \usetikzlibrary{positioning} \usetikzlibrary{arrows, ...
0
votes
1answer
69 views

Drawing a top in tikz

I want to draw a top to show the Gyroscopic Effect in my techinical reports,just like the figure : the top can be simplified like a circular cone ...... Could any body give some tips for me ?Thx for ...
7
votes
2answers
457 views

Alignment of various blocks in tikz

As you can see the left side of the 3 lower blocks are moved to the right while keeping their right sides aligned with the right side of the first block. I'm using the following code: \documentclass[...
3
votes
1answer
226 views

rearrange tikz dashed rectangle blocks

I have the following tikz code: \documentclass[crop,tikz]{standalone} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \usetikzlibrary{positioning} \usetikzlibrary{arrows, chains, ...
3
votes
2answers
148 views

draw dynamic circle around node and edges

How do I add the red circle as shown in below image but with dashed line circle. I want it to follow the path structure. So far, this is my code: \begin{forest} [$root : s_0$ [$a: s_*$ [$d: s_*$] [$...
2
votes
1answer
213 views

Project this triangle on surface of a sphere

I have the following triangle in TikZ MWE: \documentclass[tikz]{standalone} \usepackage{pgfplots,mathtools} \usetikzlibrary{hapes,decorations.pathreplacing} \usetikzlibrary{patterns} \definecolor{...
4
votes
4answers
1k views

How to draw this diagram using TikZ package?

Please can someone show me how to draw the diagram (photo) using TikZ package. I just arrived to the following diagram by using the following code \documentclass[smallextended]{svjour3} % ...
0
votes
2answers
83 views

How to draw arrows on each arc and line in \path?

When I draw paths: \path [draw=blue] (0,0) arc(-60:60:1.732) arc(120:240:1.732); I want to add an arrow in the middle of each arc within this \path. Like this: I have tried the "show path ...
2
votes
1answer
66 views

Hatch direction

I want to modify the hatch lines direction marked in red of the next diagram: It was obtained with the next code: \documentclass[letterpaper,11pt]{report} \usepackage[utf8]{inputenc} \usepackage{...
0
votes
1answer
111 views

Save tikz image and use away from latex

I need to create and save latex drawing so i can use there else where. Im using the code \begin{tikzpicture}[scale=0.8,domain=-2:20] \begin{axis}[ height = 11.7cm, width = 15cm, axis lines=middle,...
2
votes
1answer
59 views

Fill area under curve using colourmap and Tikz

I'd like to use a colourmap like hot2 in this plot, where red occurs at x=0, and green occurs at x=1, but I can't find any way of doing it. Here's what I have so far: \begin{tikzpicture} ...
3
votes
1answer
259 views

Problem with fill color

I use the following command to create regular polygons. The 5th argument is there to insert options for styling the polygons. Though the line width is 0.3mm as I set it, it looks like the fill=red ...
0
votes
1answer
66 views

multiple edges reach to a node without any bending

I am trying to use tikz library to generate graphs where some nodes have multiple input edges and I would like they would be separated when they hit the node but I have failed so far. This is an ...
3
votes
1answer
113 views

adding edge label to tikz and bayesnet library

I want to generate similar graph as follows using bayesnet library but I do not know how I can add labels for edges This is my code so far \documentclass{article} \usepackage{amsmath} \usepackage{...
6
votes
2answers
875 views

Is there an wasy way to program in Tikz something like the one in the image?

I am able of doing the hexagons and the rectangle, as well as all the nodes and so on. My problem is if there is an easy way to draw the blue arrows of the image, knowing that I have given to ...
0
votes
0answers
68 views

Why are my characters overlapping?

As a test of what's going wrong with a longer LaTeX file I've written, here is what I tried: \documentclass{article} \usepackage{tikz} \pagestyle{empty} \begin{document} \begin{tikzpicture} \draw (0,...
0
votes
0answers
50 views

Is there a tikz command for showing people in a flowchart?

I need to show a group of people (sometimes women, sometimes men) in my flowchart. Is there any command for that?
3
votes
1answer
89 views

Two side by side flowchart (tikz-flowchart) with box and label for each

I need to draw two flowchart using TikZ with a box around each flowchart and a label. I'm new to Tikz library and I have looked similar questions regarding pictures and tables and figures. They ...
1
vote
1answer
89 views

Tikz/pgfplots Reduce distance between Tick labels line break

I'm pretty desperate with a problem I have right now. I'm trying to create a lollipop plot that has different categories on the y-axis and occurrences on the x-axis. According to the below code. Note ...
4
votes
1answer
54 views

How to make (multi part) node fill color depend on its content?

In the following MWE i like to change fill and text color depending on content of a cell similarly as I manage to change text color for this particular cell content: \documentclass[tikz, margin=3mm]{...
3
votes
2answers
321 views

A collection of the actual smartphones

Considering the recent excellent questions that I've really enjoyed Welcoming 2019 Pi day: How to draw the letter π? and What has been your most complicated TikZ drawing? I have carefully observed ...
4
votes
1answer
299 views

how to write weight parallel to edge?

In the following graph edge weight by default is written as horizontally, I want to write weight value parallel to edge between two nodes. How may I write weight value parallel to the edge between ...
3
votes
1answer
32 views

How to bend text so that it follows the curves of a Venn diagram

I need to make "class A", "class B", "class C" follow the curves of the circles immediately containing them: \documentclass{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \...
0
votes
0answers
38 views

Latex Figure Query

I am trying to draw a figure in Latex and then convert that pdf to jpg and import in Powerpoint slide. I do not want "Figure 1" which comes below the figure as every separate figure gives me "Figure 1"...
0
votes
0answers
294 views

Wrapfigure unrecognized environment

TeXstudio has highlighted this for some time. same problem indicates it in the commands: \tikzmarknode{}, \eqdescbox, \dimexpr I have no problems in compiling the pdf file, I only see these things ...
2
votes
1answer
259 views

Setting Styles in tikzset

I am facing several issues when trying to create a picture as a tikzset and load it with different variables. The tikzset includes styles for: parts of the tikz picture (in the example the nodes)...
0
votes
1answer
67 views

Filetree with pagebreak works but just with one Filetree

I found a latex code (file tree with page break, the owner/creator of this code (pagebreak+filetree) is Sašo Živanović). I want to use this code for a documentation. I want to have several different ...
2
votes
1answer
88 views

TikZ: Define a style of node that puts halo/contour around text [duplicate]

How put halo around text using the contour package as suggested in this answer in many nodes by defining a style? MWE: \documentclass[tikz]{standalone} \usepackage[outline]{contour} %halo around ...
1
vote
1answer
44 views

How to edit this figure to be drawn in just a column of 2 column paper?

The code below makes the output figure to be in full page width. I need to have the same output figure with the width of column (width of 3.9 in). I tried to use this command for the figure ...
-2
votes
1answer
100 views

Hi there! I'm looking for a help drawing this diagram. Any ideas? [closed]

ttps://i.stack.imgur.com/RJiXH.png
4
votes
3answers
440 views

Draw triangle with text in vertices/edges

I'm trying to reproduce the following: I tried to use tikzpicture and made something "by hand" (even knowing that that wasn't the better way), but I was not able to find a way to have the exactly ...
2
votes
1answer
87 views

Greek alphabet not displayed correctly in tikzpicture mode

I'm using the package TikZ to make a timeline with arrows and text pointing to certain ticks. (\begin{tikzpicture}...) The text I have inside the \addmilestone{...} environment contains the Greek ...
0
votes
1answer
511 views

Drawing mechanical systems (Mass-Damper-spring) in LaTeX

I don’t find any library that contain mechanical symbols. Could you help me to draw this diagram (mechanical system) in LaTeX?
3
votes
3answers
212 views

Vertical alignment of text in a node (TikZ)

I am using the TikZ code given in this answer. I would like the text in each rectangle to be on the top left of the rectangle. I already managed to bring the text to the left by replacing align=center ...
3
votes
1answer
84 views

Node text baseline in tikz for multi-part-nodes

I basically have the exact same problem as this question, only for multi-part nodes: I have a node that consists of 3 parts, each of which contains text. I want to have the text aligned by its ...
2
votes
1answer
100 views

Tikz in xetex - Recreate two ways of presenting/displaying old sources

I would like to present old digitalised sources with tikz picture in LaTeX for private purposes similar to the presentation of Luther's sources by Google, which you can see here: https://...
2
votes
1answer
194 views

How to draw a hyperbolic triangle?

Any ideas about how to draw this with TikZ? I tried several things, but nothing satisfactory. What I tried was to doing in the simplest way, that is, \begin{tikzpicture} \draw (point) arc (angle ...
2
votes
1answer
68 views

Vertical error shading in tikz plot

I have the following figure in Tikz (see the MWE below). I have an equation for the line. I have generated the error by plotting the same equation but by changing the line width. However, on the RHS ...
5
votes
1answer
87 views

How to give multiple axis the same style/options

I would like to pick your brains again on a small issue. I want to use tikzstyle to describe the style of multiple plots but when I copy and paste the style I use on my plot, I get a compilation ...
2
votes
1answer
89 views

Create separate double arrows as edge of a tree

I'd like to create a tree with edges made from two separate arrows as shown in picture: But I don't know how to change the edge to 'two separate arrows for each edge' Currently, I could only do the ...
1
vote
1answer
75 views

Is there an efficient way to edit the following UML

I tried to make a UML diagram using I strive in searching to make it looks good. Here is my code, sorry if there are errors (as I am a new learner to TIKZ package) but it should still work if u just ...
0
votes
1answer
176 views

How to align the label to centre?

I'm using tikz to draw my Neural Net architecture. The below snippet is for a single convolution block: \pic[shift={ (1,0,0) }] at (pool_b2-east) {RightBandedBox={ name=ccr_b3, ...
-3
votes
1answer
142 views

How can i design such type of picture in in TikZ? [closed]

How to get the design shown below in tikz wihtout star. Any suggestion will be helpful.