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

Perpendicular lines on sloped lines

I'm trying to make a diagram in TikZ which is supposed to illustrate the triangle you construct when constructing a 60 degree angle. I'm having some troubles, mainly concerning the title of the ...
4
votes
0answers
89 views

Trying to get tikz-cd going [duplicate]

Trying to get samples from this document to work, I made the following minimal document on WriteLaTeX here \documentclass{beamer} \usepackage{tikz-cd} \begin{document} \begin{frame}{Hello ...
1
vote
1answer
284 views

How to redirect associations in the tikz-uml package?

I am using the tikz-uml package to model a class diagram. The code snippet is placed in the examples sub-directory of the downloaded tikz-uml package. Here is the code: ...
4
votes
1answer
283 views

How to adjust the y-axis of pgfplots

In the right pgfplots, I hope that it could have (0, 10000,20000,30000,40000,50000)[in normal scale], rather than (1000,10000) [in log scale] now, how should I do that? This the the code ...
10
votes
1answer
441 views

Drawing PQ-trees

I need to draw PQ-trees in LaTeX which look like these: I tried trees in tikz but I had two problems: partially shade rectangles use vertical pointers from children to the parent, if the parent ...
8
votes
1answer
231 views

Weird side effects with Tikz positioning library

I use Tikz and chronology in a paper. However, as soon as I use the Tikz positioning library, I observe weird side effects. I can solve this problem if I remove the positioning library (and include it ...
6
votes
1answer
405 views

Arrows crossing blocks TikZ

I did several research and many tests and I didn't figure out how to draw the line from (U) and goes to the bottom of S and Q. This is the code of what I did right now and I want your help to add the ...
3
votes
1answer
304 views

How can I center a tikzpicture horizontally by a certain point/coordinate?

this is a rather nit-picky question but I wanted to ask anyway. Is is possible to center the tikz figure horizontally with using the coordinate indicated by the red circle? The catch is, I have ...
7
votes
1answer
340 views

Random 3D shape

I created a picture for a random charge distribution and it currently looks like this \documentclass{article} \usepackage{tikz} \usetikzlibrary{intersections, decorations,circuits.ee.IEC, calc, ...
0
votes
0answers
51 views

Tikz Braces On Top of Image [duplicate]

I am trying to produce the following result: I've never placed tikz objects on images. Any help would be appreciated.
4
votes
1answer
761 views

Showing grid on top of plot fill with PGFplots?

I have a plot with a pass/fail metric, and wish to show this clearly by having to seperate colors in the plot. To make the data stand out, I have a background grid to the axis tick marks. However, ...
7
votes
1answer
5k views

Tikz node alignment

How can I align (or shift) Tikz nodes? I have the following figure (see below), which consists of multiple horizontal nodes. I want to align the data node with top/bottom of nodes A-D (i.e., red ...
7
votes
1answer
502 views

How to scale a pgfplot in a tikzpicture correctly?

I created a figure in pgfplots and added some extra labels in a tikzfigure environment. Now it turns out I need to rescale the whole figure. Normally this can be done by adding scale=2 but here the ...
11
votes
1answer
691 views

Angle between lines in 3D space

In my following codes: How can I create a beautiful mark angle for DCE angle? How can I change position ALPHA in front of BAC angle in space? \documentclass{article} ...
7
votes
1answer
470 views

align base of triangle and rectangle

I am drawing a process flow diagram using TikZ. My code is the following: \documentclass{minimal} \usepackage[a4paper, landscape]{geometry} \usepackage{tikz} \usetikzlibrary{shapes.geometric} ...
5
votes
1answer
388 views

Is it possible to use commands defined in DTLforeach as conditions in a tikz environment?

I have been tearing out my hair with this one all afternoon and was hoping someone could help me. Essentially the problem I have is that I'm using a DTLforeach loop to iterate over values in a .csv ...
8
votes
1answer
340 views

TikZ: Automating a process with a for loop instead of coding in each piece

I am positive I could create the incoming hyperbolas and then the deflections by the planet by hand for each one, but how the image is set up conjures up the felling this could be done through ...
13
votes
2answers
596 views

Key that takes a list of other keys as argument and sets them

I would like to define a key, let's call it mystyle, which has several subkeys, like mystyle/A and mystyle/B, and I'd like to be able to choose which of these subkeys to set by calling mystyle=A, ...
12
votes
1answer
709 views

Brownian motion with drift

I have a code for the Brownian motion and it indicates three paths which initially started at point 0. My goal is to increase the initial starting point from 0.0 to e.g. 0.6. This is achieved by ...
2
votes
1answer
545 views

Current Noise Source. New Symbol needed

I write a code for the Voltage and Current Noise Sources, using the "circuit declare symbol". The option works well for the Noise Voltage. I can change the color of the font, circumference and ...
6
votes
1answer
474 views

Trying to get Tikz chains example working

I found a lovely example of chains diagramming here and have been trying to get it to work. I opened a fresh document on WriteLaTeX, here, and put in the minimal preamble for the chains drawing, ...
7
votes
1answer
406 views

Plotting Population Regression Function with pgfplot

I want the make the following population regression function with pgfplot. My attempted code is \documentclass[border=5mm]{standalone} \usepackage{pgfplots} \begin{document} ...
2
votes
0answers
336 views

TikZ: constructing hyperbolic trajectories and angled circles on a sphere

I am trying to construct this sphere above. What I have so far is below: \documentclass[tikz, convert = false]{standalone} \newcommand\pgfmathsinandcos[3]{% ...
7
votes
2answers
456 views

TikZ: surface of revolution of a hyperbolic trajectory

So I have no idea on how to construct a surface of revolution of a hyperbolic trajectory from a injection point. For simplicity, let's make the injection point (0, 0). Unfortunately, I don't know ...
5
votes
1answer
536 views

Plotting a parabola: dimension too large message

\documentclass{minimal} \usepackage{tikz} \usepgflibrary{fpu}%----- this \begin{document} \begin{tikzpicture}[ scale=.01] \draw[domain=-30:30, /pgf/fpu,/pgf/fpu/output format=fixed ] plot ...
4
votes
1answer
337 views

TikZ: constructing a piece of a hyperbola with a given asymptote

\documentclass[convert = false, border = 1cm, tikz]{standalone} \begin{document} \begin{tikzpicture} \draw (0, 0) circle[radius = .35cm]; \draw (-60:1.5cm) -- +(0, 4); \draw (0, 0) -- ...
10
votes
1answer
543 views

Compiling a tikzpicture including \ref

I've been reading and gathering material from multiple sources online about what steps are required to externalize a document that contains TikZ pictures which store a reference to their legends using ...
9
votes
1answer
515 views

Page header with box sections & page border

So I'm currently working on converting some documents used in our university to use LaTeX, and I'm stuck on a bit of a hangup. I've been able to nail down all the basics, using plotting, etc; but I ...
5
votes
1answer
157 views

How to put a label at the beginning of an arrow?

I came with the following code to display the graph below: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \tikzset{ actor/.style={ rectangle, draw=black, ...
3
votes
1answer
416 views

Arrow Definition in PGF/TikZ

I'm trying to define an arrow for use in tikzpictures that (similar to the small arrows IPE uses) is 5pt long (tip to end) and 3.333pt wide (base). Here's what I came up with: \documentclass{article} ...
13
votes
1answer
419 views

How does one construct an abstract (n × n) empty grid of squares?

I would like to just create a grid like this, but without numbers or color, but I'd like to represent an n × n grid abstractly with ellipses like this: Also, I need just a simple—singular—grid ...
3
votes
1answer
734 views

TikZ: compiling a standalone picture

I am not sure if this is recreate-able through a MWE. Whenever I compile a standalone TikZ picture, it compiles all my standalone figures in the same folder. I am using Ubuntu 13.04 and Emacs with ...
11
votes
3answers
485 views

Drawing “bus width”-like markers with number on arrows

I'm trying to draw arrows with / marks and numbers like in the following picture: My current solution looks like this: \begin{tikzpicture} [ inverter/.style={rectangle,draw,inner ...
3
votes
0answers
34 views

Drawing arrows from one side of a rectangle to other nodes without suitable anchors [duplicate]

I'd like to draw dashed lines from the right (east) border of one rectangle to the west anchor of two other rectangles, but the line should be horizontal. Is there an elegant way to decide where the ...
7
votes
1answer
550 views

Trees in latex : Depth of 4 nodes

I am following the current tutorial (MWE) : link However, I am facing difficulties to perform a tree of 4 nodes. Items are superposed, and even if I add a child [missing] {} it doesn't solve the ...
3
votes
1answer
497 views

TikZ: Symmetric matrix without upper diagonal elements

I want to make a symmetric matrix in TikZ and don't want to show the upper diagonal elements. \documentclass[tikz]{standalone} \usetikzlibrary{matrix, positioning, calc} ...
5
votes
1answer
336 views

Draw ticks over external plot using pgfplots

I plotted a contour/surface plot with gnuplot using set pm3d map and want to include this picture via \addplot graphics {...};. When I match the plot area of the axis environment with the plot range ...
5
votes
0answers
413 views

Font size for TikZ picture datavisualization [closed]

This is a folloup question to: set fontsize for TikZ figure As I mentioned I design my pictures around the fontsize, therefore it is good for me if I can set the font size to a particular size for ...
10
votes
2answers
535 views

Fixed Point Arithmetic: Why does the fp work sometimes but others it errors?

Why does fixed point arithmetic like to error on parts of the code that aren't doing any math? I am using the package to improve the calculation of some angles I have it printing out, but it is ...
1
vote
0answers
81 views

How to gradually unveil a tikz node from its background [closed]

I would like to gradually unveil a tikz node from its background (like an animation, from un-noticable to gradually clear). One strategy could be to gradually reduce the opacity level of the node, ...
6
votes
2answers
786 views

TikZ-Editor: Preview error

How can I setup my TikZ-Editor to enable preview? I use MacTeX 2013, installed with the ISO file. Could you give me some clue about how I can configure this software? The error message reads: ...
4
votes
1answer
124 views

Cleveref doesn't find the label

The following code gives me as reference the section and not the signpost. It is probably a beginner's mistake. \documentclass{article} \usepackage{tikz} \usepackage{mdframed} ...
10
votes
1answer
3k views

How to remove ticks from the top and right axes of a plot generated with PGFPlots?

I want to remove ticks from the top and right axes of the bounding box of a plot generated with pgfplots. Any help appreciated. Here is sample code which generates unwanted ticks. ...
8
votes
2answers
397 views

Text in itemize in column with tikz exeeds margin

I'm new to tikz but I don't think the problem is tikz itself. What I want to obtain is simple, a list of file names with an arrow for each element pointing to the middle of and interval of a tikz ...
5
votes
2answers
317 views

Upside down tikz-qtree with concentrated edges

I would like to create an upside down tree with concentrate edges and labels inside the nodes as labels above them. Right now I've come so far. But I still need the edges to concentrate/combine and ...
5
votes
1answer
2k views

Tikz flow chart and beamer

I am creating a beamer presentation. I have following tikz flow chart. The problem is the chart appears to be cluttered and is not accomodated on a single slide. Here is the code ...
3
votes
1answer
2k views

How can I make tikzpicture flow smoothly around text?

I have a problem when I use tikzpicture and wrapfigure. The main issue is that when using the third parameter, the "distance" becomes arbitary. For example, I am using 9cm but what is the correct way ...
5
votes
0answers
1k views

Tikzscale, trim axis left/right, and externalizing

tikzscale and trim axis do not play well together, with the produced figure being larger than requested because it ignores the size of the labels. I was wondering whether it is possible to use both ...
2
votes
1answer
525 views

Probability beamer theme

I'm trying to present my thesis in stochastic area with some beautiful Beamer theme I found useful website http://latex.simon04.net/. But as my thesis is in stochastic (probability) I search if ...
14
votes
1answer
308 views

Are there specialized libraries or packages to draw blocked/partitioned/splitting matrices in Tikz?

I need to write matrix splitting and factorization operations (for my linear algebra course). It is hard to do these is direct Latex. I can use Visio to draw these easily, but I'd prefer to use Tikz ...