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
41 views

Adding Semi-transparent Background Image to Tikz Axis

I have a bunch of figures that contain line plots to which I would like to add a background image showing the geometry compared to the data. What I would like to know is: How can I add a ...
0
votes
2answers
74 views

How to draw an arrow in a diagram?

I found the code for I tried to put an arrow at the end points to join 0 to 0 but I couldn't. Any help? Edited: Here is the code I found \begin{tikzpicture} \matrix (m) [matrix of math nodes, ...
10
votes
1answer
175 views

Connecting tree nodes with double arrows a la chef

I'm trying to draw a tree with double arrows. To that end, I have combined the file system tree from texample.net with the basic idea of double arrows a la chef: \documentclass{standalone} ...
0
votes
0answers
27 views

Longtabu in pgfplotstable from csv input with additional tikz lines

My question is based on this thread: Faulty table lines I have lots of csv-separated data e.g. in this format 11,22 33,44 55,66 ... and so on I'm creating tables automatically using the ...
1
vote
0answers
61 views

How to explain the intuition of distributional moments using a figure [on hold]

I want to create figures to explain the meaning of the (first four) moments of a distribution (with this I mean: Mean, Variance, Skewness, Kurtosis). The goal is to use this in teaching stats. I am ...
2
votes
1answer
38 views

Problem using TikZ and Paracol

I have several TikZ graphics on one page. To add a description on the right side of the graphics I use the paracol package (is there a better way to do this?). As you can see on the picture below the ...
4
votes
2answers
63 views

Tikz Node - Prevent TikZ from adding space inline

