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)

0
votes
0answers
14 views

How to create custom bullets for table of contents using tikz in beamer

I am currently replicating a PowerPoint theme I am required to use using tikz and beamer. The only thing missing at this point is the custom bullet points that are used in the theme (see below). I ...
0
votes
0answers
12 views

How to get line width and inner sep values?

I try to get the values of line widths and node inner sep. How to read such a value form own style (if it will be specified during modifications of the picture) or if it is not specified in this ...
4
votes
2answers
37 views

How can I use \XeTeXcountglyphs\font in a pgf \foreach macro?

Problem I keep getting: You can't use `\XeTeXcountglyphs` in vertical mode. Attempt \documentclass{article} \usepackage{fontspec} \usepackage{pgf} \usepackage{pgffor} \begin{document} ...
4
votes
1answer
37 views

How to group 2 by 2 style this plot?

I have the following plot that say something about performance: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \begin{document} \begin{tikzpicture} \begin{axis}[legend ...
0
votes
2answers
99 views

wheel of emotions with tikz

Can you please show me How can I draw the wheel of emotions pluchik ? Like this:
4
votes
1answer
30 views

tikz: \pgfkeysvalueof and text color!

This tikz code automatically output a node with the y value on the plot... However, how can I colour the text black ??? (now it's blue) \definecolor{mycolor1}{rgb}{0.20810,0.16630,0.52920}% ...
3
votes
1answer
26 views

Loops in TikZ: Executing Subtraction in Math Mode

I learned today that I can execute a loop in TikZ, which makes my life a lot easier... but I'm wondering how to evaluate a numerical expression in math mode. MWE: \documentclass[12pt]{article} ...
4
votes
2answers
47 views

Setting west, east, north, south to position with tikzmark

I'm using the library tikzmark with usetikzlibrary(tikzmark). The following code \newcommand{\DrawCircle}[1]{% \begin{tikzpicture}[overlay,remember picture] \draw[color=red] (pic cs:#1) circle ...
3
votes
1answer
49 views

Diagram reuse across Beamer slides

In my dissertation defense presentation (Beamer/TikZ), I have a particular slide with a model, built as tikzpicture, wrapped in a scalebox block for zoom control. It works fine. However, I would like ...
2
votes
1answer
32 views

Strikethrough rows and columns in matrices

I've found this code from How to cross a row in matrix with a line? \documentclass{article} \usepackage{tikz} \newcommand{\pmark}[1]{\begin{tikzpicture}[overlay,remember picture]\node(#1)at ...
5
votes
0answers
32 views

How could one implement a divider-line for tikz-timing?

I'm using tikz-timing to draw timing diagrams. My last one is a bit super sized, so I was looking for dividers to enhance readability. Some HDL simulators and waveform viewers support that feature to ...
12
votes
2answers
355 views

Draw a car profile with TikZ

I have drawn a simple car with this code: \begin{tikzpicture} \shade[top color=red, bottom color=white, shading angle={135}] [draw=black,fill=red!20,rounded corners=1.2ex,very thick] ...
3
votes
1answer
55 views

How to create a variable number of arguments as PGF key?

Many interfaces use a variable number of arguments, for example in CSS margin:1pt 1pt 1pt 1pt The clip functions of the graphics package also have similar examples. Is this possible with PGF ...
0
votes
0answers
26 views

I do not know the key /tiks/graphs/grow down

LaTeX file: \documentclass[letterpaper]{article} \usepackage{tikz} \usetikzlibrary{graphs} \begin{document} \tikz [every node/.style = draw] \graph [grow down] { foo -> bar -> baz }; ...
4
votes
6answers
148 views

Drawing rectangle triangles with labels only in its sizes

I'm doing an exercise of Integral Calculus. The integral is $\int \dfrac{dx}{4-x^2}$. This integral can be solved doing $x = 2\sin\,\alpha$, and its solution is $\dfrac{1}{2}\ln\,|\sec\,\alpha + ...
6
votes
3answers
82 views

tikz, How to define a constant and then use it in drawing

For example I would like to do something like this r=2 \begin{tikzpicture} \draw (0,{2*r}) ellipse ({sqrt(r)} and {8/r}); \draw (0,{r}) ellipse ({sqrt(r/2)} and {4/r}); \end{tikzpicture} ...
2
votes
1answer
36 views

tikz / tikz-timing does not know arrow tip 'Triangle'

I'm using tikz-timing to draw timing diagram. It looks really nice, but I want to apply some optical improvements like changing the 'arrow tip kind'. So I added >=Latex[] to my tikztimingtable ...
4
votes
1answer
42 views

pgfplots - How to specify default line widths for plots and marker?

I would like to specify different default line widths for plots and for markers (like x-marker). For the plot line width, I use: \pgfplotsset{every axis plot/.append style={line width=1pt}} Yet, ...
3
votes
1answer
53 views

Draw and label arcs to label angles

I have written the following in LaTeX. I have trouble drawing and labeling all my angles (I want to label the angles in B, C, D and F. I have so far only managed to draw those in C (easier because ...
2
votes
1answer
24 views

How can I use a variable from xstring with the text along path decoration from tikz?

Issue How can I get proper text expansion for text=\somevariable in a tikz text decoration. I think I have an expansion problem here. Set \releasedate Extract year from \releasedate in ...
2
votes
1answer
38 views

How to define node / coordinate with perpendicular

How to define / save a point for later usage with x/y-coordinates of other points? I tried to use the perpendicular coordinate system shortform |- and -| but could not define points that way. In ...
6
votes
1answer
64 views

How to get vector graphics from Concorde program?

Back in around 2009/2010, my former colleague Libor Sarga (a beginner in TeX at that time), asked me if I could help him to get a vector form of his results obtained from Concorde. He was writing a ...
3
votes
1answer
66 views

Including a centered icon into a QR code

Some people like having a icon in the centre of their QR code... I want to use the QRCode library to produce such a QR code. For now, I'm using \documentclass[landscape,8pt]{minimal} ...
2
votes
1answer
52 views

How can I set the position of text along path in tikz more precisely?

Explanation It seems that nodes can be carefully placed on paths using pos=.25 (i.e. 25% from node BEGIN to node END) when using -- syntax (see Example A). Problem I cannot have the same precision ...
1
vote
2answers
41 views

How to use tikzpicture with tabular

I'm trying to place my graphs into the same figure vertically. However, I couldn't use tabular with tikzpicture to do it. \begin{figure}[] \begin{center} \begin{tikzpicture}[scale=0.9] ...
0
votes
0answers
52 views

Plotting piecewise functions with TikZ

I would like to use TikZ package in LaTeX to draw the following piecewise functions and their graphs: f:[0, \infty)\rightarrow \mathbb{R} such that f(0)=1, f(x)=0 if x>0; g:[0, 1]\times[0, ...
2
votes
1answer
63 views

Can anyone help in drawing this kind of graph?

Can anyone help in drawing the graph of the kind shown in figure with edge intersections? I struggled with pstricks and started to learn tikz but not able to do it. Kindly help as am not getting how ...
3
votes
3answers
84 views

Dealing with overlapping vectors tikz

The following produces undesirable output because the "tails" of the vectors are overlapping and hard to see. Is there a way to automate something better by having all vectors draw only 95% of their ...
1
vote
0answers
67 views

Recreating diffraction image with TikZ

I'd like to recreate the image below of an electron beam passing through -- and being diffracted by -- a carbon target onto a curved screen using TikZ. Unfortunately it looks a bit beyond my skill ...
6
votes
1answer
58 views

Custom Shape with tcolorbox/tikz

I'm trying to make a custom rectangle to surround my section headers. It's a regular rectangle with the upper-left and lower-right corners "cut" so they're diagonal. I want it to look like this: I ...
6
votes
2answers
70 views

How does the angle key from arrows.meta TikZ library work?

The title says it all. How does angle=<angle>:<first dimen> <second dimen> works. More exactly, what do the first length and the second length mean? \usetikzlibrary{arrows.meta} ...
3
votes
2answers
58 views

Draw Tikz Tree where level distance between multi-line nodes is constant

I am drawing a tree with tikz, namely, using tikz-qtree-compat for simpler syntax. On the tree there can be nodes of different height but then branches become messy. I want to add an instruction where ...
0
votes
0answers
28 views

Tikz help with chart. Trying to get a UML chart?

Can someone help me? I am trying to apply the following diagram in latex, and have tried to work with existing examples. The bubble map is one I created in Bubl.us. The problem is that I'm trying to ...
0
votes
1answer
46 views

Table and Tikz figure not displaying using this article template

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Journal Article % LaTeX Template % Version 1.3 (9/9/13) % % This template has been downloaded from: % http://www.LaTeXTemplates.com % % Original author: % ...
2
votes
1answer
53 views

Plots and chapterspecific colors

I have a color switching function that looks like this \definecolor{chap1}{RGB}{68, 114, 148} \definecolor{chap2}{RGB}{10,130,124} \definecolor{chap3}{RGB}{250,72,46} ...
7
votes
1answer
90 views

Why does \pgfuseplotmark put so much space to the left of the mark?

Using the suggestions from this answer, I decided to use \pgfuseplotmark to make marks in my diagram. However, there is some strange white space inserted to the left of the pgfmarks. What should I ...
5
votes
1answer
71 views

Problem with axis when drawing a function plot using PGFplots

Dear TeX StackExchange, I am trying to plot two functions in the same grid. The code I currently have is below: \begin{center} \begin{tikzpicture}[scale=1, transform shape] \begin{axis}[grid=both, ...
5
votes
2answers
84 views

Fixing the Font Issue in Venn Diagrams with Tikz Latex

I am novice when it comes to Tikz. I have three Venn Diagrams. Fore some reason the text inside the Venn diagrams start at the lower half of the node. Is there a way to automatically align/fit it to ...
1
vote
0answers
26 views

Minimize size of a figure (tikz - pgf) in LaTeX [duplicate]

I'm using MikTeX and WinEdt for writing an IEEE conference paper. To create a neural network structure I used this code : \begin{figure} \begin{tikzpicture}[ init/.style={ draw, circle, inner ...
1
vote
0answers
47 views

Alternating colors for stacked bar charts

I'm trying to make a stacked bar chart with two bars next to each other with different colors. I've based my code on discarding \addplot commands similar to this question, but even though I'm ...
1
vote
1answer
69 views

Table and Tikzpicture not displaying using this document class and paper style

How to modify the Latex code for the following table and tikzpicture so that the output will display properly using this document class. \documentclass[twoside]{article} \usepackage[sc]{mathpazo} % ...
3
votes
1answer
37 views

TikZ text not nicely vertically aligned

I use lines and text to clarify a TikZ figure. However if I use the same y-coordinate (in tthe example below 3) and offset (in this case 'above'), the text looks messy. How can I get the alignment ...
2
votes
0answers
58 views

please help me to draw this diagram bpmn

**please help me construction diagrams bpmn ** please help me construction diagrams bpmn %%% tikz-bpmn.sty %%%% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{tikz-bpmn}[2015/01/1 BPMN diagrams ...
5
votes
1answer
108 views

Drawing a circle and two of its tangent lines

I am trying to add some features to the plots of a circle between two of its tangent lines. The picture is a little "tight." I think that it would be appropriate to magnify it by a factor of 2. ...
2
votes
0answers
47 views

Draw a hemisphere (or just a segment of a sphere)?

Drawing a sphere is easy enough using the ball shading, or some more refined form as in How to draw a shaded sphere, but I would like a way to shade only one half (or even just slices). I currently ...
1
vote
0answers
35 views

How to construct block matrix with shadowed entries? [duplicate]

Is there a simple way of drawing matrices with shadowed blocks like the ones in the picture? I've tried something like Gonzalo Medina's proposal: %% with these packages loaded %% ...
0
votes
0answers
42 views

Is there a way to systematically ignore specific error messages?

When I compile my documents with a lot of trees, I often get the following error code: ! Dimension too large. <recently read> \pgf@xa l.1042 }} This error is due to some temporary ...
6
votes
1answer
115 views

Declaring sinc in tikz

I am trying to declare the sinc-function for usage in tikz. I tried two different ways: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{math} \begin{document} \begin{tikzpicture} ...
1
vote
2answers
77 views

Drawing an activation stack in LaTeX

I am trying to draw an activation stack. I am really bat at TikZ, so I hope you can help me out. As you can see, there are four boxes stacked one on top of the other. Each box has a name, put on ...
2
votes
1answer
23 views

Node syntax in matrix not working - possibly due to new version of Beamer/pgf

I am recycling some material from an old beamer presentation, and I find that code which used to compile just fine, no longer seems to work. I have replicated the problem in the code below, which ...