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)

3
votes
2answers
55 views

Displaced lines in grid with tikzpicture

I am having troble making a grid with tikzpicture. The vertical and horizontal lines are somewhat displaced. This is similar to TikZ not drawing some lines in grid. I have been fiddling with adding ...
6
votes
2answers
156 views

move the green box to the top of the right grey box

The following is the graph I modified from the forest style, but I encounter an problem when I try to move the green box to the top of the right grey box, I know the main problem is the tree style, ...
4
votes
2answers
163 views

logo made with tikz is bigger in scrlttr2 as in scrartcl

This is my first question here. From time to time I'm using LaTex to create some documents. Usually I'm able to get an answer from Google if I run into any obstacles. Now I'm unable to find any ...
11
votes
4answers
398 views

How does one pick control points to control Bézier curves in TikZ?

[Note: the system didn't like the word 'you' in my question. It prefers 'one'. Go figure.] When I first used TikZ, I struggled to draw curves using control points. ...
2
votes
1answer
25 views

Specifying properties of parts in multipart rectangle

I am trying to specify a multipart rectangle with different properties for different parts. I have the following code, but it is not working. In addition, for some reason the label of the first part ...
7
votes
2answers
145 views

Tikz: how to draw closed paths into an ellipse?

I want to draw this kind of graph: I would like to know how to draw these kind of oriented closed paths into the ellipse. I tried to do this but it was not very beautiful... ...
3
votes
1answer
46 views

How do you add captions in tikz nodes?

How do I add a caption to a tikz picture? This is a snippet of my latex: \documentclass{article} \usepackage{graphicx} \usepackage{tikz} \usepackage[paperwidth=40cm,paperheight=16cm]{geometry} ...
2
votes
1answer
56 views

Tikz : drawing a parallelogramm question (summing nodes)

I'd like to caclculate the coordinates of C knowing A,B,D in the ABCD parallelogramm. This works fine : \coordinate (C) at ($(B)!.5!(D)!-1!(A)$) ; This doesn't work, why ? \coordinate (C) at ...
5
votes
1answer
114 views

tikz: help with this foreach loop

i'm getting an error in this code, can someone help me. I'm trying to create two concentric cycles, but it doesn't seems to work. \def\n{10} \defn\radio{3.00cm} \begin{tikzpicture} \foreach \x in ...
6
votes
2answers
135 views

Help on Smartdiagram in latex

I am trying to draw a diagram as given below in latex. I have little information about TikZ package? Is there any simple way to draw this diagram in latex? I would be grateful if you could help on ...
15
votes
8answers
913 views

TikZ: Draw rectangular triangle by raising a perpendicular on the hypotenuse

I am given the points A, B and X within a tikzpicture environment, like this: \begin{tikzpicture} \coordinate (A) at (0,0); \coordinate (B) at (3.6,0); \coordinate (X) at (2,0); ...
2
votes
0answers
34 views

How to make rotated nodes behave in the same way as the non-rotated version?

The following code produces an image like this: \newcommand{\mywidth}{1.4cm} \newcommand{\myheight}{7mm} \begin{tikzpicture} \node[draw, rectangle, minimum height=\myheight, minimum ...
4
votes
1answer
107 views

Drawing path between nodes using TIKZ

TeX Code \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate (A) at (0, 0); \coordinate (B) at (2, 3); \node[draw,minimum width=10mm] at (A) {}; ...
0
votes
0answers
59 views

Need help using TikZ [on hold]

I'm using Windows 8.1 and TeX Live 2015 (XeLaTeX). I want to draw fitted curve using gnuplot. My code is like this: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} ...
6
votes
1answer
144 views

Creating a pulse width modulator in TikZ

Considering the grahpics below: Is it possible to construct something like this automatically in TikZ? The last hour or so, I have played around with a manual drawing - but it is time consuming and ...
2
votes
1answer
76 views

Adding a 2D plot to a 3D plot without closing the ends

I want to add 2 parabolas to a plot of a hyperbolic paraboloid, but I can't figure out (and couldn't find any information on the internet) how to keep pgfplots from closing the ends of the graphs. My ...
5
votes
0answers
28 views

Corners of 3D cube extend beyond where they meet / tikz / draw [duplicate]

i figured out how to draw the 3d effect cubes, but now im facing the issue of the border lines extending beyond the points where they meet. i know that by doing "draw=none" i can turn these off, but i ...
2
votes
1answer
61 views

Horizontal alignment of tikzpicure in an equation

In this minimal working example, \documentclass{article} \usepackage{tikz} \begin{document} \begin{equation} \lambda = \begin{tikzpicture} \draw(1cm,0) -- (2cm,0); \draw(2cm,0) -- (3cm,0); ...
5
votes
1answer
94 views

Position of nodes and arrows

I am trying to reproduce this slide. I have written some code to produce some thing similar but the positions of nodes and type of arrows are hard to get. This is what I am aiming for and this is ...
4
votes
1answer
36 views

Bad word spacing in TikZ using `text width` and `\fontsize`

\documentclass{article} \usepackage{fontspec} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[text width=20em]{This is}; \end{tikzpicture} \begin{tikzpicture} ...
4
votes
2answers
98 views

pgf inside macro

I'm trying to create a macro that conditionnaly print whatever it's given as argument. However, when such argument is a tikzpicture with a function definition, I get Paragraph ended before ...
5
votes
0answers
100 views

Radar Chart - problem with axis

I have some problems drawing a radar chart. I would like to draw the following chart. I tried to paste pieces of code found here and there (I know that is not a good way) and I obtained the ...
1
vote
0answers
57 views

pgfplot SLERP, LERP or SQUAD existant

Are there any already existent drawings of LERP, SLERP, or SQUAD (similar to the drawing done here) done using tikz?
3
votes
1answer
33 views

pgfplots: replace scatter markers with custom text

I'm wondering if it's possible using pgfplot to plot a 3D scatter plot with lines between each point where the point is replaced with a value. Image is shown below. Currently I am populating the ...
6
votes
1answer
66 views

Is it possible to consider a single optional parameter among three in node declaration?

Please consider the following dummy MWE: \documentclass[border=3mm,tikz,preview]{standalone} \usetikzlibrary{arrows,positioning,shadows,shapes} \tikzset{test/.style = {% > = ...
1
vote
1answer
26 views

Direct arrow with tikz-cd arrow style has extra arrowhead

I want to draw an arrow in a regular tikzpicture that is styled like the arrows in tikz-cd diagrams. Section 3.3 of the tikz-cd manual gives some examples that involve nodes with labels, but I only ...
4
votes
2answers
123 views

Drawing circular arrows between nodes

I want to draw something like this: So far I have this latex: \documentclass[border=5mm]{standalone} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture} \node ...
3
votes
2answers
119 views

Explain formula using beamer

I am preparing a presentation on statistics. I want to include a slide on Bayes' Theorem which says: p(\theta | D) = \frac{p(D|\theta) p(\theta)} {p(D)} I want to explain each term using arrows. ...
3
votes
2answers
58 views

Adjusting edge alignment and positioning of fitted node

I would like to achieve the following: Namely a top left node, a bottom left node with the same width as the top left node (with possibly different height), and a right node with the total height ...
5
votes
2answers
173 views

TikZ : Pair of compasse rendering contest

I made a side view of a compass based on this answer symbols of pencil, ruler and compass I'd like a view from above. \documentclass[border=2pt]{standalone} \usepackage{tikz,xparse} ...
1
vote
1answer
60 views

Callout from end of text

I am trying to put a callout at the end of a line of text. The minimal example is below; the full example has multiple lines of code that are revealed in overlays and I want to have a callout at the ...
1
vote
1answer
36 views

TikZ with spy and scale: problems when using coordinates

I'm trying to use lualatex 0.79 (via MikTeX2.9) to produce a TikZ picture with 'spy' bubbles, but notice a problem when trying to scale the overall picture -- the spied 'bubbles' do not appear where I ...
4
votes
1answer
126 views

Making geometry worksheets in LaTeX?

I work as a math tutor and I'd like to make geometry worksheets for 7th grade students: These worksheets would include finding the area of various polygons, and finding the volume of various shapes. I ...
3
votes
3answers
191 views

How to draw sequence of shapes with arrows and text

I'm trying to draw something of the sort with a square figure in the far left, and a rectangular figure cut into 4 slices on the right-hand side. Above the arrows and below the figures reads ...
4
votes
1answer
42 views

Beamer: one tikzpicture works fine, two make an emergency stop

A beamer frame split in two columns must contain one tikz picture (a pie chart) in one column, and two other in the second column. With the first picture all works fine, but adding the other two ...
3
votes
1answer
45 views

Automatic generation of custom coordinate system in tikz (syntax problem?)

I am writing a Python script to draw large diagrams with TikZ. These diagrams require a (d+1)-dimensional coordinate system with coordinates say a0,a1,...,ad. How can I define a coordinate system in ...
2
votes
3answers
120 views

Drawing an array of nodes using the foreach-construct

I sometimes need to visualize an array-like structure with tikz. I use nodes for array elements and position the next node right of the previous one, i.e., like this: \node[draw,rectangle] (n0) ...
5
votes
1answer
67 views

Length of arrow in tikz-cd

Looking at the code \documentclass{article} \usepackage{tikz-cd} \usetikzlibrary{decorations.markings,intersections} \begin{document} \begin{tikzcd}[scale=10] F_n \otimes M ...
7
votes
1answer
84 views

TikZ externalize fails with Forest

I'm having a hard time getting TikZ externalize and Forest to play nicely. Here is a MWE (text.tex): \documentclass{article} \usepackage[external]{forest} \tikzexternalize \tikzset{ ...
4
votes
1answer
50 views

Tikz standalone image cropped

I'm wondering why my standalone tikz picture gets cropped mid way through the picture? Code is shown below without the input data files. \documentclass[tikz,border=0pt]{standalone} ...
2
votes
1answer
173 views

Creating a flow chart including images

I want to create a flow chart like the following attached one including images inside. How can I do this?
5
votes
1answer
159 views

How to plot a system model like in Microsoft Visio with tikz and pgfplots?

The diagram that I would like to reproduce using tikz/pgfplots is given below: I tried to do it but I did not succeed (I am new to pgfplots and tikz). Here is my code and my output file. For ...
2
votes
1answer
90 views

Multi level latex figure

I am trying to do the following figure with shemabloc, but I didn't succed mainly due to the first two comparators that I cannot place correctly. Thank you for your help. Here is my code. ...
20
votes
2answers
834 views

How to make a graph of heteroskedasticity with TikZ/PGF?

This graphic is a typical representation of the problem of heteroskedasticity in a model of linear regression. If someone could guide me on how to do with tikz , I would be very grateful. Regards
6
votes
2answers
166 views

A line with an angle pattern in TikZ

Is there a way to define a 90-degrees-angle pattern for (straight) lines in TikZ? The pattern should follow the line direction.
1
vote
1answer
57 views

Centering tikz node text

How node text can be positioned at exact center in the following piece of code? \draw[dashed] (4.1,5.1) -- (6.1,3.1) node[above=1mm,rotate=-45] {$x$}; I want x to appear exactly above and at the ...
5
votes
1answer
89 views

Joining curved paths to node anchors in Tikz

I am trying to join to two nodes together following the simple flow chart example. I would like to join two blocks with curved arrows that begin and end in the same places on both blocks (or close ...
2
votes
1answer
46 views

Tidying up double arrows between nodes

I would like to adjust the following (which I have already adjusted from another answer on this site) so that the lines stop short of the nodes, and the arrowheads are bigger/clearer. Can anyone ...
9
votes
4answers
422 views

how to plot reciprocal of Gamma function in Latex

I want to plot Gamma function and reciprocal of that but I am beginner in Latex. Please help me!
3
votes
1answer
35 views

Using \mathfrak in tikz: \mathfrak allowed only in math mode

I'm trying to make a presentation using beamer, and I'm mostly copying from already compiled .tex file (using the documentclass memoir). But I got this error: \mathfrak allowed only in math mode. ...