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)

12
votes
1answer
398 views

Drawing primitive shapes with TikZ

I want to draw this picture as a noob, the way I usually do (for all other images) is to painstakingly draw line by line and manually adjusting their coordinates to get the shapes I want. I have ...
2
votes
1answer
147 views

TikZ: Why is the 2nd intersection not found?

I am trying to construct a tangent line to the dashed curve but TeX is telling me that No shape named intersection-2 is known. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc, ...
1
vote
1answer
241 views

tikz circuit library annotation based on shape dimensions

I'm trying to define a new annotation for tikz circuit library which surrounds a shape with a circle of max(minimum width, minimum height). updated with new information from Qrrbrbirlbel's comments, ...
1
vote
1answer
142 views

TikZ: Can a node be placed at pos = .5 and then a coordinate at the end of the line?

As the title say, can a node and a coordinate be placed on the same line? \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate (P1) at (-2, 0); ...
1
vote
0answers
81 views

TikZ: Polar coordinates referencing system [duplicate]

Many times I like to use polar coordinates but the reference frame is always at the origin. This is a bother when I went to draw a specific angle and radius from a location other than the origin. I ...
3
votes
2answers
560 views

Tikz drawing a ring with nodes

I want to add the following figure in the presentation of a paper I read. I read a small introduction to tikz but still the figure is very complicated for me to do. Can anybody help or point any ...
2
votes
0answers
591 views

Adding a background image with tikz poster

When using the tikzposter package, is it possible to add a background image? I currently have a colour gradient, and would preferably like to keep this intact, and superpose the image on top of that. ...
2
votes
2answers
164 views

Align Captions of 2 figures

I managed to get my two Tikz figures side by side. The vertical alignment of the Tikz figures is fine and needs to stay that way. However, I am bothered by the captions and I'd like both of them to be ...
4
votes
1answer
381 views

mdframed with tikz-framework: roundcorner-keyword seem not to work completely

I got a similar problem to How to draw frame with rounded corners around box I try to make round boxex for a poster presentation, I could nearly succeed using mdframed-package with tikz-option. But ...
5
votes
1answer
625 views

Trouble using pgfmathsetmacro in foreach loop more than once

I'm trying to draw a series of lines where the x-coordinate is given by a geometric sequence, as in the following example: \begin{tikzpicture} \foreach \i in {0,...,3} ...
1
vote
0answers
55 views

Tikz Matrix (alignment?) [duplicate]

