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

avoid overlapping between line label and nodes

I'm using tikz to draw a info flow diagram which contains a few long labels. What I get is unacceptably ugly, mainly resulting from various overlapping between labels and shapes. Ideally, I want the ...
4
votes
2answers
178 views

Drawing a circular arc between two rays

I have two rays drawn with a common endpoint at A. I mark a point 3/7 of the way from A to the end of one of the rays, and label it P. I want to draw a circular arc centered at A through P between ...
3
votes
0answers
45 views

Batman Equation in LaTeX

I've tried to make the Batman Euqation in LaTeX. But I have a lot of problems. The code so far: \documentclass[border=10pt, tikz]{standalone} \usepackage{pgfplots} \usetikzlibrary{arrows,positioning} ...
3
votes
2answers
43 views

Creating a new command for commutative squares

I'm trying to define a command having as inputs the vertices and arrows of a commutative square. But I'm having problems. Here's the code: \newcommand{\csq}[8]{ \begin{tikzcd} #1 \arrow{r}{#5} ...
2
votes
1answer
32 views

Filling in with pgfplots and draw

I created the following polygon: \tikz \draw[very thick,name path=A] (0,15) to [out=0,in=270] (15,30); \draw[very thick, name path=B] (0,15) to [out=0,in=90] (15,0); \draw[very thick,name path=C] ...
4
votes
0answers
67 views

Font color is always black in mdframed

When building the MWE below in Linux (Centos, TeXLive 2013, mdframed=1.9b,2013/07/01) I get the expected red text on pale yellow inside red rounded rectangle in the body, and red on full yellow in the ...
3
votes
3answers
98 views

Diagram of a charged particle in motion in an E- and B-field

I need help with some vector in Tikz. I don't know how to put the place the angle between B and v! It should look like this (without the fat yellow q+ bobble): Here is what I have tried: ...
0
votes
2answers
75 views

Find cylinder tangent in 3D

I am trying to draw a complicated form that is loosely based on a half cylinder. I am using tikz-3dplot to be able to accurately draw arcs in planes other than the xy-plane and to nicely set the ...
0
votes
3answers
72 views

TikZ draw objects with fields

How can I draw using TikZ (or other libraries) something like this:
1
vote
0answers
41 views

pgf/TikZ: environment pgfinterruptclipping?

Is it possible to interrupt clipping? In other words: Does anything similar to the pgfinterruptboundingbox environment exist? I tried it with the pgfinterruptpath environment and am a bit surprised ...
7
votes
1answer
61 views

Static labels on rotating arrows in TikZ

Update after answer: After employing the very helpful answer below, my animation now looks like this, and all labels are "glued" in place. Thank you very much!* Original question: I have the ...
1
vote
2answers
20 views

Problem with Tikzpicture and \matrix

I need to write two words in each node for a tikzpicture. The probles is that the words are not displayed correctly [see the code below]: I want to write the two words inside a single node (e.g., ...
-1
votes
1answer
54 views

Spiral around cylinder [duplicate]

i want to draw a spiral around cylinder. Can you help me? something like that http://www.unitmath.com/um/p/Examples/GeometricSolids/Spiral.gif Thank you very much.
4
votes
2answers
107 views

This tikz-diagram has crooked arrows

Consider the diagram arrows in the following example: \documentclass[a4paper,10pt,psamsfonts]{amsart} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} ...
6
votes
0answers
64 views

HowTo: Tikz 3d Plot of an object

Hi I have problem with plotting an integration area. In the x-y-plane the area ist bounded by the polynoms 3x^2-1 and 3-x^2. In z-direction there are the limits z=0 and z=4-x-y. Now I want to plot the ...
4
votes
2answers
955 views

Lining up edges of a tree with TikZ

I'm drawing trees with TikZ and \begin{tikzpicture} \node {$C$} child[missing] child{node {$i$} child[missing] child{node {$j$}} }; \end{tikzpicture} produces edges that don't ...
10
votes
2answers
384 views

Esperanto flag in Tikz?

I have this code: \documentclass{standalone} \usepackage[html]{xcolor} \usepackage{tikz} \definecolor{verda}{HTML}{009900} \definecolor{blanka}{HTML}{FFFFFF} \begin{document} \begin{tikzpicture} ...
21
votes
5answers
480 views

