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
2answers
42 views

How to align text and picture horizontally and vertically?

I am trying to align text and a picture horizontally as well as vertically. So far I have tried it using TikZ. I managed to get the effect alignment of the items in either direction, but not for both ...
2
votes
2answers
377 views

Logo hexagon in the form of a ribbon

I wish to make a logo like the one in http://math.et.info.free.fr/TikZ/aideLogoSite.html. But with a hexagon pattern as in the attached picture. It has no text, and it is better with two options: ...
0
votes
2answers
61 views

tikz picture with LFG architecture

I have a jpg file showing the LFG (Lexical-Functional Grammar) architecture which I would like to draw using tikz, so that I don't have to load the jpg into my pdf (which would result in quality ...
3
votes
0answers
21 views

luatodonotes and tikz externalization won't mix

Consider the following code: documentclass[11pt]{report} \usepackage{pgfplots} \usepgfplotslibrary{external} \tikzexternalize %\usepackage{luatodonotes} \begin{document} \begin{tikzpicture} ...
2
votes
0answers
31 views

Drawing a 3 dimensinal region

I want to draw a region in a 3D envirement. At the moment I'm doing this using tikz. The region is defined by the addition of a translation (1) and a rotation (2). The resuling region in 2D would be ...
6
votes
4answers
184 views

Relative node position

I am trying to replicate the very simple figure shown below Below is the attempt I have made \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} ...
1
vote
1answer
58 views

How to add a zoombox effect to different images?

According to link it is possible to create magnified subfigures and corresponding boxes for portions of a large image like this one: I would like obtain the same effect but with different ...
1
vote
1answer
25 views

Including a matrix of math nodes in a TikZ figure in a minipage in a landscape in an afterpage

I want to include a TikZ figure, containing a matrix of math nodes, displayed in landscape mode on its own page in my thesis, in such a way that the nominally surrounding text, which is in fact on the ...
0
votes
1answer
58 views

Drawing an array data structure using Tikz

I would like to implement the following pictorial representation of array using TikZ/Latex. Please provide some hints to go in the right direction.
1
vote
0answers
37 views

Bar graphs with tikz scientific axies=clean

I really like theaxis generated by tikz datavisualization with scientific axis=clean. However I can not find a bar graph visualizer in the documentation. Does such a visualizer exist? Or (even better) ...
3
votes
1answer
41 views

hatching table cells fails when using positioning

I'm trying to hatch some table cells by following the code here. It seems to work fine, but then when I change the positioning to \begin{table}[!h] the hatching stops showing up. The correct result ...
2
votes
1answer
82 views

How I can draw a semitransparent gray sphere shell with a hole using TikZ?

I need to represent a gray sphere of radius R with a hollow circle defined by a cone of angle alpha, and I have the cone part but I do not know how to draw the sphere .... I Have this: ...
15
votes
4answers
663 views

Faulty plot of logarithmic function

Trying to plot a log function, \begin{tikzpicture} \draw [->,>=latex] (-2,0) -- (5,0) node [below] {$x$}; \draw [->,>=latex] (0,-3) -- (0,3) node [left] {$y$}; \clip ...
1
vote
1answer
56 views

shift draw to the left