I have the following example: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{equation} \begin{tikzpicture}[baseline=(current ...
3
votes
2answers
169 views

Can't reproduce sequence alignment using TikZ?

I'm new using the TikZ package. Can someone help-me to reproduce this matrix 1 using Tikz? More precisely the step in figure 2. I tried to do it with matrix but I can't put the number 1 [above ...
7
votes
2answers
524 views

How to create equi-distant nodes on a spiral with TikZ?

I have borrowed the following code to draw a spiral using one of the existing posts in TEX.SE. \begin{tikzpicture} \draw [domain=0:25.1327,variable=\t,smooth,samples=55] plot[mark=*,mark ...
5
votes
1answer
171 views

dot2tex concentrate edges, bug fix or workaround

It is a known bug that dot2tex produces weird output when combining concentrate=true and tikz code output. It creates multiple squiggly edges instead of one nice curved edges. However, we get ...
12
votes
3answers
2k views

Creation of a new poster template

Elena Botoeva has written a package with 5 templates for posters, called fancytikzposter, consisting of a unique TikZ picture. Her class had some success (see here) I am looking for a way to improve ...
2
votes
1answer
421 views

Tikz US-style components and other components

In circuittikz there is a full library of US-style components like the +/- voltage source, directed arrow current source, etc. As far as I can tell from the documentation, the Tikz circuit library ...
14
votes
1answer
256 views

Making TikZ path into a hyperlink

I'd like to know if there's a way to make an arbitrary closed path in TikZ into a hyperlink; either directly or by turning it into a node. Here's an example of code to work with: ...
18
votes
1answer
707 views

Code examples, like in the TikZ/PGF manual

I like very much the 'side-by-side' code examples in the TikZ/PGF manual... ... and I would like to use the same thing in a manual I'm writing. I have found the source code for the codeexample ...
4
votes
1answer
3k views

Understanding TikZ node placement

I'm having a hard time understanding how TikZ uses space \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \tikzset{red/.style={fill=red,circle,inner sep=0pt}} ...
2
votes
1answer
292 views

show part of tikzpicture

Is it possible to extract a part of a tikzpicture? See for example this tikzpicture. I would like to show the parts with different colors on different slides. (The real picture is more complex, wide ...
4
votes
1answer
1k views

Dimension too large after exporting box plot with matlab2tikz

When exporting a box plot with matlab2tikz I get no errors, but when running pdflatex I get a "dimension too large" error. This only happens with box plots. Still the box plot shows up as it should, ...
4
votes
2answers
198 views

fill in the blank between two curves and arrow which shows the change

In continue to my previous question, concave curve in tikz, I would like to know how can I achieve the yellow area of the next figure and the little arrow in it? I don't care about how small the arrow ...
1
vote
1answer
300 views

concave curve in tikz

How can we draw a concave curve like the following one without having any numeric data?
8
votes
3answers
2k views

Draw line from a point to another line (along x-axis or y-axis) in TikZ

I would like to make use of the intersection tools to draw a line to another line in a way that it only reaches along the x-axis or y-axis. I mean I currently think that I would achieve this via the ...
9
votes
1answer
891 views

Drawing a ring around a torus (doughnut) using TikZ

I was trying to draw a 2-torus (a doughnut) using TikZ, based on the answer to my previous question Moebius Strip using Tikz, and got the following The result is impressive! However, the vertical ...
5
votes
1answer
237 views

What is the best way to name nodes in TikZ?

I found there are several ways to name a node (please relate to the MWE for the different numbers) but I am wondering if there are other (rather "simple") ways of doing this: My current 'best ...
2
votes
1answer
223 views

TikZ: Accessing coordinates from coded points

Consider the code below. In the scope environment, I am using a clip to keep the ellipse between the points. From reading, I know with the let command I can access the coordinates of the points by ...
2
votes
1answer
193 views

node on top of Gauss distribution

following this thread: gauss curves inside minipage and node I have the following working example with a very specific problem. I want to include the sigmas above the double arrows, but without the ...
2
votes
1answer
479 views

TikZ: normal and tangent vectors added to ellipse 2

In Tikz: unit tangent vectors to a curve, Jake helped with adding a tangent vector to the ellipse. However, in that question, the ellipse was oriented with the semi-major and minor axis in line with ...
7
votes
3answers
300 views

TikZ intersection command not returning desired result

I am trying to place a node at the intersection of two lines, however I do not obtain the desired result. I would like the circled x in the pciture below to appear on the intersection of the two ...
2
votes
1answer
704 views

GNUplot command to produce tex files with 12pt font size?

I am using GNUplot in combination with the TikZ terminal by using the command 'set term TikZ standalone color solid size 3.25in,2.25in'. The first line in .tex file that is produced when running ...
19
votes
1answer
1k views

Draw custom frame around text

I would like to obtain a custom frame, which is different from the ones given by mdframed. Here is the image comes from the package fancytikzposter, which consists in a minipage inside a tikzpicture ...
8
votes
1answer
257 views

Drawing balls in a rectangle

I am trying to replicate the following figure here and this is what I have so far \documentclass[12pt,a4paper]{standalone} \usepackage{tikz,tkz-euclide,pgfplots} \usetkzobj{all} ...
6
votes
1answer
760 views

TikZ: Drawing an ellipse through two points

I am trying to construct a portion of an ellipse that connects point P1 and P2 but I don't know anything about the ellipse besides that F is one of the foci. All I know is that an elliptic arc ...
8
votes
1answer
483 views

gauss curves inside minipage and node

I am really new to Latex and this has been my place of reference for the last weeks, so I wanted to ask you about a really weird thing that I have no clue how to solve... Following this thread: ...
4
votes
1answer
2k views

Label and ticks using pgfplots

I am using pgfplots to plot simple functions. For example, \begin{tikzpicture} \begin{axis}[grid=major,xmin=0,xmax=1,ymin=0,ymax=0.5] \addplot[color=black] coordinates { (0,0.2) (0.5,0.2) (1,0) }; ...
6
votes
2answers
570 views

economic circuit

Having seen some examples of electronic circuits, I would like to make an economic one like this one: I haven't found any relevant example, so would like your help. In case that somebody is ...
0
votes
0answers
73 views

Enable rectangle to have a 3-D vision [duplicate]

How to draw a rectangle with 3-D vision, or 3-D rectangle. I also need to fill it with text.
2
votes
1answer
438 views

Problems with crossing over another line

So not too long ago, I was on here asking about a way to make a line on a Tikz image cross over another line by arcing over it. I was looking for a way to clean up a Tikz image that I had created for ...
3
votes
1answer
940 views

Use multiple tikz picture with onslide command in the single frame in beamer

I have multiple tikz pictures in the single frame in beamer. In the first tikz picture I was able to use the only overlay and onslide command. However, for the second picture I am not able to achive ...
3
votes
1answer
148 views

Persistent “hanging” tick label

I have sort of a strange problem. I produced a 3x2 plot array in Matlab, and removed all of the y-axis tick labels. The relevant code (for the problematic plot) is below \begin{tikzpicture} ...
14
votes
1answer
426 views

Theorem with separate tikz environments for header and body

My initial question: I'm writing my lecture notes in LaTeX and used some customized theorem environments with amsthm so far. Now I wanted to redesign those theorems with help of tikzpicture. That's ...
8
votes
1answer
1k views

Plot the probability density function of the gamma distribution

I want to draw gamma distribution with different shape and scale parameters. The following MWE displayed error. The error information is : Here is MWE: \documentclass[border=5mm]{standalone} ...
2
votes
1answer
165 views

Shorter way to color indices of a matrix?

I've made a bordermatrix with brackets [] instead of (), now there are these indices on the top and left side. In my case on the top they are u_1,v_1,u_2,v_2 and so on. On the left side they are ...
3
votes
1answer
619 views

Addplot3 with graphics / Image Offset to Axis

I'm currently working with tikz and pgfplots to set a few plots. It works marvelously for a lot of applications, add I have set a number of plots (especially surfaces from matlab) with help of the ...
11
votes
1answer
321 views

TikZ: What do I look up to find information on the let command in draw?

In one of my post, Jake used the \draw let to determine the arc between 2 lines. Where can I find information to better understand this command? Or what do I look up? Similar, I would like to learn ...
1
vote
0answers
143 views

How to generate a graphcis like a flowchart but with function plot? [closed]

I know that latex plot is really powerful. I think it can also work out for the attached figure as follows. Can I anyone help me out? Similar plot demonstration is also greatly helpful. Thanks in ...
4
votes
2answers
580 views

Tikz coordinates relative to a node, and outside it

Given a rectangular node X I have access to the coordinates (X.north), (X.east) and the like. However, I want to be able to draw two sides of a right-angled triangle on top of the node. For example, ...
4
votes
1answer
208 views

tree-dvips Alternative for Linguistics Document with pdftex

I'm attempting to find a way of linking two objects in avm.sty together. The result I want is exactly that specified here: http://www.essex.ac.uk/linguistics/external/clmt/latex4ling/avms/#4 I'm ...
5
votes
1answer
733 views

Combine pgfplots on common background

This image is two tikzpictures side by side, each with a newsprint background (thanks to Background image for pgfplots chart). I want them combined, so they appear on the same torn sheet of ...