Recreate the sphere in TeX.SX logo

I'm trying to recreate this But looking in this Meta question the only code provided doesn't give that output %!TEX TS-program = xelatex \documentclass{minimal} \usepackage{pst-solides3d} ...
2
votes
0answers
21 views

Draw axis line on top macro does not work with colorbar

I have a macro from here: Force "axis on top" for plotmarks in pgfplots Which allows me to draw the axis line on top of the markers. However, if I use it in conjunction with a colorbar, it ...
1
vote
2answers
94 views

How to increase resolution of a picture in tikz?

While trying to draw a parabola in tikz I used Geogebra. But the resolution of the picture is doesn't come out to be that great as is the case in using directly tikz. The code that Geogebra generated ...
1
vote
1answer
59 views

How to fit a Tikz picture into a tabularx cell?

I am trying to put a Tikz picture into a cell of a tabularx. The problem is that it doesn't fit in my cell. Here is the code : \documentclass[10pt,a4paper]{article} \usepackage[utf8x]{inputenc} ...
3
votes
2answers
108 views

Marking angles in a parallelogram congruent using TikZ

The following code is compiled to display a parallelogram with opposite sides marked with "|" and "||" to indicate congruence. I would like to mark the eight angles at the vertices similarly. I want ...
1
vote
1answer
221 views

tikzexternalize in TeXMaker doesn't work

I'm having some troubles while compiling my thesis with the tikz externalize feature in Texmaker. I created the user command: "D:/laTex/texlive2014/bin/win32/pdflatex.exe" -synctex=1 ...
3
votes
2answers
263 views

Tikz television screen

I've tried to improve my Tikz skills - I've tried to make a simple figure. I wanted to try the foreach function out. But I have some trouble with the arranging of the blocks. Here is the code: ...
5
votes
1answer
36 views

Why does \renewcommand not overwrite \includegraphics from tikzscale?

I have the following tex code \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{tikz} \usepackage{tikzscale} \usepackage{filecontents} \usepackage{graphicx} ...
0
votes
0answers
25 views

How to modify pattern of dashed line to not start/end with a space? [duplicate]

How can I force the pattern of a dashed line to be shifted/modified in such way that it does not start/end with a space? Simple example: \documentclass{article} \usepackage{tikz} \begin{document} ...
1
vote
1answer
25 views

Tikz: axis overlays markers

I am creating a simple graph having plots with markings. I use the decorations.markings library to create markers with a uniform distance between them. However, the markers close to the borders of the ...
3
votes
1answer
41 views

How to draw dashed horizontal line in sequence diagram using pgf-umlsd?

I am drawing a sequence diagram using Tikz. I first tried tikz-uml, but it has some issues which I asked about in another question. I am now trying out pgf-umlsd, but it lacks the support for the ...
3
votes
2answers
134 views

PSTricks equivalent to TikZ

Is there a way to make the grid in \psgrid look the same as the one in the tikzpicture? \documentclass[12pt,pstricks]{exam} \usepackage{tikz} \usepackage{pst-all} \begin{document} \psset{unit=0.5cm} ...
1
vote
0answers
30 views

Tikz-UML sequence diagram: how to extend lifeline and shrink vertical space before \umlfpart?

I am using Tikz UML to create a sequence diagram. How can I extend the lifeline of c:C and d:D to match the lifeline length of b:B? And how can I shrink the vertical space before the dashed line ...
4
votes
1answer
68 views

What is the easiest way to draw a graph with asymptotes using TikZ?

I have a graph with some extra graphics on it: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ declare function={ f(\x) = 4/(1+pow(\x/5, 2)); }] % partitions ...
5
votes
1answer
85 views

Draw zipf curve and luhn cuts with tikz

I'd like to draw a picture in latex, like the image below. I've tried to study the pgfmanual, but i couldn't figure out how to do it. Can anyone help me, please? ...
4
votes
2answers
146 views

my first animate project times out

The last few days I have been working on a visualization of the clark/park-transformation used in electrical engineering. It's look like this: This whole file is "dynamic", meaning that if I change ...
1
vote
1answer
220 views

