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)

1
vote
0answers
19 views

tikz being mishandled by manuscriptcentral

I'm submitting a paper through manuscriptcentral. The paper uses tikz. Here is the code for one of those figures: %in preamble \tikzset{box/.style={draw, minimum width = 1.cm, minimum height = ...
0
votes
0answers
16 views

TikZ Calendar Example Fails: Undefined control sequence \@EveryShipout@Output

I just love the TikZ calendar at http://www.texample.net/tikz/examples/feature/calendar-library/a-calendar-for-doublesided-din-a4.tex . It compiles fine on my iPad TeX Writer with PGFPLOT 1.11 ...
1
vote
1answer
37 views

Tikz and figures in 3-space

How can I draw this in LaTeX? I can do with a lot of segments but I think that there is other easy way to do it. And how can I add this gray blackground to images that give that spatial view.
2
votes
1answer
26 views

Improvement of tikz code and color the cone

The following code produces (if you can call it like that) a sphere, a cone and the axis. \definecolor{uuuuuu} {rgb}{0.26666666666666666,0.26666666666666666,0.26666666666666666} ...
4
votes
2answers
62 views

tkz-berge, renumbering vertices

This TikZ code for drawing an icosahedron and labeling gives only a partial answer to my question. With the following code \documentclass{article} \usepackage{tkz-berge} \begin{document} ...
2
votes
0answers
28 views

Count the number of items in a TikZ foreach statement [duplicate]

One sometimes defines macro's for TikZ as: \newcommand{\foo}[1]{ \foreach \x in {#1} { %do something } } Thus where the argument given to \foo is used in a \foreach loop. ...
4
votes
1answer
36 views

Differences that implementation of `\node` and `\coordinate` have on display

Here are four TikZ environments to draw two parallel line segments. In all of the environments, one endpoint of the first line segment is specified with either \coordinate(A) or \node(A){$A$};, and ...
5
votes
2answers
174 views

Drawing Kano Model

I was wondering if someone can indicate me the easiest way to sketch the following picture. I started using the axis environment from pgfplots package as you can see from my code below, but then I got ...
1
vote
0answers
14 views

Paths of `pgfimages` in beamer templates

I am working on a beamer template for my institute in which I am using \pgfdeclareimage for images. I have quite a lot images and logos for different projects/experiments/groups and I organised the ...
0
votes
1answer
60 views

Not able to plot parabolas in an array

The following two TikZ environments should give similar displays. I am trying to get five graphs of parabolas, each on the Cartesian plane, and to put a label of a.), b.), c.), d.), or e.) at the ...
0
votes
0answers
12 views

Take input from csv file and use it to create a custom-made table in tikz

