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)

6
votes
1answer
501 views

Drawing a packet layout with TikZ

I'm new to TikZ, and I'm having a terrible time figuring out how to create an image similar to this. So far I am able to create all the rectangles, but there are two things I cannot figure out how ...
7
votes
2answers
512 views

Shading of cubes in 3D picture

The example here is just great (and even better with the implementation in the comment). I would, however, like to have all the sides on a cube in the same color but have the color change in each ...
12
votes
1answer
1k views

Documentation of the tikz 3d library

Where can I find the documentation of the tikz 3d library? There seems to be no such section in the manual and google didn't help me in this case.
8
votes
1answer
425 views

Best way to get the unit vector of a given vector in tikz 3d

Suppose I have a coordinate in tikz 3d which I interpret as a vector, for example \coordinate (v) at (3,2,9); What's the best way to get the unit vector pointing into the same direction? My first ...
27
votes
5answers
2k views

How to draw the region of inequality?

Everyone, I would like to draw the region \begin{align*} x_1 + x_2 &\ge 3 \\ 2x_1 - x_2 &\le 5 \\ -x_1 + 2x_2 &\le 3 \end{align*} Here is my code to draw the region of inequality: ...
5
votes
2answers
176 views

Have \foreach restart or loop

I understand that trying to have a "loop function" like \foreach loop sounds like a paradox but I'll try to explain what I mean. Recently, I've asked a question about automatising the creation of ...
3
votes
1answer
580 views

Dimension too large with tikz-qtree

I want to draw a tree with tikz-qtree, but it bails with Dimension too large. \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{pdflscape} \usepackage{tikz} ...
6
votes
1answer
174 views

TikZ: posticipate execution of type /.code key

I'm trying to create some TikZ keys which allows to easily draw distributed loads on a mechanical structure (or truss). The code I wrote at the moment is: \documentclass[a4paper]{article} ...
5
votes
1answer
283 views

Transcribing pdf into tikz code

How do I convert this PDF from a WASD keyboard layout into tikz code. Is there an automated way to at least extract the key outlines?
5
votes
1answer
533 views

Creating a seamless XOR symbol as node

I want to have a XOR node in my TikZ diagram, but couldn't find any available symbol, therefore made one myself, but I am not very happy with it. I used the example from how to draw XOR gate symbol as ...
14
votes
1answer
585 views

How to plot integral as summation, as pictured?

I'm new to TikZ and pgfplots but would like to know how to plot the square as well as how to plot the arrows + delta x as well as arrow + delta A: I'd be most grateful if some of you had some ...
5
votes
1answer
332 views

Decorate path with just a colored thick line

Is it possible to decorate a path with just a thick colored line above or below it? In the following example I faked manually the result, but how can I do it with decorations? In particular I want to ...
6
votes
1answer
902 views

Issue with mdframed package

mdframed package creates a beautiful box around the content. And it has the capability to break between pages as in the image below I have done the decoration of getting the concept 5 : algebraic ...
1
vote
0answers
270 views

error with tikz (bounding box) on ubuntu [closed]