drawing a 2D-plane

i need to draw this plane, but i don't know how can anyone help me? its important i need it in my master report. i try to use this from an old example to start with but it didn't work ...
5
votes
3answers
86 views

Center in standalone makes two-page document

I was trying to get a tikz automaton to fit on the page using the standalone documentclass to precompile the figure and then using \includegraphics[width=\textwidth{} (this is outlined at Tikz ...
3
votes
2answers
44 views

How to fix tikzpicture vertical position in beamer frame?

In the following MWE I have to frames with the same figure and some stuff below. It works but when switching from frame 1 to frame 2 the tikzpicture element is shifted producing a bad visual effect. ...
1
vote
0answers
44 views

\RequirePackage{tikz} in dissertation .cls file

I'm trying to edit the standard .cls file provided by my university towards dissertations to include TikZ pictures. I tried adding \RequirePackage{tikz} in the class file and separately, adding ...
10
votes
3answers
1k views

Circle made up of a looping squiggly line

I would like to create the following kind of diagram using TikZ/PGF: In words: a circle made up from a thick "random" squiggle. This squiggle style comes from David Mumford in his description of ...
1
vote
1answer
49 views

Venn diagrams with tikz: erase arc

Consider the following MWE, which produces the Venn diagram below: \documentclass[12pt]{article} \usepackage{tikz,pstricks,pst-jtree} % pst-jtree enables the \multiline \cr \endmultiline syntax ...
1
vote
1answer
37 views

Controling shapes of line connection

I was wondering how can I change the connection in red circle, so that it looks like the one just at its right, with a good symmetry : Here is my code: \documentclass[border=3mm]{standalone} ...
1
vote
2answers
122 views

How use the package TikZ with comment

I want to make the grid as this figure. Can you help me.
12
votes
4answers
6k views

TikZ (finite) grid with character in each cell

The code \begin{tikzpicture} \draw[step=0.5cm,color=gray] (-1,-1) grid (1,1); \end{tikzpicture} gives me a nice finite 4x4 grid. Now I want to center one character in each cell, how to do this? By ...
0
votes
0answers
27 views

Matlab2tikz axis bug

I am using Matlab2tikz with following test code: frames = [8, 16, 32, 64, 128]; mult = [1300 7300 17000 42000 88000]; add = [1400 7300 19000 45000 93000]; figure plot((frames),(mult), 'rd-', ...
31
votes
5answers
7k views

Script to automate externalizing TikZ graphics

Is there a script to automate externalizing TikZ graphics? (As suggested by Scott here)
2
votes
2answers
259 views

How to draw stacked rectangles (in a third dimension), but with the intersected lines clipped + grid pattern for each rectangle + shaded fill + text

As the title indicates, I'm trying to draw a figure (see enclosed example) which comprises of different rectangles that are stacked (after each other) in the third dimension. I tried different things ...
3
votes
1answer
49 views

Organizing automatons in boxes and add links between them

I have the following three automaton : I want to put them in boxes and add some link, such that I can get something like this: Here is my code : \documentclass{standalone} \usepackage{etex} ...
2
votes
0answers
24 views

PGFPlots colorbar incompatible with set layers

This is just out of curiosity. If I use the command \pgfplotsset{set layers} in conjunction with a colorbar, the plot is shifted on my page and the colorbar does not appear where it is supposed to. ...
0
votes
0answers
37 views

Convert tkz-graph code to TikZ

Among others, I use SAGE to generate graphs. The SAGE outputs graphs in the latex format, using package tkz-graph, which is a kind of macro package for TikZ for drawing graphs. I would like to use ...
3
votes
1answer
67 views

Tikz : how to write a vector composed of Feynman graphs?

I managed to write this : \documentclass[a4paper]{article} \usepackage{tikz} \usetikzlibrary{positioning,arrows} \usetikzlibrary{decorations.pathmorphing} \usetikzlibrary{decorations.markings} ...
4
votes
1answer
167 views

Help drawing an Electronic System with tikz

I have this Code: % Title: Block diagram of Third order noise shaper in Compact Disc Players % Author: Ramón Jaramillo \documentclass[border=10pt]{standalone} \usepackage{amsmath} \usepackage{tikz} ...