I have an automatic command to add an ellipse on top of a particular piece of text so that I can highlight it in a presentation (heavily inpired by \newcommand: How to determine if in math mode (and ...
8
votes
2answers
96 views

Diagram with a shaded region

The following MWE yields the diagram above but I would like to find a better way of showing the shaded region. \documentclass[letterpaper]{article} \usepackage{tikz} \usepackage{amsmath} ...
3
votes
1answer
61 views

How to add antennas to flowchart

I want to add 4 antennas to a block chart (right end). I have tried with \node (9,0) node[antenna] but it didn't work. My code is below: \documentclass[a4]{report} \usepackage[english]{babel} ...
5
votes
2answers
77 views

Game tree needs adjustment

I've created the following game tree: I want it to look like this and I'm stuck: (Apologize in advance for the ugly drawing!) This is my code: \documentclass[12pt,twoside]{book}%{book} ...
0
votes
1answer
89 views

Tikz - Draw rectangle with dashed one side and hatching on the others

I need to a scheme like this one: The problem is, I have no idea how to do the dashed line on top of rectangle and the hatching in the left side and in the bottom. Is it possible with Tikz?
0
votes
1answer
48 views

Alkenes and newman projections

Recently, I've written a latex document about stereochemistry, but i needed a lot of strange newman projection, I found lots of problem about alkenes. First of all, I had to draw alkenes, then my ...
1
vote
1answer
32 views

Grouping child nodes in mindmap

I tried to group the children nodes around a parent with different distances between them, depending on how they are written they form three groups. For example seeing it as a clock, I would like to ...
2
votes
1answer
85 views

Tikz node in algorithm2e preventing file from compiling

For some reason, I cannot find where I am going wrong. I put a tikz node in the algorithm2e environment and now the file cannot compile. I get the error Missing } inserted. I do not see where I am ...
2
votes
0answers
55 views

fading tikz fancyhdr problem in book printing

I recently had a book printed, where I used fading lines in the header. In the PDF it looks correct, bu in the actual print, the lines on the left pages didn't fade as much as the lines on the right ...
2
votes
1answer
107 views

How can I render a LaTeX document without pages?

Almost always, I simply render electronic documents, so I don't need pages. Also, pages make it difficult to arrange images in a document. I want to draw TikZ graphs for my blog articles, and I don't ...
1
vote
1answer
34 views

resizing axes in pgfplots

I have a plot where two values on the y-axis are very close together. I would like to add space between to make them more visible, without making the axis itself too large. Is this possible? MWE: ...
10
votes
3answers
241 views

Why does `\def` not work as TikZ parameters?

I have just started learning some TeX programming and am learning TikZ in plain TeX. My question is why is the following not working as intended; I try to define \sty as the TikZ drawing parameter, ...
0
votes
1answer
45 views

How to remove upper space in Tikz Poster? [closed]

How do I remove the blank white strip above the title in a Tikz Poster?
6
votes
2answers
71 views

Filling between two lines

I'm trying to create a figure using Tikz. A part of the figure looks like this. \documentclass[11pt, a4paper]{article} \usepackage{textgreek} \usepackage{amsmath} \usepackage{graphicx} ...
1
vote
1answer
35 views

How to draw (major) grid lines only at specified positions?

How to draw (major) grid lines only at specified positions, such as x=0, x=2 in the following MWE@ShareLaTeX (readonly now)? \documentclass{standalone} \usepackage{pgfplots} ...
5
votes
1answer
47 views

Can't use xshift with decorations.markings in tikz

I am using the library decorations.markings to mark the middle of a plot with a \node: \documentclass[a4paper,11pt]{article} \usepackage{tikz} \usetikzlibrary{decorations.markings} ...
1
vote
1answer
66 views

Cannot center tikz Cayley graph

I would like to horizontally center the Cayley graph given by the code below, but I haven't had any luck. I can get it pretty close to centered by manipulating the spacing with \vspace and \hspace, ...
-1
votes
1answer
71 views

Box around zigzag line tikz

I have a zigzag-line, which I can get in TikZ by using \draw[decorate,decoration={zigzag}] (nodea) to [in 315, out = 320] (nodeb);. But I want this zigzag-Line to look more like this, with the red ...
3
votes
2answers
47 views

Operation mode in pgfplots (referencing from externalized graphics)

I am using the externalize feature of tikz/pgf to save space for my thesis. I am using TeXShop on a Mac. I am running into trouble referencing something in the main document from the externalized ...
5
votes
3answers
139 views

Drawing the rules for the bracket polynomial

I am trying to re-create the three rules for the bracket polynomial: This is what I have tried so far: \documentclass[executivepaper]{article} \usepackage{mathtools} \everymath{\displaystyle} ...
1
vote
0answers
59 views

How to generate a diagram as below?

I am a (La)TeX newbie and I have found the following graphic in a document: I am quite sure it was generated by LaTeX code since you can select every bit of text in the original file. I am not ...
1
vote
0answers
47 views

animation in pdf using tikz

Is it possible to make this Animated proof of quadratic formula an animation in pdf where one can click to play, pause, forward and so on. But the animation should be beautilful as in gif.
-1
votes
2answers
45 views

Drawing under-link diagram using latex [closed]

i am preparing my latex version of my paper and i need to know how can i handle the reduction diagram like in this figure
0
votes
0answers
21 views

Common ylabel for a number of axis enviroment

I'm trying to add a common ylabel to 4 subplots that are stacked in a 4*1 arrangement. My code is a bit different than similar questions regarding common ylabel, since I have an axis environment for ...
2
votes
1answer
32 views

How put tikzpictures in rows?

Currently I have 8 different pictures and I want to put them in 2 rows of 4 (so 4 pictures per line). These tikzpicture also have arrow head which I would like to get rid off. If someone could type ...
1
vote
2answers
78 views

Draw open squares in a row with numbers inside

I am trying to draw n open squares with numbers inside. The objective to make notes on combinatorics with n balls and n boxes types of problems. I could draw circles using help from this site. I used ...
2
votes
1answer
50 views

Moving label created by TikZ

I am beginner with TikZ. I have an image in my hand, and using TikZ I have crated labels. How do I move the label to the top of the image using TikZ? The following is the code I have used: ...
1
vote
1answer
44 views

Array diagram in tikz

I took the answer from the following question: proportional boxes in Tikz (array diagram) I had no problem until now, it compiled without any problem, however I just updated Ubuntu and it does not ...
3
votes
1answer
82 views

Animated proof of quadratic formula

I have the following code earlier posted by Alenanno. I want to give an animated proof of quadratic formula. My question is: I want to improve the code so that when I am multiplying with $4a$, ...
0
votes
0answers
38 views

Set the color to the sides of cylinder and exterior ring/hollow cylinder

I'm a newbee to tikz and from tex.stackexchange.com I tried a lot of resources. But I didn't get the initial help to solve my problem by myself. Maybe you can help me. Here is my problem: I want to ...
1
vote
0answers
18 views

Fill column with random numbers using datatool and PGF

Consider the following csv file: column1,column2 line1, line2, I want to fill column2 with random numbers, preferably using PGF (simply because I already know a bit about PGF, but I am open to ...
3
votes
1answer
40 views

Clipping area correctly

Trying to think about this intersection of functions or polygon tikz? I arrived to my long standing question - how to clip and fill area correctly? Usin tkz-fct MWE: \documentclass{standalone} ...
3
votes
0answers
33 views

TikZ: wrong edge between split rectangles in graphs

Consider the following minimal example: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{graphs,graphdrawing,shapes.multipart} \usegdlibrary{trees} \begin{document} \tikz[every ...
1
vote
1answer
46 views

plotting a grid like this with TikZ

I'm fairly new to TikZ, and I'm kinda stuck with the basics... I'm trying to render this image: Is there an easy way to plot these bullet points? Plus is it possible to add the two curves around ...
0
votes
1answer
40 views

TikZ: using ‘node contents’ key for graph nodes

TikZ allows node contents to be set using an option: \tikz{\node[node contents=whatever];} Note the syntax, the following is not allowed: \tikz{\node[node contents=whatever] {};} and gives an ...
1
vote
2answers
64 views

intersection of functions or polygon tikz?

Hello I am creating a plot using tikz I have created 3 functions on a plot and took the area above each of them using drawge. My question is how I can fill the area above intersection of two functions ...
0
votes
0answers
23 views

tikzscale with tikz-external: Recreating plot

I am creating pgfplots in the tikzpicture-environment together with the external library. To ensure the width of the plot, I wanted to use tikzscale. Originally, I was using the beamer-class with a ...
0
votes
2answers
86 views

tikz diagram question

I want to create the diagram in the pic below and I have the code for the upper part of it, but I have hard time to finish the rest, any help appreciated. my code:- \documentclass[11pt, ...
4
votes
1answer
70 views

Adding two circles in latex?

I want to add to intersecting circles together in latex and remove that area from an even larger circle. My code is as follows: \documentclass{article} \usepackage[utf8]{inputenc} ...
3
votes
2answers
64 views

How to create rectangles of arbitrary size?

I am aware that TikZ tries to create shapes based on minimum size and the text content, but I wish to create some rectangles of arbitrary size as the ones in the following figure: As you can see, ...
0
votes
1answer
88 views

animated proof in latex [closed]

How can I make something like this? I would prefer tikz.
2
votes
1answer
25 views

How to encircle two neighbors node using forest?

I fail to encircle two node \documentclass{standalone} \usepackage[utf8]{inputenc} %unicode support \usepackage{lmodern} \usepackage{tikz} \usetikzlibrary{fit} \usepackage{forest} ...
1
vote
2answers
56 views

Write same vertex labels with TikZ

I am writing an article on graph coloring and trying to make this type of labeled tree in TikZ. (See the attached Figure) The problem is that I have to use same color label (English letter) for many ...
4
votes
2answers
265 views

Big circle with its radii

I don't know how to draw the radii of circle. This is what I can draw \documentclass[tikz]{standalone} \usetikzlibrary{patterns} \newcommand{\greatcircle}[5][]{ \path[#1,pattern=north west ...