TikZ is a higher-level drawing language built on top of the PGF graphics framework. For questions specifically about the PGF layer use {pgf-core} instead. Both tags are possible on the same question. The tag {diagrams} is also compatible with this tag.

learn more… | top users | synonyms (3)

8
votes
1answer
101 views

Why do coordinates in Bezier curves add to the padding in TikZ?

I have a little tikzpicture drawn with a Bezier curve, that I use in the text. I noticed that it has an unusual amount of horizontal white space, more than e.g. a circle: \documentclass{article} ...
3
votes
1answer
47 views

Edit position of nodes in tikz mindmap

I'm trying to make a mindmap with tikz but I want to add some fading (smooth transition between clear blue and dark blue) between the colour of the root node and his childrens. ...
3
votes
1answer
65 views

TikZ: Problems with relative position

I have a problem using relative positioning in TikZ. As shown in the MWE below, my "vertex circles" are not placed correctly when putting two figures side by side using \node[right = of ...] syntax. ...
2
votes
2answers
100 views

Tikz: Node positioning relative to external image height or node height

I have an external picture and I want to put some labels on it. The code below works fine, but I want to automate the calculation of the vertical label positions in case of resizing the imported ...
2
votes
0answers
50 views

A question about the \draw command

The following code is not compiled. I got it out of the manual. Please tell me what is wrong with it. Also, please tell me where in the manual the options in the command node(b)[circle, draw]{A ...
0
votes
0answers
32 views

Graph not drawing correctly when within a node

I am having a problem getting a graph to come out correctly. \documentclass[journal]{IEEEtran} \usepackage{graphicx} \begin{axis}[ title={}, xlabel={$q$}, ylabel={Time /seconds}, xmin=6, ...
1
vote
0answers
22 views

Drawing arrows using tikz library [duplicate]

I am trying to implement a visual representation of linked list using tikz library. The code written so far: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} ...
19
votes
3answers
319 views

Plotting a graph with several values of a parameter

I'm trying to plot the function q(t) = (4.9/ (w^2))*(cosh(w*t)-cos(w*t)) for several values of the parameter w. That is, I want to plot whole graphs of q vs t, where I plug in say w=1, w=2, w=100, or ...
1
vote
0answers
41 views

Flowchart spanning mutliple pages Tikz [duplicate]

I created a flowchart which is quite big in Tikz. I spans three pages. I used \newpage to create page breaks in between. Some nodes in the first page are connected to the last one and vice versa. So ...
15
votes
5answers
533 views

Connecting from in the middle of |- line

\documentclass{beamer} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \begin{frame} \begin{figure}[h] \centering \begin{tikzpicture}[ % type of arrow head ...
4
votes
1answer
72 views

Tikz: how to change the order of overlapping objects?

I want to draw some overlapping rectangles, for example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,backgrounds} \begin{document} \begin{tikzpicture} \draw [fill=blue,ultra ...
1
vote
0answers
60 views

Flow chart using Tikz- spanning multiple pages

I am trying to create a flowchart with Tikz. Since it is a long one, it spans three pages. So after creating a node to stop, I am continuing to the next page using \newpage command. Unfortunately some ...
7
votes
1answer
38 views

How to remove an unwanted line in forest?

\documentclass{article} \usepackage{forest} \begin{document} \begin{forest} [TP [DP] [T' [T] [VP [DP] [V', name=node [V] [DP] ] ]]] ...
6
votes
1answer
106 views

Oriented curve in two dimensions

I'm trying to create a TikZ picture of a closed half circle centered at the origin with radius R in the plane. Here's what I have so far: \documentclass[12pt]{article} \usepackage{tikz} ...
6
votes
1answer
93 views

Drawing an intersection of two equations in 3D

I'm trying to draw the intersection of the following two equations: x^2+y^2=4 (a circle of radius 2) and z=x+4. I got kind of close with tikz-3dplot (which has preferrable output in my opinion), but ...
4
votes
4answers
129 views

Horizontal brace above another brace + node in TikZ