I need to shift the draw a little bit to the left \begin{flushleft} \begin{tikzpicture}[inner sep=7pt,node distance=.8cm,every text node part/.style={align=center}] \tikzstyle{block} = [rectangle, ...
2
votes
1answer
69 views

Problem with my chart in TikZ

Hello I hope somebody can help me. I would like to add arrows to the last two boxes "Prinzip" and "Verstellbarkeit" like the arrows to the other boxes. This is my Tex-Code: \documentclass{article} ...
1
vote
1answer
32 views

Get x and y labels for tikzpicture

I have plotted a scatter diagram with pgfplots: With this code: \begin{figure}[H] \centering \begin{tikzpicture} \pgfplotsset{ticks=none} \begin{axis}[ymin=0, ymax=10.5, ...
1
vote
0answers
37 views

Error in TikZ pgfplots that previously compiled

I'm trying to compile the following code with no luck. The odd thing is that it was working and then suddenly it is no more working (I edited something in the document and upgrade CSV files, but this ...
2
votes
1answer
36 views

How to avoid that stacked bars overlaps error bars?

I have a stacked bar chart with error bars that sometimes dips below the top part, which hides the remaining part of the error bar. (see both blue and red for x=5 and the red for all others). I want ...
0
votes
0answers
36 views

TikZ Animation in beamer class and mathematical formula

I'm using TikZ in documentclass beamer, so far, so good. But now I try to make an animation on one slide during the presentation. Until now, the animation works well (pdflatex and Acrobat Reader as ...
3
votes
1answer
63 views

How to draw a bubble column chart with a legend?

I am very new to plot in Latex, and am trying to piece together a bubble column chart with a legend and labelled axes. So far, I have a working chart, but can only get the legend or a labeled x-axis. ...
2
votes
1answer
35 views

Using titleformat* with tikzpicture (leaving horizontal mode)?

I'd like to use the same code as in Using tikzpagenodes with crop package? - except with \titleformat*, not with \titleformat. Why? Because in the original code I got with the template for my real doc ...
1
vote
0answers
46 views

tikzcd in 2.1 and 3.0

If I have a code written in 2.1 pgf version for tikz-cd and I install the 3.0 version, I could compile that code? I know some syntaxis has change, but maybe the latest version accept both.
1
vote
3answers
44 views

Using tikzpagenodes with crop package?

Using the code from Background margin fill for (first line of) section titles?, I have this MWE: \documentclass[10pt,twoside,openright]{book} \usepackage[ paperwidth=15cm, paperheight=20cm, ...
1
vote
2answers
40 views

Background margin fill for (first line of) section titles?

I'd like some of those "flaps" (how are these really called in typography, actually? Is it "thumb index"?) which is a bit of fill, extending to the margin; so that when you "bend" a book, you can see ...
2
votes
1answer
128 views

Strange defect on TikZ diagram

On one of Beamer slides for my dissertation defense I construct a TikZ diagram, representing my research software's workflow. It works fine with one exception: there is a "defect" on the east side of ...
2
votes
1answer
49 views

adding axes to shapes

This code: \begin{tikzpicture}[scale=2.0] \draw[fill=red,draw=none] (0,0) -- (0.3,0) -- (0.3,0.28); \draw[fill=green,draw=none] (0.3,0) -- (1.0,0) -- (1.0,0.28) -- (0.3,0.28); ...
3
votes
1answer
154 views

Is there a way to iterate over all defined colors without mentioning them again?

Situation Let's say I have defined some colors. I'd like to produce a test page that functions as a color-key for developers. Example The defined colors colora, colorb, and colorc should be ...
4
votes
1answer
43 views

generate labels for arrows in tikz

For my thesis I want to incorporate some Tikz images which make rather heavy use of labeled arrows. I was wondering if there is an efficient way of generating these, rather than defining them ...
5
votes
1answer
93 views

Help with a diagram in LaTeX

How can I draw this in LaTeX without colour (only black and white)? I managed to get my code to represent every part but I need the arrow in the middle \begin{tikzpicture}[sharp corners=2pt,inner ...
3
votes
0answers
49 views

guess a number proportional to another

This is a challenging question. I am not sure how to begin coding it, or whether it is easily possible in TeX. I wish to define a command that takes in input of a simple formula such as Z = X x N + ...
2
votes
1answer
45 views

Workaround for too many pages when using preview with pgf or tikz

The following document produces a PDF with two pages, while only one is called for: \documentclass{article} \usepackage{pgfcore} \usepackage[active]{preview} \begin{document} Text ...
2
votes
0answers
43 views

How to add label along the path in tikz?

I want to draw the following figure via tikz. I tried several methods (decorations, midway, etc.) to put the label word along the graphs of the functions, but failed. Here is my code ...
3
votes
0answers
49 views

Drawing arrows using tikz package (fine tuning coordinates)

I am making some lecture slides for my class and sometimes I need to label the different components of the C/C++ program. For this I have referred to the post How can I draw arrows within a listing to ...
4
votes
1answer
62 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 ...
2
votes
1answer
30 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 ...
5
votes
2answers
79 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
49 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 ...
-1
votes
2answers
186 views

wheel of emotions with tikz [on hold]

Can you please show me How can I draw the wheel of emotions pluchik ? Like this:
4
votes
1answer
39 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}% ...
4
votes
1answer
34 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} ...
5
votes
3answers
73 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
56 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
37 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 ...
8
votes
1answer
110 views
+50

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 ...
13
votes
2answers
443 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
58 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
28 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 }; ...
5
votes
6answers
166 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
85 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
41 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 ...