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)

5
votes
2answers
48 views

Autogenerate aliases based on scope

I want to be able to refer to nodes inside a scope from outside the scope by specifying their scope and name as in TiKZ node name prefixes in scopes The solution proposed there renames the nodes so ...
5
votes
1answer
28 views

How are pic text and options supposed to be used?

I'm trying to use pic text but it has no effect on my code. This is a Minimal Example: \documentclass{article} \usepackage{tikz} \tikzset{seagull/.pic={\draw (-3mm,0) to [bend left] (0,0) to [bend ...
3
votes
0answers
24 views

Connecting two nodes from different forest trees [duplicate]

I want to draw the following figure without pstricks: What I have is the following code: \documentclass{minimal} \usepackage{forest} \usepackage[external]{adjustbox} ...
2
votes
1answer
67 views

HowTo: 3D plot of a surface element with normal vector

I'm new to tikz, and I'm trying to visualize a surface element, something like In contrast to the example image above (which I referenced from the web), I would like to draw the surface element in ...
3
votes
3answers
154 views

Drawing two edges, one is missing an arrowhead

I'm trying to define two parallel arrows as a custom command in my preample as follows: \newcommand{\toto}{\mathrel{% \tikz[baseline] \draw[->] (0ex,.96ex) -- (3ex,.96ex) (0ex,.16ex) -- ...
1
vote
2answers
127 views

How can I create good looking integral paths?

I'd be really grateful if someone could inform me of a method to replicate the attached diagram for inclusion in LaTeX.
1
vote
0answers
55 views

Tikz - dynamic letter

I've got the task, to create a pattern for a letter or something else. It must have a perspective view like in this example So I think I've just managed to create something that looks nearly ...
3
votes
1answer
86 views

TikZ&Titlesec: complicated part design

I am trying to do the design as shown on the picture below. The background includes two layers: vertcal line pattern and gradient layer where is lower color is transperent and upper color is white ...
2
votes
1answer
77 views

How to conditionally draw nodes of a tree in TikZ

I want to draw several trees with tikZ (Version 2.10) which are very similar in the sense that there is a first tree and the others are obtained by ommiting some of the nodes of the first one. I ...
4
votes
1answer
45 views

reduce the number xlabels in a plot

I have a huge dataset which I'm processing using lualatex. (Normal compilation runs out of memory). The data cannot be sampled as it has some spikes (see figure). So I use the whole dataset. For the ...
1
vote
0answers
49 views

Formatting pgfplots bar graph with tabular* legend

When I attempt to change the size of my bar chart so that it sits centered above my legend, I can't get the height and width to simultaneously fit my specifications. One dimension is always too small. ...
5
votes
1answer
72 views

TiKZ pattern on an angle?

I would like a result similar to that provided by pattern = sixpointed stars (or fivepointed; doesn't matter), but where the underlying grid is at an angle. I understand this can't be done with the ...
1
vote
0answers
81 views

SIMPLE mindmap combined tree

I want to combine a simple mind map with a tree. First I tried to get something like the following mindmap from pgf manual p. 79: Thanks to @cfr, I could get the mindmap to work. Using the source ...
4
votes
3answers
137 views

tikz: mathematical expressions in variable names without pgf macros

Consider the following diagram: I would like to be able to evaluate mathematical expressions in variable names. For example I would like to be able to write (a$\i+1$\j) in this code to generate ...
14
votes
1answer
357 views

Intersection of 5 ellipses

I would like to fill the intersection of each of my 5 ellisses with the same color (black for example). It works very well with two. But with a third or more, I don't know how to "save" the first ...
1
vote
0answers
92 views

I do not know the key

I use: \documentclass[hyperref={unicode,bookmarks=true}, clock,fragile]{beamer} \usepackage{amsmath,amssymb,amsfonts, mathrsfs} \usepackage[utf8]{vietnam} \usepackage{tikz,tkz-tab,pgf} ...
1
vote
3answers
222 views

drawing simple sequence diagram

I need to draw this kind of simple sequency diagram, but I'm not very good with tikz: \begin{figure}[!ht] \begin{center} \begin{tikzpicture}[node distance=2cm,auto,>=stealth'] \node[] ...
3
votes
1answer
108 views

