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)

2
votes
2answers
46 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: ...
1
vote
0answers
27 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} ...
0
votes
1answer
19 views

Tikz picture going out a tabularx cell

I try to put a Tikz picture in 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} ...
2
votes
0answers
27 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 ...
3
votes
1answer
51 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? ...
1
vote
0answers
27 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 ...
2
votes
3answers
31 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. ...
5
votes
3answers
75 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 ...
9
votes
3answers
398 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
38 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
32 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} ...
0
votes
0answers
22 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-', ...
1
vote
2answers
110 views

How use the package TikZ with comment

I want to make the grid as this figure. Can you help me.
1
vote
0answers
17 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. ...
3
votes
1answer
44 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} ...
0
votes
0answers
31 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 ...
2
votes
2answers
251 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
64 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} ...
3
votes
1answer
160 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} ...
3
votes
1answer
27 views

Commas in edge labels during for-loop in tikz

I am making a picture of an automaton where the transitions have comma-separated tuples for weights. This isn't a problem until I try to space out transitions in the same part of the graph using the ...
6
votes
1answer
290 views

How to make a postcard in LaTeX?

It should look like this: It should be a a4paper where the left half is a picture. On that picture should be a title in the font calligra. At the right side, there should be a text in the font ...
3
votes
1answer
48 views

How can I force LaTeX to do a break line using the pgfplots package?

I´m using pgfplots and tikz package to do some 3D graphs of some random functions, but it takes to much time to my computer to compile the tex file, so I want to create each groups of graphs in a ...
9
votes
3answers
420 views

Drawing a flag in LaTeX Tikz

Here is my code: \documentclass[tikz]{standalone} \usetikzlibrary{shapes,snakes} \usepackage[html]{xcolor} \definecolor{rot}{HTML}{e40303} \definecolor{xorange}{HTML}{ff8c00} ...
3
votes
1answer
47 views

Placing labels equidistant from a line segment (Version 2)

I have a display of similar triangles - one inscribed in another. I have five vertices that are labeled A, B, C, B_1, and B_2. Line segments BC and B_1C_1 are parallel with each other. I like the ...
2
votes
2answers
57 views

Labeling arrows with tikzpicture

I'm having trouble labelling the arrows. This is my code: \begin{tikzpicture} \matrix (m) [matrix of math nodes,row sep=3em,column sep=4em,minimum width=2em] { \underleftarrow{lim}A_{i} & ...
4
votes
1answer
68 views

Tikz out-degree not working properly [duplicate]

Changing the out-degree value in the code below doesn't seem to be working. The figure I get always has an out-degree equal to 0. Any ideas why? \documentclass{beamer} \usepackage{tikz} ...
1
vote
0answers
55 views

Placing labels equidistant from a line segment

I have a display of similar triangles - one inscribed in another. 2.5mm below one line segment, the labels C and C_1 are positioned. Actually, 2.5mm below the line segment, the centers of the nodes ...
3
votes
1answer
46 views

tkz-fct, babel and tabular compiling issue