I created a latex beamer presentation on my Mac OSX and there I included some pictures using tikz. Due to my job I migrated to Ubuntu and now I want to use that presentation with Texmaker (Latex via ...
13
votes
3answers
633 views

How to Reverse Clip on Custom Path Defined by Ellipse Intersections

Suppose I have two ellipses with known locations, major and minor axes, and rotation angles. What I would like to do is define a custom path that primarily uses one ellipse but follows the other at ...
6
votes
1answer
316 views

Uncover line segments of a TikZ graph in Beamer

In beamer, is it possible to uncover a sequence of connected line segments drawn in tikz? For example, in the following figure, I want to show the line segments in the third \draw one by one after ...
2
votes
1answer
537 views

TikZ background not working

I am drawing a block diagram with TikZ. While everything is working like a charm, I cannot draw in the background. My code is \documentclass{article} \usepackage{tikz} ...
20
votes
1answer
614 views

Which programming language is used by TikZ/PGF?

I've been playing with TikZ for while, and now I want to dig a bit deeper and produce some reusable components for future references. There are certain syntax that are used in many examples on TikZ ...
10
votes
1answer
3k views

How to rotate a node and text independently in Tikz

How can I rotate the text inside a node independent of the node in tikz? Right now I am using the rotatebox. The other option I tried was to have two overlapping nodes. Is there a better way to do ...
7
votes
3answers
371 views

Is it possible to store an array generating by foreach?

For example, I want to get an array with values sin(1),sin(2),..,sin(100) and store it to an variable. Is there a way to get this result by using foreach ? EDIT: A more complicated example: Drawing ...
21
votes
2answers
2k views

Recreating a logo (text around a circle)

My objective is to figure out how to put text around the circumference of a circle as shown below. I have read Calligraphic logo in tikz which answer part of my question but not completely as ...
17
votes
1answer
623 views

How to print section titles like tab-list?

Can I create a user manual with sections at the right like multi-tab? Like this: -- I think maybe I can template the page by tikz. (That will be very flexible if possible) so I added the tikz tag. ...
2
votes
1answer
202 views

Updating floating point number in animation

I'm trying to have an animated tikz graph with floating point values. While I can use floating point values as parameters for the graph, I can't seem to find a way to do so for displayed equations. ...
4
votes
1answer
338 views

How to automatically calculate parameters of a TikZ repeating pattern?

I am a beginner in LaTeX and TikZ, trying to make industrial documents, containing a series of terminal block whose wiring is shown in the MWE. I have to make a sereis of these dwawings. The envelope ...
3
votes
1answer
586 views

Fuzzy shadow + pattern with TikZ

When I try to run the following example from TikZ Manual for Version 2.10 on page 171 using TikZEdt, I get the following error: Package pgf Error: Undefined fading: 'circle with fuzzy edge 20 ...
2
votes
3answers
1k views

Animate Line / Path using Tikz and 'animate' package

I would like to animate the following path from A to B. \begin{tikzpicture} \draw [->, draw=black!70, line width=2.5] (8,4) -- +(1,0) node (v4) {} -- +(1,-2) -- +(0,-2); \node at (7.5,4) {A}; ...
3
votes
1answer
337 views

How to draw zig zag arrows at some particular locations in tikz diagram?

I want to draw a diagram like this: My tikz code is as follows: \documentclass{article} \usepackage{tikz} \usepackage[margin=15mm]{geometry} \usepackage{calc} \usetikzlibrary{matrix,arrows} ...
2
votes
1answer
298 views

Drawing delta-complexes (essentially labeled directed graphs) with TikZ? [duplicate]

Possible Duplicate: TikZ: How to draw an arrow in the middle of the line? How can I draw delta-complex diagrams like ones on this page from Hatcher's book: Source: ...
5
votes
1answer
551 views

Using TikZ to create a tree with root node at the bottom

Is it possible to draw a tree with the root node at the bottom? The image below demonstrates what I'd like, but is upside down. I've looked into similar questions, most notably How do I draw a B+ ...
11
votes
2answers
1k views

Is it possible to multiply the x coordinates of a plot by a certain factor using pgfplots

I have a pgf plot. Now the scale on the x-axis is at the moment frequency, hz, but it should be rad/s to save myself time exporting the file again is it possible to multiply the x-coordinate of every ...
10
votes
3answers
2k views

Tikz new shape : how to access/define anchors

I would like to create some new shape in order to use it with tiKz. The problem I'm front facing is how to access edged of the newly created shapes. So far I got this : ...
12
votes
1answer
2k views

how to draw a container box in latex around automata?

This is my tikz code : \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,shapes.geometric,arrows,fit,calc,positioning,automata,} \usepackage{amsmath} \begin{document} ...
7
votes
1answer
750 views

Timeline with automatized hours and minutes

Some time ago I've asked a question about Timelines, many solutions were given, but in the end I decided to go with TikZ and also presented my solution. But I couldn't have done it without Torbjørn ...
15
votes
1answer
390 views

xcolor black isn't black enough