I have a csv file that looks like this: Scott, William, Todd,Esben, Martin, Jesper, Alexander W.L Right now, the names are written this line \aebuildtable{20}{Scott,William,Todd,Esben, Martin, ...
1
vote
1answer
16 views

fancyhead gradient doesn't match bg colour

I have a "fading line" from white to grey in my header. I wanted to add a page with a different background colour, and therefore fade from this colour instead of white. The problem is that the start ...
1
vote
1answer
41 views

move the “.10^-2”

Move it to the right so it will be aligned with the other yticklabels about 0.2cm or more Thanks \begin{tikzpicture} \begin{groupplot}[group style={group size= 2 by 3,horizontal sep =1.5cm,vertical ...
3
votes
3answers
125 views

Name tikz pic as if it was a node

I'm confused about tikz pics. I can freely define them without issue, and even add coordinates inside that will be available by name inheritance like (-A) as for example in \pic (S) at (0,0) {myPic}; ...
2
votes
1answer
23 views

plotting statistical data, putting years at the Xticklabel PGFplot

I want to plot these data and i can't figure out how to put the years at the X axis, I want to display all the years not a 5 year step. \begin{tikzpicture} \begin{axis}[width=8cm, x tick label ...
3
votes
2answers
65 views

Not able to plot a parabola

I am making a multiple choice problem. (Here, I display two of the choices.) I am trying to plot parabolas using pgfplots. Why is TikZ not compiling my code? I put a % in front of the parabolas ...
2
votes
1answer
22 views

Package pgf Error: No shape C_1 is known

I was trying to compile a latex code of a graph. However, I got many errors. It shows me Package pgf Error: No shape C_1 is known. The error appears for all the nodes in the Graph. Here is the code I ...
7
votes
5answers
466 views

Plotting the Cantor function

I would like to know if there is an (easy?) way of plotting the Cantor function (devil's staircase) using LaTeX. Doing it manually with TikZ seems like madness somehow and my knowledge of plotting ...
2
votes
1answer
21 views

setotherlanguage{arabic} makes inline-tikz not to be typset inline

\documentclass{article} \usepackage{fontspec} \usepackage{tikz} \usepackage{polyglossia} \setmainlanguage{french} \setotherlanguage{arabic} % comment that line, the problem disappears. ...
1
vote
0answers
25 views

Points in rectangular coordinate system - specifying coordinates as function values

I am trying to locate the vertices of a rectangle and to color the rectangular region. I specify the y-coordinate as a function value, like \sqrt{3}/2 or \sin(60). I am getting an error. ...
1
vote
0answers
42 views

tikz - drawing an edge that splits to reach two targets

I'm using tikz and want to have an arrow from one node that leaves and goes straight for a while and then splits into two arrows going to different nodes. Here is a picture I drew a while ago. I ...
3
votes
1answer
23 views

revisiting tikz text location within node

I'm following the answer I got here for a previous question about how to control text location within a large node in tikz. I would like a slanted box to surround 4 smaller boxes, and then ...
1
vote
0answers
45 views

PSTricks algebraic coordinates going from MikTeX to TeXLive

I am using PSTricks and some tikz functions for preparing some sketches. This snipped worked perfectly fine MikTeX on Windows 7 \documentclass[]{scrartcl} \usepackage{amstext} \usepackage{amsmath} ...
2
votes
1answer
35 views

mirroring antenna symbol in CircuiTikZ

I want to change the left to right antenna to right to left one as the receiver requires mirror image of transmitting antenna. This is my simplified code \documentclass[12pt,a4paper]{article} ...
3
votes
2answers
56 views

How do I make partially shaded nodes with tikz without hardcoding coordinates?

How do I make partially shaded nodes with tikz without hardcoding coordinates? A plain MWE is as follows: \documentclass{article} \usepackage{tikz} \begin{document} ...
4
votes
2answers
65 views

TikZ: Path creates redundant arrow head

The following LaTeX code creates a redundant and unwanted arrow head in the Measures block. \documentclass[border=10pt]{standalone} \usepackage{tikz} ...
3
votes
3answers
74 views

Labeling the intersection of two rays

I have the code for rectangle ABCD and two of its diagonals. I am trying to draw rays from adjacent vertices C and D, each of which is perpendicular to a diagonal, label the intersection of the two ...
1
vote
1answer
39 views

Tikzpicture: Setting fill color does not work?

I am working with tikzpicture to plot a few data points. I am trying to set the fill-color of my data points to something else than the default blue, but I don't see what I am doing wrong. I am sure ...
2
votes
2answers
79 views

Help me make my TikZ Petri net look nice!

I am trying to draw the following diagram in TikZ: My attempt looks like this (note the node labels are slightly different but that's not my problem!): My code is the following: ...
2
votes
1answer
28 views

Using \newcommand with ellipse in tikz

I want to use some constants, height and width, when creating an ellipse but it won't work with \newcommand. Here is a minimal example: \documentclass[12pt, a4paper]{article} \usepackage{amsthm, ...
4
votes
2answers
83 views

Drawing lines, with arrowheads, at arbitrary angles with respect to the positive x-axis

I am trying to get TikZ to draw two lines, with arrowheads, on the Cartesian plane. I have drawn a square, with gray edges, and I want the tip of the arrowheads to be on an edge of the square. In ...
0
votes
0answers
47 views

Wiring diagrams with pinout

I am trying to draw some wiring diagrams with the pinouts (see image below) possibly using Tikz. Do you know any package or example that could help me to do this? Particularly, the big boxes with ...
4
votes
2answers
62 views

Change style for empty/non-empty node content

Ideally, I wish would like a command \vertex such that it behaves as \vertex (a); ---> \node[empty vertex] (a) {}; \vertex[foo] (a); ---> \node[empty vertex, foo] (a) ...
2
votes
1answer
60 views

Tikz, can I have multigrids inside a table or matrix?

I'm in charge of a mini-shop in my dorm, we need some accounting system. People pay with credits. Usually it is done in paper, people take a beer and draw a line out from their name-row and the beer ...
1
vote
1answer
43 views

TikZ Decision Tree Diagram - Removing Extra Line and Circling Nodes?

I am working on a paper in LaTeX and I'm trying to insert a simple decision tree diagram using TikZ. However, I am not good with TikZ and I'm having two small problems with my tree. This is my ...
1
vote
0answers
26 views

Knot package: crossings lost again

Basically I have the same problem as someone else in the question Drawing knots with tikz - no visible crossings. I wanted to make a knot smaller and have thicker lines (thick or very thick): My ...
3
votes
2answers
76 views

Draw points inside or outside of a polygon (TiKZ)

Hello I have this plot and I would like to draw two points at coordinates (3,1) and (4,4) in colour red. \begin{tikzpicture} \begin{axis}[ title={Low capacity scenario (Scenary=2)}, axis x ...
0
votes
2answers
85 views

Creating dots/lines brackets in tree with Tikz

I am asking myself if I can create dots like the ones in the picture with tikz: Code \begin{tikzpicture} \tikzstyle{level 1}=[sibling distance=60mm] \tikzstyle{level 2}=[sibling distance=33mm] ...
2
votes
2answers
82 views

A right-angle mark not displayed properly

TikZ compiles the following code to display two lines that intersect at right angles. A small square, drawn in black, with edge length 3mm and with a vertex at the point of intersection, indicates ...
2
votes
0answers
38 views

svg package interfers with opacity

As soon as I load the package svg, tikz does not handle opacity any longer. Here, an example: \documentclass{article} \usepackage{tikz} \usepackage{svg} \begin{document} \begin{tikzpicture} ...
1
vote
2answers
69 views

How to create an annuity timeline on LaTeX

I was wondering, how can I create a timeline exactly like this one: on LaTeX? I am a Finance student, and write all of my notes using LaTeX. These timelines, are giving me a headache. Since we use ...
3
votes
1answer
39 views

Can we define a node's inner sep value with relative units in terms of the in-scope font key value?

Very often I find myself defining styles for various drawing annotations. This is great for structuring figures. There is, however, a minor thing I hope I can improve. This stems from the fact that ...
1
vote
0answers
30 views

Remove space between subplots

Is there a way to automatically remove the space between the subplots in a figure generated in Matlab and converted to tikz using matlab2tikz ?
0
votes
2answers
87 views

Better fitting line to node in TiKZ

I am using the automata library of TiKZ, and putting lines between nodes 18pt thick. The problem is that the border between the lines and the state do not fit well: I would like to have this ...
4
votes
2answers
91 views

Drawing lines, with arrowheads, at angles; clipping the display without losing arrowheads

The following code gives the graph of two lines on the Cartesian plane. (I specify the lines by the angles at which they are inclined with respect to the positive x-axis. I doubt the code that I ...
2
votes
2answers
89 views

How to center text in a ellipse and to draw circle nodes?

I have spend much time on this figure too and I have tried different types of tikz, pstricks and multido use packages. I would like to create a figure, which look like this: I have wrote following: ...
5
votes
2answers
116 views

How to add text and a more correct zigzag-line to a figure?

I have now spend hours by creating this figure - without luck. I have tried different types of tikz, pstricks and multido usepackages. My biggest problem is to add text, to add a more correct ...
0
votes
0answers
47 views

problem with compilation of the solution contain pgfplots package

I try to use this solution from Harish Kumar it's works fine when i'm using sharelatex but it doesn't work for my system here is log Os: windows 7 implementation of TeX: MiKTeX 2.9 Editor: ...
3
votes
1answer
59 views

A big arrow crossing several states in automata with TiKZ

I have six states in an automata drawing: \documentclass{article} \usepackage{tikz} \usetikzlibrary{automata} \begin{document} \begin{tikzpicture}[node distance=5cm,thick,every state/.style={minimum ...
0
votes
1answer
54 views

text break within tikz node

What is the reason that the following code is producing an error with text break (\\) \node (text_1) [draw=none, below=1cm of func, align=left, xshift=1.5cm,yshift=-1cm] { \begingroup ...