In the following MWE, I've put a brace over the subordinate clause that he knows with a node Subordinate clause above the brace. Now I want to put a brace over the full sentence (the main clause) with ...
2
votes
1answer
45 views

TikZ using relative coordinates to position fill rectangle

this is my first time I am using tikz so the question is rather simple. I am trying to achieve a simple effect of highlighting an element on my image, with tikz. I used this threads: highlighting ...
1
vote
1answer
41 views

Selectively replace images by “draft”-like frameboxes

I have a long pdflatex file containing many images, some of which are quite large. Has anyone written code about selectively replacing images by the framebox produced by the draft option of the ...
1
vote
1answer
57 views

Align vertical tikz chain

I am trying to draw a pinout, and thought a chain would help to create the pin names and pins. However I can not align a tikz chain to the left or right side. I would like the nodes to be aligned ...
6
votes
3answers
72 views

Adjust placement of commas and periods in TikZ txt style

In the example below, one can see that a comma and a period following a word on the baseline in a TikZ environment is based on how far the node above the word stretches towards the right. How can I ...
2
votes
2answers
50 views

In TikZ, adjust the placement of a node above text

In the example below, I've managed to align the words on the baseline and the nodes above them correctly by setting text height = \Aheight for the words (i.e. let the height of all words be equal to ...
2
votes
0answers
38 views

Adding words centered above other words with TikZ v2 [closed]

EDIT: Please vote to close this question as "Unclear what you're asking". My problem and my understanding of it have developed in such a way that this question is now too messy. I have opened the new ...
12
votes
1answer
146 views

TikZ: Intersection point with a double-line path

When calculating the intersection point(s) between a line and another double-line path, TikZ normally returns the intersection at the middle of the double-line path. The question here is how to get ...
9
votes
5answers
251 views

Adding words centered above other words with TikZ

I'm writing a sentence, and I'd like to add labels to the elements of the sentence above those elements. In the example below, I'd like the label Verb to be centered above the verb constitutes and the ...
1
vote
1answer
28 views

PGFGantt group placement error in case of a milestone

If you execute the code below, you get not so nice output (see screenshot below). How can I fix: The Group label/bar is overwritting the milestone. This is not what I want. How to move the group 1 ...
1
vote
2answers
53 views

yticklabel pos=right has no effect

I am using pgfplots to draw a simple 2D function. I'd like to display all of the ytick labels on the right side of the plot. So far I had no success using yticklabel pos=right, I do not get an error ...
0
votes
1answer
44 views

Horizontal grid lines

I have a problem with horizontal grid lines in a graph (I am trying to overlay a 1cm x 1cm grid to my pages, and stumbled upon this in the process): \documentclass{standalone} \usepackage{tikz} ...
7
votes
1answer
118 views

How to get the random seed used in a tikzpicture?

I have a picture with randomly placed nodes. Sometimes the figure is nicer than other, and in the final version of the document, I'd like to have a nice figure. I'd like to know how to get the seed ...
9
votes
1answer
158 views

How to do logarithmic shading with TikZ?

Using TikZ, the shade option is very convenient to produce color shadings, but it produces only linear color gradients. Is it possible to obtain other transitions, and especially a logarithmic one? ...
1
vote
1answer
30 views

Text alignment within tikzfigure environment of the tikzposter class

For my poster I am using the tikzfigure environment within tikzposter to add figures. It works fine, but I want to have the figure captions justified or left aligned instead of centered. I have tried ...
2
votes
0answers
50 views

Tikz node centers with scaling

Can you explain why TikZ places the node center incorrectly in this MWE? I expect the red node to overlap the black one entirely, but it does not. If I remove the scaling, the problem goes away. ...
5
votes
1answer
74 views

Tikz for Gabriel and Auslander-Reiten quivers

In the context of representation theory, direct graphs —known there as quivers— appear all the time. Here are a few samples (from the book of Assem, Simson andSkowroński) First, a couple of gabriel ...
0
votes
1answer
74 views

Tikz: Stacked hollow solid cylinders