I want to draw a function using pkz-fct and to save the picture with a "savebox" here is a minimal example : \documentclass[a4paper,10pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
4
votes
2answers
136 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 ...
4
votes
2answers
101 views

Tikz vertical lines next to variable text

I'm editing the caption of the Figure environment in a document using Tikz, but I don't know how to make the caption (variable width) to be next to two lines, something like this I guess the Figure ...
2
votes
3answers
104 views

Fill the Area between two “\draw” lines

I am trying to do something seemingly simple, but Latex keeps complaining. I want to draw two lines (not functions, just using the \draw command) and fill the area between them. Can somebody give me a ...
0
votes
1answer
63 views

How to make Gantt chart in latex using data from csv file?

I am trying to make Gantt chart in latex from data in csv file. Can I import the file into latex and use tikx or pgfgantt to make the gantchart without manually entering the values?
4
votes
1answer
46 views

Combining line chart data with bar plot

Context I recently got a paper published and was told that I need to convert the word file I submitted to latex for camera ready purposes. Problem is, I don't know LaTeX but I have always wanted to ...
5
votes
1answer
98 views

Tikz: two edges path connection

Is it possible to have a two-edge path, as in the picture below? \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \tikzstyle{status} = [rectangle, ...
3
votes
1answer
36 views

Tikz: multi-line vertically aligned node

Can I align these multi-line nodes vertically? \documentclass{article} \usepackage{tikz} \usetikzlibrary{ fit, positioning, matrix, } \begin{document} \begin{tikzpicture} \tikzset{ ...
1
vote
3answers
96 views

How to define coordinates in Tikz?

I'm having a hard time figuring out how Tikz decides how to map the 2d coordinates I give it to the area I've given it to draw in. Sometimes it seems like it will auto-size based on what I've drawn ...
6
votes
2answers
95 views

Skip drawing one of the borders in a shape with TikZ

I am drawing shapes with TikZ and I would like to selectively draw the borders around it: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=3., line ...
3
votes
1answer
51 views

Omitt some xticklabels

I am currently reading some data from a CSV-file together with the xticklabels as one column from that file: \pgfplotstableread[col sep=comma]{data/test1_d4.csv}\dataTestOneFour \begin{figure}[ht] ...
1
vote
1answer
36 views

Changing tick label size globally

I am trying to change the font size of the tick labels, but they won't react to \pgfplotsset{every tick label/.append style={font=\scriptsize}} This is because I create the tikz-file automatically ...
2
votes
3answers
28 views

Change line spacing in nested nodes

I tried to change the line spacing in a node nested to another. I have tried to use \linepsread and \baselineskip but both doesn't work. MWE: \documentclass[]{standalone} \usepackage{tikz} ...
3
votes
1answer
31 views

How to add node above pgfplot Y axis max?

I want to add some nodes (labels) above the max value of the Y axis in a pgfplots. I came with the following MWE: \documentclass{beamer} \usepackage{tikz} \usepackage{pgfplots} ...
5
votes
2answers
78 views

Recreating figure (fiddling around with arrows)

So I found this picture online an similar ones in a book and wanted to recreate them for my term paper. I'm not that skilled when it comes to TikZ and I'm always struggling with arrows and ...
3
votes
0answers
29 views

How to select a range of data within a .csv file in latex using pgfplots?

I am generating a plot of data using pgfplots in latex. I am using data from several excel files as .csv. Here is the MWE: \documentclass[border=5mm,convert]{standalone} \usepackage{pgfplots} ...
6
votes
3answers
199 views

How to create a tabbed box using TikZ?

I'd like to create a new style in TikZ for nodes with transparent background, rounded corners, with labels oriented vertically on their left on a opaque fill (similar to a tabbed paper). A sample ...
2
votes
0answers
59 views

How can I automate the plotting of step functions?

I'm using a lot of step functions in my master's thesis and would like to automate the plotting. I can get them to look just as I want by hand using this method, but when I try to automate it like ...
3
votes
1answer
48 views

Node placement, cycle, and scaling

In the simplest case, I have a square whose sides shall be labelled. Then I shift the square, either by manually adding an offset to the x- or y-coordinate of each point or using xshift and yshift. ...
1
vote
3answers
89 views

Tikz copying node handle

I am using foreach to draw a picture, and need the node handles for the previously drawn node and the current node. Precviously I used the following pattern to save separate coordinates: \node ...
2
votes
1answer
56 views

Centering a figure with caption (\centering not working)

I am having problems with centering my picture in a LaTeX document. I want to center the following picture: \documentclass[10pt]{article} \usepackage{pgf,tikz,geometry} \geometry{a4paper} ...
1
vote
2answers
42 views

Wide space between picture and caption

For some reason my v-space does not show up correctly! Does somebody know wy? \begin{figure}[h!] \centering \resizebox{.5\linewidth}{!}{\input{Figures/NIRS/Extinction}} \caption{Characteristic ...
2
votes
1answer
29 views

How to scale and color the *-plotmark in scatter plot using pgfplots in conjunction with a colorbar

What I have right now: \documentclass{article} \usepackage{pgfplots} \usepackage{pgfplotstable} \begin{document} \pgfplotstableread{ A B C 0 5 -1 0.5 2 0 1 7 1 1.5 11 ...