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
5 views

Tikz \filldraw command acting strange

I am attempting to plot a region in Tikz using data exported from a Mathematica RegionPlot. But the tikz \filldraw command is giving me a strange-looking output. I don't have enough reputation to add ...
1
vote
1answer
23 views

Problems when including diagonal line in a table cell

I am trying to use this solution which uses tikz, however I cannot get it to compile properly. I get the error: Misplaced \omit. ...llcolor[HTML]{EFEFEF}\diag{0.2em}{1cm}{a}{b} Searching for that ...
3
votes
0answers
21 views

Pgf .style args: optional named arguments with defaults

I was looking for a possibility to adjust the anchor of the text of a pin. Tikz does not allow this out of the box. This was already asked on the mailing list pgf-users@lists.sourceforge.net, Sept. ...
0
votes
1answer
40 views

Tikz internal storage symbol

I am trying to create a flow chart with tikz using the interal storage symbol (http://www.smartdraw.com/flowchart/flowchart-symbols.htm). My first tries ended up in: \documentclass{standalone} ...
0
votes
1answer
41 views

Rotate the shape to the right

I have drawn the following 3D shape in tikz. \documentclass[10pt]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{pgf,tikz} \usepackage{tkz-tab} ...
1
vote
2answers
71 views

Custom TikZ teardrop/infinity shape?

I am looking to replicate the figure shown in the image below. What is the simplest way to create the infinity-like curves and gray filled region of (c) using TikZ? Any tips would be appreciated! ...
2
votes
2answers
31 views

Labeling angles in a triangle

I've tried looking at past answers to this question but it won't seem to solve my problem. I want to label the angles ABD and DBC in this triangle: \documentclass{article} ...
12
votes
4answers
330 views

Tikz draw an accurate angle in a circle

Here is an illustration in which the angles are not accurately drawn. I want to know whether there is an easier way to draw an accurate angle within a circle, say $\angle ABD = 15^\circ$. Here is ...
3
votes
1answer
39 views

Putting braces indicating lengths in the foreground in a TikZ environment

The following code instructs TikZ to draw three lines on the Cartesian plane. I have a brace under line j between the y-axis and the vertical line \ell_{1}. It and its label interfere with the ...
4
votes
1answer
71 views

Positioning a node via using TikZ to calculate arctan(2)

In the following code, two lines are drawn through the origin. One has slope 1 and the other has slope 2. I want to label these lines j and k and put these labels at the arrowhead in the first ...
1
vote
0answers
31 views

TikZ: correct position for arrowhead when using partway modifiers

My question is a more complicated case of this one. I am trying to make the arrowhead of an arrow decorated with snake be well-centered, but using the solution suggested in the other question causes ...
2
votes
1answer
38 views

How to label the nodes ( coordinates ) in tikz picture?

\documentclass{article} \usepackage{tikz} \usetikzlibrary{quotes,angles} \begin{document} \begin{tikzpicture} %[scale=3] \draw (0,0) node[below]{$O$} circle (2); \coordinate (A) at (120:2); ...
3
votes
1answer
114 views

Draw Vector Operations

I would like to draw something like this: I need to display a lot of combinations of such operations, so my question - is there any effective way to draw such vector operations?
1
vote
1answer
29 views

Problem in puting text under \only in tikzpicture environment

In slide 2, I want to put a "text" (not "node") "Hello" (as mentioned in the code) to the left of the node "O.D.E soln". Not able to do that \documentclass{beamer} \usepackage[latin1]{inputenc} ...
0
votes
0answers
5 views

Problems with tikz on TexMaker in RedHat

I get an error ! I can't find file `pgflibrarytikzfit.code.tex' when I try to build a TeX file in TexMaker with Red Hat. The same things compiles perfectly in Ubuntu.
2
votes
2answers
32 views

add label at fit block top left corner

I wish to move the label at the top left corner of the fit block, but now it seems at the center. \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{positioning,fit,calc} ...
1
vote
1answer
97 views

Make TikZ figure with scenarios and arrows

Hi all I am wondering if it is possible to create something similar to this in TikZ, but I dont have much experience with it. Is there anyone who can give me a starting hand? Thank you in advance
1
vote
1answer
47 views

Error in reading csv file

I want to read this from .csv file but getting error Items, FactorLoadings Social Needs (Cronbach's a = 0.695) Smartphone allows me to stay connected with those I care about,0.758 I use ...
4
votes
1answer
60 views

Not the same scale for the fading and for the actual TikZ picture

In a TikZ picture, I want a white shaded rectangle to overlap perfectly a black rectangle. Here is a MWE of what I have done so far. (In the MWE, the shading is much more simple than the one I want to ...
1
vote
1answer
39 views

Modifying the text of labels for pieces in a pie chart

I have nodes to place in a pie chart. In each case, the percentage is to be put on its own line. I tried using // to do this, but it only removed the space between a word in the label and the ...
3
votes
2answers
127 views

How to create this coordinate system?

I'm currently working on a term paper / lecture notes for my electrical engineering professor and wanted to include the following coordinate system / graph / figure in my paper. (The image should be ...
6
votes
1answer
47 views

Custom area legend image not working

I'm trying to use the result from a fill between as a legend entry, but I can't get it to work: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \usepgfplotslibrary{fillbetween} ...
3
votes
1answer
77 views

How to draw randomly spaced square wave

I am new to tikz and am not familiar with nomenclature so please excuse my raw expression here. I need to say a non-periodic square wave. I saw this post How to draw a square wave? which talks about ...
6
votes
2answers
81 views

Plotting using \pgfmathdeclarefunction and the factorial operator in TikZ

I am trying to draw a diagram that has a negative-binomial distribution in it. I am trying to do this in Tikz. Here is a minimal working version of that code: \documentclass[landscape]{article} ...
1
vote
1answer
43 views

tikz picture inside beamer frame

I was trying to put this code from tikz official page into a beamer's frame and got this error: /home/.../file.tex:100: Illegal parameter number in definition of \test. <to be read again> ...
4
votes
1answer
86 views

Monotony table and signs

\documentclass[10pt]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{pgf,tikz} \usepackage{tkz-tab} \usetikzlibrary{shapes,snakes,arrows,backgrounds} ...
2
votes
2answers
39 views

How to find coordinates?

By using intersections command I was able to make effect the line $\mathcal{P}_{t_{1},\gamma}$ is dotted outside of the set. However, I am curious if I can take a certain point on this line, for ...
3
votes
0answers
23 views

Using tikzexternalize and LuaLaTeX leads to display problems in viewer

I am using the following code \documentclass{report} \usepackage[ngerman]{babel} \usepackage{lmodern} \usepackage{tikz} \usetikzlibrary{external} \tikzset{external/system call={lualatex ...
1
vote
3answers
112 views

Create circuit using circuitikz

I don't know how to create circuit like the image in the attachment.
5
votes
1answer
36 views

Setting global styles for elements in tkz-euclide

Is is possible to set global styles for elements when using tkz-euclide? (I have a document with many TikZ figures in it and I want to be able to set different styles for different groups of lines, ...
0
votes
0answers
54 views

Drawing curves with nodes

I can use tikz for drawing graphs with straight edges or a few curved ones (for flowcharts). But now I need to draw the following graphs (and many more complicated versions of these). How do I do ...
1
vote
4answers
113 views

Scenario Trees for Prob

Would appreciate if anyone help me draw this network? Thank you in advance.
0
votes
1answer
26 views

Ignore \pause (from tikz) in scrartcl

I'm bulding up a beamer presentation and an article. Therefore I have to create some figures which are used in both files. So I created an additional .tex file for each figure which I include in every ...
1
vote
1answer
25 views

Text added after and outside the tikzpicture environment lies on top of the image

I have added a rectangle using the tikzpicture environment. But whatever text is added after and outside the environment lies on top of the image. I've been searching for a solution but haven't come ...
7
votes
3answers
126 views

Tikzpicture curvature in path issue

I have written the following code: \begin{tikzpicture} \draw[->] (-1,0) to node [auto]{$f$} (1,0); \draw (-5,-1) node(0)[label=below:{$v_0$}, circle,fill=black,scale=0.3]{}; \draw (-2,-1) ...
2
votes
1answer
55 views

Help with Help Lines

I am plotting lattice paths to two points. I would like to have help lines drawn on top of the Cartesian plane so that any line that is an integral distance from an axis is a solid line and any line ...
2
votes
1answer
58 views

Infographic - need help!

Infographics enable us to communicate incredibly large sets of data in a way that is interesting, meaningful, and engaging to others. I have been trying to create a simple Infographic with TeX - ...
0
votes
1answer
35 views

Align axes across subfigures

How can I align the y axes of subsequent subfigures horizontally? Like in this test case: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \usepackage{subcaption} \begin{document} ...
1
vote
1answer
34 views

how to save and reuse values between two tikz pictures

I have two pictures in the first, I calculate the angle of a vector, I wish reuse this value in the second figure. How can I save this value from one figure to another. The first picture ...
1
vote
0answers
39 views

TikZ align nodes with different heights

iam trying to make a treeview with tikz of the different hazards modes that exist with lithium-ion batteries. now i have the problem that some nodes have a text with two lines and then it doesn't look ...
1
vote
0answers
40 views

Automatically Diagram Pointer Structure with TikZ

Suppose one has a program with many data objects that have pointers to other objects. How could one use TikZ to automatically draw a diagram of the pointer structure? I'm thinking of outputting the ...
0
votes
0answers
20 views

External TikZ and eskdx issue

I am trying to make TikZ externalization and I have an issue that draws eskdx page frame on every external plot. Here are a minimal example that reproduces this problem ...
2
votes
4answers
118 views

How to draw a circular and a spiral line between two vectors

I'd like to do the next graph: (Sorry for my terrible draw!) I pretend the red line to be a dashed black spiral line, and I'd like the blue line to be a dashed black circular line. What I've got ...
7
votes
1answer
179 views

Simple drawing with TikZ

Let's me begin by saying that I am a complete newbie. I have been trying to draw te following image but didn't get very far: The following is what I have so far: ...
4
votes
1answer
37 views

Line is not centered between edges of nodes

I have this small tree and I want to draw a line between the edges from node A to node B. \begin{tikzpicture}[scale=0.8, level distance=1.5cm, every node/.style={draw, thick, rectangle, minimum ...
2
votes
1answer
41 views

Plot groups of stacked bars

I am using the following code to draw a bar graph with groups. But I'd also like to subdivide some of the bars, shading in at the bottom. So for example, I'd like the leftmost bar to have up until ...
6
votes
3answers
100 views

Imposition for an 8 page booklet using pgfpages

I want to prepare an 8 page booklet by imposing the 8 pages, four at a time on a larger sheet of paper. The front side will look like this: and the back will look like this: When printed ...
2
votes
1answer
36 views

Object juxtaposition by path command in TikZ

Here is my successful attempt to arrange ten circles in a circular formation by \foreach command: \begin{tikzpicture}[scale = 0.5] \foreach \x in {1, ..., 10} \draw[yellow] (\x * 36:10) circle ...
1
vote
1answer
29 views

`every loglogaxis/.append style` not working in PGFplots

I'm trying to apply to scientific notation as constructed in Number format of ticks in log log axis won't change to scientific notation `a x 10^b`, 'a' real, 'b' integer to all ...
4
votes
2answers
278 views

The arrow in my figure is not appearing correctly. What is the mistake?

I am trying to compile the following code to get a standalone pdf output to use it in another document. \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) ...