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)

1
vote
1answer
46 views

Background color of legend in graphics made with tikzpicture/pgfplots

I'm using tikzpicture and pgfplots to make graphics. And, I'm wanting a beamer presentation with black font and white writing. When I'm plotting the graph, the legend box is just a white box and I ...
1
vote
1answer
58 views

Changing font size of a text along path

I'm trying to put a text in a ring section. I found here an example that perfectly fits my needs: How draw part of ring or broken ring in TikZ? The problem with it is that when I change text size, ...
2
votes
3answers
89 views

TikZ rotating coordinate problem

I am trying to rotate point (B0) by 90 degrees ccw around (A1) and then loop it to get (B\k) and (A\k). What am I doing wrong? \documentclass[tikz]{standalone} \begin{document} ...
1
vote
2answers
147 views

How to draw these (indifference) curves in TikZ

I would like to reproduce the following plots but I have no idea how to do this. Does anyone of you know how to draw these curves in PGF/TikZ (or in any other suited way)?
2
votes
1answer
189 views

Draw Shadow to a plan

I want to draw something like this picture: As the shadow is curved, i decided to draw a trapezium and then draw a shadow on it. The problem is i want the coordinates of the trapezium corners. here ...
2
votes
1answer
57 views

doubt in drawing graph

I have generated the tikz codes from geogebra... \documentclass[12pt,a4paper]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \begin{document} \definecolor{qqqqff}{rgb}{0,0,1} ...
0
votes
0answers
25 views

How to keep dimensions and textbox positions of .fig when using matlab2tikz?

I have a Matlab figure (.fig) presenting some data points and different textboxs (among other elements). I would like to keep the .fig dimensions as well as the location of every element when ...
4
votes
1answer
111 views

How can I draw these patterns in another way?

I used Geogbra to draw this pattern of multiple squares. Then, I exported the figure as TikZ code. The generated code is the following: \documentclass[12pt]{standalone} \usepackage{pgf,tikz} ...
3
votes
1answer
47 views

Showing legend for boxplot in pgfplots

I am trying to display a legend for a boxplot created in pgfplots. However the size of the legend is almost as large as the plot and covers up all of my plot, how do I fix this? ...
10
votes
3answers
223 views

Drawing the three altitudes of a triangle with TikZ; incorrect orthocenter

You probably know that if you draw all three altitudes of a triangle, they will meet at a single point, the orthocenter. I'm trying to draw a picture that shows the intersecting altitudes with TikZ ...
4
votes
1answer
55 views

Minor grid in pgfplot not showing when specifying ticks manualy

Firstly I would like a minor tick between every major tick in my pgfplots graph (and minor grids). I wrote minor tick num=1 but it doesn't work. I am not using a logarithmic axis so it is unrelated to ...
5
votes
1answer
66 views

Use \foreach in non-Tikz context

I want to create my own footnote-command for floating environments: %begin figure bla\myFootnote{XXX} blabla\myFootnote{YYY} blabla\myFootnote{ZZZ} %end figure some text \printSavedFootnotes The ...
2
votes
1answer
150 views

Many body perturbation diagrams (closed Feynman diagrams) in latex with labelling

I would like to draw many body Feynman diagrams using latex. These are closed and often used in condensed matter and nuclear physics in contrast to the open scattering diagrams in particle physics. ...
6
votes
1answer
160 views

How can I correctly align the nodes of this TikZ picture?

I have the following TikZ picture: and I would like to have my nodes aligned in the way indicated in red. How can this be done? What I have so far is pretty messy and I don’t see how to achieve ...
5
votes
1answer
110 views

drawing complex dependency diagrams with tikz / forest

I want to draw the following Word Grammar diagram with tikz/forest: I am a great fan of forestand would like to have a style for such graphs, but I think this is non-trivial/impossible for this type ...
2
votes
1answer
39 views

Runaway argument in pgfmodulshapes.code.tex

While trying to compile the file: \documentclass[11pt]{article} \usepackage[active,textmath]{preview} \usepackage{amsmath} \usepackage{chemfig} \usepackage{amsfonts,amssymb} \pagestyle{empty} ...
1
vote
1answer
50 views