I'm making a poster (using baposter) where I wish to include some microscopy images. To make the fluorescent signals stand out better, I changed the background of that cell to "pitchblack", which I ...
34
votes
5answers
10k views

Specifying the width and height of a tikzpicture

Is it possible to specify the width and height of a tikzpicture? To scale a tikzpicture I use the option scale, i.e. for instance \begin{tikzpicture}[scale = 2] ... \end{tikzpicture} I tried to ...
9
votes
1answer
1k views

Curved text (on multiple lines) within curved arrow using tikz

I have a curved arrow and want to put text inside of it (having the same curve as the arrow, of course). If the text is longer than the arrow, the text should be put on multiple lines (optimally with ...
2
votes
2answers
358 views

Pgfplot Automation tool

Are there any good graphical software that I can use to draw diagrams/graphs and export them as pgfplot code? For example, I want to create an histogram so I drag an histogram icon from a menu to the ...
8
votes
1answer
717 views

tikz-qtree: curved lines & multiple parent nodes

I am quite new to LaTeX, and I am stuck with a problem Google can't seem to help me with. Basically, I need some hand holding in doing something that is more complicated than my skills can handle at ...
6
votes
1answer
1k views

How to make different shape nodes in automata in TikZ?

This is my code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows,fit,calc,positioning,automata} \begin{document} \begin{tikzpicture}[shorten >=1pt,auto,node distance=7 ...
12
votes
2answers
4k views

Increasing TeX's main memory

I have a plot with a lot of measurement datapoints. I exported this plot from Matlab2tikz. When I wanted to compile this, it said that the memory was exceeded. Now I found this, How to expand TeX's ...
12
votes
2answers
536 views

Naming the nodes of `nodes near coords` for later use

I would like to use pgfplots command nodes near coords to get a list of named node ((no1), (no2), (no3) etc.) that I can use afterwards to draw some paths that I fail to construct with pgfplots only. ...
6
votes
3answers
3k views

Tikz: draw a vector pointing from one point to another

I have two points: \coordinate (A) at (1,2); \coordinate (B) at (13.2,-23.4); I would like to draw a vector pointing from point A to point B. The vector starts from point A, its length is other ...
3
votes
2answers
422 views

Overbracket with tikz square arrow style

I am trying to place text to the right of the brackets so that it doesn't overlap the equation. \documentclass{amsart} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{amsmath} ...
8
votes
1answer
207 views

How to build a trail of nodes from a path in tikz-pgf?

What I want: where the yellow line is the path to be transformed. The points inside the yelow line are the nodes after processing. The only way I found to do this is the intersection between a ...
3
votes
1answer
555 views

How to add label on arc of this graph?

In a previous question I enjoyed a beautifull graph How improve tikZ graphs arrows rendering? How can I add label on arcs produced by: \draw[arrow] (NodeName)--(OtherNodeName);
7
votes
1answer
567 views

tikz arrow outside tikzpicture environment

Is it possible draw an arrow in a tikzpicture environment so that the arrows goes outside the environment? Here's my specific scenario ... I have a verbatim environment (basically for program code) ...
2
votes
1answer
513 views

Alignment of nodes and scopes in tikz matrix?

I am trying to fix the positions of the arrows of the following diagram without much success. I would like the arrows to be centered (both horizontally and vertically) in the matrix cell no matter ...
6
votes
1answer
3k views

Position text next to rectangle in TikZ

Consider the following TikZ code: \filldraw[fill=black!40!white,thick] (0,1.5) node[above left] {start} rectangle (3.2,2) node[below right] {end} node [midway] {cp} ; It produces a rectangle at the ...
3
votes
2answers
97 views

why my pic was changed by un-used tikzstyle

In a joint file, my picture was changed by some un-used global tikzstyle, which is added by other. Here is a minimal example. The output dots become bigger if I un-comment the commented line. ...
2
votes
1answer
122 views

How can I shift ymin to zero when values are near to zero?

How can I shift ymin to zero when values are near to zero? I also try ymin=0 command but it does not work. \begin{figure}[h] \centering \begin{tikzpicture} \begin{axis}[ ybar, ymax=4, ...