How to draw some lines between figures in LaTex

I want to draw the following figure. How do I do this? Some lines between figures, and Can you give me this lines some color? Some color lines in figure, as following:
0
votes
0answers
50 views

How to draw special avatar for me in LaTex [closed]

I want to design own avatar (logo) in LaTex. There are many cute logos such as baidu, google, facebook. I like these logos, Can you give me some suggestions about how to draw special logos?
5
votes
1answer
48 views

Inherit backgroundpath when declaring new shape in PGF/TikZ

I am trying to create some basic optic elements (a beam splitter in this case) to be used in PGF/TikZ. Well, since I am quite new to PGF/TikZ (and even LaTeX), there is something I am not quite sure. ...
2
votes
1answer
35 views

How to test whether pic text is empty in TiKZ?

If I wish to add a pin to a node in TiKZ, I can do so like this: \documentclass[tikz,border=5pt]{standalone} \begin{document} \begin{tikzpicture} \node [draw, thick, circle, minimum ...
4
votes
1answer
84 views

Indicating the differential on a graph

i would like to indicate on a graph the error in estimating f(x) using a linearization to the graph of f. To indicate the distance between points A and B, I would like a thin vertical line, with ...
2
votes
1answer
45 views

“Dimension too large” while working with serial date numbers

I export plots using matlab2tikz and pgfplots from MATLAB to TeX. Most of my plots contain "serial date numbers", which are the days since January 0, 0000. As you can guess, the numbers get quite ...
1
vote
0answers
61 views

Highlight a group of nodes in a tikz graph

Is it possible to extend the approach of the question: Highlight a group of nodes in a tikz tree to a generic tikz graph? In particular I don't have a graph in form of a tree, so I can't specify the ...
6
votes
1answer
400 views

Drawing coaxial cables: TikZ or pstricks

I want to draw this. I don't find any way to do I can draw some things... but it's so bad! and it's not realistic! please HELP... \begin{document} \newcommand\innenleiter[3]{% ...
1
vote
2answers
64 views

Plotting a composition of the logarithm function (base 10) and a linear function

What is the code to represent a logarithm to the base 10? I would like to graph y = log_{10}(3x + 1) on the interval [-0.1, 6]. I would also like to graph the tangent line to the graph at ...
1
vote
1answer
58 views

Drawing arcs on a number line

I found this code in an answer to this question here Help drawing a very simple number line using TikZ \documentclass[letterpaper]{article} \usepackage{tikz} \usepackage{amsmath} ...
2
votes
0answers
65 views

Raising a matrix of math nodes in tikz

I'm drawing a series of diagrams with many parallel edges, which I typeset with many instances of paths, yshifted as necessary. I'd like to use the same code for all diagrams, but some of them ...
2
votes
0answers
61 views

fancytikzposter damage pdf

I am using fancytikzposter, but for some reason that I do not understand the pdf file generated cannot be opened from another computer, here is my code that I got from here. \documentclass{a0poster} ...
3
votes
1answer
67 views

Custom labels for ybar plot?

I'd like to make a plot where data is arranged in bars, but each bar has a custom label if it is greater than a thousand. For instance, instead of 18,000 the label would read "18k" and for 50 million ...
2
votes
1answer
85 views

To make Question environment Discussion environment

About minimal thing developed originally mostly by Gonzalo Medina in earlier discussions of mine (one of them here) \documentclass{article} \usepackage[framemethod=tikz]{mdframed} ...
2
votes
1answer
59 views

Tkz Berge Vertex Labeling [duplicate]

I'm creating a graph with tkz berge, but I want my own labels, not the ones given by the empty ladder sequence. Is there any way to overwrite the tkz berge labels a_0, a_1, etc. and give my own? ...
5
votes
1answer
96 views

TikZ picture beside text with nested enumerate environments

I have a block of text which contains nested enumerate environments and I'd like to place a TikZ picture to the right of that text in such a way that the text does not overrun the picture. I tried ...
5
votes
0answers
27 views

Cannot use pgf-blur twice with XeLaTex

The following code \documentclass{article} %\def\pgfsysdriver{pgfsys-dvipdfmx.def} %this line does not matter \usepackage{tikz}\usetikzlibrary{shadows.blur} \begin{document} \begin{tikzpicture} ...
3
votes
1answer
54 views

How to make a vertex with math inside using tkz-graph?

Okay, my goal is to make a diagram like this in LaTeX: With the difference, that I want where you see dots or dots2, I want to have $\ldots$ displayed. I'm trying to get that working using the ...
2
votes
1answer
57 views

How to animate a sine curve in PStricks/Tikz

I would like to know how to set up an animations which consists of two "sub-animations" side by side or above/below, wherein one animation just shows a real number line from say zero to 2 pi one and ...
5
votes
1answer
88 views

Custom arrow tip example from PGF manual

The following code pasted from the PGF manual pag. 1025 does not compile on my end. \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.meta} \pgfdeclarearrow{ name = foo, parameters = ...
2
votes
3answers
148 views

A Block Diagram in Tikz

I'm trying to implement the following block diagram in Tikz.. I would post my attempt, but its fairly dismal at best. .
3
votes
1answer
72 views

Defining custom direct and inverse limits

I would like to define custom direct (a/k/a inductive) and inverse (a/k/a projective) limits, as used in category theory, for example. (Not the limit as used in calculus.) In other words, I'm looking ...
0
votes
3answers
350 views

How to draw Harish Kumar's avatar in LaTeX?

I want to draw the following figure. How do I do this?
3
votes
1answer
109 views

How to draw lettering on tile or ceramic in LaTeX

I know that LaTeX is able to do incredible things. I want to know how to achieve something like this: I need to draw an oval placard such as: But I have not idea how to do it. I'm not asking for ...
2
votes
2answers
78 views

TikZ: How to spread out nodes/shapes FBD?

Basically I'm trying to make a free body diagram with one main diagram and 2 separate force diagrams for ease of viewing and analysis. However, the two separate ones keep on overlapping on top of the ...
4
votes
3answers
211 views

drawing arrows on curves and shading regions in TikZ

I need to draw the following figure in my latex using TikZ. I did the following: \begin{tikzpicture} \draw (-2,0) -- (2,0); \draw (0,-2) -- (0,2); \draw (0,0) circle (1cm); \draw (1,-.3) node[right] ...
2
votes
1answer
69 views

How to change the following graph?

I have the following tikz picture I created: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}[auto=left,every node/.style={circle,thick,minimum size=5pt}] \draw node ...
3
votes
1answer
65 views