Entering a level

I am trying to create a level below Ruth & Anita to create one node called 'Chris', with the rest remaining the same as it is currently. \documentclass{exam} \usepackage{tikz-qtree} ...
21
votes
1answer
2k views

How to draw a cube completely filled with water, the other with water by half and the last leave it empty?

I want to draw 3 cubes, one filled with water, a full half full and another completely empty. I can draw them, but I can't do the impression of three forms: full, empty and half full. ...
5
votes
3answers
244 views

How to paint the area of an inscribed angles in a circle?

I can't to color all area of the inscribed angle. When I color, appears only the triangle (not a curvilineo triangle) \begin{center} \begin{tikzpicture}[scale=0.7] \draw[fill=gray!40] (0,0) ...
1
vote
1answer
45 views

adding labels after the arcs with a foreach loop

I have this code that generates a cycle graph with labels in the arcs (reference here): \documentclass[border=2pt,tikz]{standalone} \usepackage{wasysym} ...
5
votes
1answer
275 views

New R Logo with Tikz

I want to make the following new R logo with tikz. My MWE with output is: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[] \node[blue] at (0,0) {R}; \draw ...
2
votes
1answer
64 views

Typesetting a title on a tikzpicture

I want to put a title on a tikzpicture. In the following code, I put a title on a display within an axis environment. This environment is superfluous because I do not want any axes drawn on the ...
1
vote
2answers
45 views

Showing state communication with arrows as concisely as possible

I am attempting to show communication between states in a Markov process, basically something like this, although the arrow angles aren't of any importance, simply having that relation between the ...
4
votes
1answer
69 views

Positioning TikZ pictures in Beamer frames

I am trying to position my images as follows. the problem is that the moment I delete the black point positioned at the origin, the positioning of my images are messed up. My second question is that ...
1
vote
2answers
102 views

Drawing a picture in texmaker showing decorations errors

Here is the code that I want to use in Tex Maker. \documentclass[12pt]{report} \usepackage{amssymb} \usepackage{amsmath} \usepackage{tikz} \usepackage{pgf} \usetikzlibrary{decorations} ...
1
vote
1answer
96 views

Using TikZ breaks foot margin

I have got some unexpected Problem using TikZ in LaTeX. When I add TikZ via \usepackage{tikz}, the foot margin is doubled. Any ideas in how to solve this? Or where the Problem is? Minimal Examples: ...
4
votes
1answer
42 views

Little problem with \tkzMarkRightAngle

I have this code: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepackage{tikz} \usetikzlibrary{matrix,decorations.pathreplacing} ...
11
votes
4answers
251 views

Storing and re-using tikz coordinates for position and tangent vectors

The following code \documentclass[border=5pt]{standalone} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.11} ...
5
votes
1answer
84 views

keep the same distance for circular TikZ nodes

I want to distribute several TikZ nodes around a centered node. This is what I've tried so far \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} ...
4
votes
1answer
97 views

how to distribute several arrows vertically in TikZ

I am currently working on a paper, where I need to create few TikZ graphics that contain rectangles with multiple arrows between them. This is a simple example with only one arrow: ...
2
votes
1answer
60 views

Figure -table connection with dotted line in tikz

How could I connect a figure line in tikz with a table next to it like the following picture? \documentclass[12pt,a4paper]{article} \usepackage[english,greek]{babel} \usepackage{ucs} ...
3
votes
2answers
115 views

Conflict of \foreach and \draw?