Is there a way to draw three hollow cylinders with finite thickness in TikZ? The result should look something like this: I already found the shape=cylinder option as in here or here. But I have no ...
0
votes
2answers
118 views

Block diagram using TikZ

I am trying to draw the following block diagram using TikZ... No way :( Can anyone help me? Thank you so much!!!
3
votes
1answer
30 views

Label variables of equation using tikz without using itemize - followup question

I have tried to implement a solution I found here for my problem. I do however hit a bit of a snatch. If I just add some text above and below of the example, the graph and the text get on top of each ...
0
votes
1answer
62 views

Drawing stacking of layers or plates

I would like to get the following image. Is it possible to draw using tikz or pstricks in latex? Please note the text labelling as well. I got a link in a similar spirit, but could not utilize it ...
2
votes
1answer
24 views

Adding LONG labels to formula - not using “remember picture” option

I would like to add some labels to some text/formula. I have found this solution which is working fine in general. However, when I apply this to my test it looks like this: . I would however like for ...
1
vote
0answers
46 views

defining a function in tikz

In this MWE there are two definitions of Q function: % arara: lualatex: {synctex: yes, shell: yes} \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} ...
4
votes
1answer
107 views

Truncated octahedron in TikZ

I'm having trouble drawing a truncated octahedron for a Brillouin zone in TikZ. My attempt so far is an adaptation of this answer which produces wonky square bits that are also too small (the sides of ...
2
votes
3answers
60 views

Text beneath two function graphics inside of a figure

Is there a way to put extra text under some function plots in the following code? I need them to appear side by side on the page in the same figure and I do not what to use an extra caption. The text ...
3
votes
1answer
58 views

Tikz - change symbol of pmos

The default pmos symbol which appears in such a simple code \documentclass{article} \usepackage{tikz} \usepackage{circuitikz} \begin{document} \begin{center} \begin{tikzpicture}[american] ...
0
votes
1answer
39 views

Tikz picture appears at the wrong location inside the document [duplicate]

I haven't found any question on this but I'm having problems when placing a Tikz picture in a document. It's enclosed in a Figure environment, and it uses \centerfloat to center it, with some code in ...
2
votes
1answer
72 views

How to add subtitles to a group of plots?

I have the following group of plots: \documentclass{article} \usepackage{fullpage} \usepackage{pgfplots} \usepgfplotslibrary{groupplots} \pgfplotsset{compat=1.12} \begin{document} ...
5
votes
2answers
107 views

Stacking rectangles with unequal dimensions

I am trying to make figures like the following: I need flexible code that will scale well for more complex figures with many more rectangles (but the minimal example is as above). This is my ...
2
votes
1answer
43 views

Labels close to pie chart figures

I am trying to crate two pie charts side by side using tikz. I've found a code in the web that I am adapting, and so far, it seems to work. However, instead of using a separate legend below, I would ...
1
vote
0answers
18 views

pgfplots: swap x and y axis [duplicate]

I'm looking to swap the x and y axes of a pgfplot (it was generated by matlab2tikz if that makes any difference). I've tried the solution here but it just leaves an empty plot Example of what I want ...
3
votes
1answer
58 views

Background not aligning

I have following document \documentclass[a4paper,12pt]{report} \usepackage[left=1.5in,right=1in,top=1in,bottom=1in, includefoot,heightrounded]{geometry} \usepackage{graphicx} \usepackage{xcolor} ...
3
votes
1answer
52 views

Specifying markers in tikzpicture

I have the following chart...the below code won't build without the data files, but an image follows \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{figure} ...
3
votes
1answer
45 views

TikZ: How to place two decorations in opposite directions

How can I use TikZ to create the following image? I created this image with the following code, took a screenshot of the output, and then modified the screenshot by erasing the edge inside the left ...
0
votes
1answer
52 views

Externalize Tikz Figures with Latex

I want to use the externalize option for tikz pictures to save up compilation time. Because of the need for psfrag, I want to compile via latex, i.e. dvi-->ps-->pdf. I use texStudio. My Latex specs ...