pgfplots - How can I set all the default line widths / thickness values to a certain value?

Upon discussion and examining a few printouts (by my own printer) of some pages of a document, I decided to try and change the line widths to another default value, e.g. semithick (a little increase ...
1
vote
0answers
63 views

Cube root function

TikZ seems to graph the cube root function with the code provided - on the positive x-axis. Why isn't TikZ plotting the whole graph? \documentclass[10pt]{amsart} \usepackage{tikz} ...
3
votes
2answers
125 views

Problem in TikZ with fancy contour around a chapter title

\documentclass[11pt]{book} %\usepackage{estructuraLibro} \usepackage[utf8]{inputenc} % Required for including letters with accents \usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs ...
5
votes
1answer
93 views

pgfmathparse inside tikz child doesn't work

Consider the following MWE: \documentclass{article} \usepackage{pgf, tikz} \begin{document} \begin{tikzpicture} \node {} child foreach \i in {1,2,3} {node {$\i$}}; \end{tikzpicture} \end{document} ...
3
votes
1answer
76 views

Differences between paths drawn between nodes and coordinates in tikz

Referencing this very helpful posts and the Tikz manual, which states: Whenever TikZ encounters a whole node name as a “coordinate,” it tries to “be smart” about the anchor that it should choose ...
8
votes
2answers
270 views

Vector field on a ball

I am not very skilled with Tikz. I am trying to picture two kinds of vector fields on the sphere $S^2$ in $\mathbb{R}^3$ using the Tikzpicture package. One going from left to right ($X(x_1, x_2, x_3) ...