In the following code: \documentclass{article} \usepackage{tkz-berge} \begin{document} \def\kob{circle (3pt)} % kółko białe \begin{tikzpicture} \tikzset{VertexStyle/.style = { shape = circle, ...
3
votes
1answer
71 views

Tikz table conversion image

I'm not quite sure how to accomplish this but I am looking to make an image similar to the one attached. I want to show converting from one table to another with a condition. Is there a formal name ...
7
votes
4answers
408 views

How to draw four squares arranged as in the following figure

I know how to draw each square separately, but I can't put them together as shown in the figure.
2
votes
1answer
44 views

beamer/tikz overlay image at the center

How can I overlay in tikz an image at the center of the slide, covering the text. Consider: \documentclass{beamer} \usepackage{tikz} \usepackage{lipsum} \begin{document} \begin{frame} \lipsum[1] ...
24
votes
4answers
1k views

TiKZ: “hand-drawn” explosion

Is there an elegant way to simulate a handdrawn explosion as shown in the following image using tikz?
1
vote
1answer
66 views

draw arrow in figure

I am trying to draw a line from the last line in blue to the figure on the bottom of the slide. However, \path (4,1) coordinate (mat); doesn't follow the help grid. This is my code: % This example ...
3
votes
3answers
156 views

how to shade portion of a circle using Tikz?

Could you show how to shade regions within circles using tikz?
5
votes
1answer
124 views

Tikz - conformal map

How can I draw this: With my code I made this far : \begin{figure}[!h] \centering \begin{tikzpicture} \draw (-1,0) arc (180:360:1cm and 0.5cm); \draw[dashed] (-1,0) arc (180:0:1cm and 0.5cm); \draw ...
5
votes
3answers
95 views

foreach loop for adding arcs using commands path and edge

i want to know how to use the foreach loop for adding arcs using commands \path and edge. For instance, the following code generates a cycle and the task is to add the arcs not manually: ...
4
votes
2answers
97 views

Hyperboloid in TikZ [anti-de Sitter(AdS) space topological structure]

I would like to ask how to draw a Hyperboloid like this in a LaTeX document using Tikz or something else. Thanks.
2
votes
0answers
28 views

how to hold previous lines in \multiframe in \tikz?

hi every1 with your previous help I managed to generate a animation of a rotating line using \multiframe within tikzpicture. In the following is a MWE for my animation. \documentclass{beamer} ...
3
votes
1answer
57 views

How to add Tikz graphs and text to an arbitrary x-axis?

I would like to have the following figure in my paper. The problem is that though I know to draw the individual graphs, I do not know how to place them on the x-axis (titled Inefficiency) and also ...
4
votes
1answer
83 views

Tikz Nozzle Design

I'm new to Tikz and I would like some help with a nozzle I'm designing (a nozzle for reaction control thrusters). I want to place a couple of nozzles on the sides of a cube. My idea was to use a ...
1
vote
1answer
55 views

tikz-3dplot , draw spheres instead of circles for 3D diamond lattice site visualisation

This is my first actual LaTeX question, so I hope I get it right. If not, please tell me. I've looked around, but couldn't find an answer to my question, not on stackexchange, but also not in the ...
6
votes
0answers
58 views

Tikz generated PDF produces ? when citing references

I am trying to generate a PDF figure on the fly using TikZ (code below). The figure references from my .bib file and so when I run pdflatex the first time, the PDF gets generated with ? ...
4
votes
1answer
31 views

Getting error on tikzcd: No shape named tikz@f@1-2-1 is known

I'm trying to use tikz-cd but I can't seem to solve this problem. When I try to compile the following code \documentclass{amsart} \usepackage[brazil]{babel} \usepackage[utf8]{inputenc} ...
4
votes
1answer
84 views

pgfplot legend on top of grid but below graphs in axis as well as groupplot

Is there a way to specify the order of layers of elements in a pgfplots-axis? In my certain case I'd like to have the legend on top of the grid, but below the actual graphs: I know for this ...
6
votes
1answer
138 views

how to shade a region bounded by straight lines and arcs in tikz

I have drawn a figure using tikz from Geobra. But I could not shade the region neeeded. \documentclass[twosides]{report} \usepackage{amsmath, amssymb, latexsym, amscd, amsthm} ...
5
votes
1answer
42 views

Tikz Intersecion doesn't recognize path named with name path

I have problems with using path names defined even in the same loop. the following code produces error message: ! Package tikz Error: I do not know the path named `ab6'. Perhaps you misspelt it. ...