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)

2
votes
0answers
17 views

Tikz Picture in chapter title and spacing to to chapter body

The following minimal working example \documentclass[a4paper,11pt]{book} \usepackage{lipsum} \usepackage{color} \usepackage{tikz} ...
1
vote
0answers
17 views

How can I use TiKZ to design comments in the margin of an environment which allows a pagebreak?

To distinguish different classes of environments, I use the environment shaded from the package framed. Then, I would like to design a corresponding environment using TiKZ where a line with a ...
0
votes
0answers
29 views

Is it possible to generate tikz codes online?

I am new to using the tikz package and I want to draw the use Geogebra to draw pictures and generate tikz codes. Is it possible online, i.e., without downloading Geogebra? Can anyone tell me the ...
2
votes
1answer
35 views

Why scaling of arrow head works only for default > and not for latex, stealth, or other types?

I am following the answer here where it shows how to adjust the arrow head. It works, but only for default > arrow head. When I change it to latex, stealth or any of the other type of arrow heads, ...
1
vote
0answers
46 views

How to draw using Tikz

I am a latex beginner and I have seen lots of examples here that are beautiful works in TikZ. My problem is that TikZ requires some very precise values (like coordinates and sizes) and my only way to ...
2
votes
1answer
28 views

why is adding \catcode`\:=11 \catcode`\@=11 makes tex4ht fail to compile tikz picture?

I found interesting problem. In my tex4ht configuration file, I have the line that says \catcode`\:=11 \catcode`\@=11 It have been there forever. I think it was to solve a problem from this ...
2
votes
1answer
33 views

Putting a title on a pie chart

How do I put a title on the following pie chart? I tried using \stackon. \documentclass[10pt]{amsart} \usepackage{mathtools,systeme,array} \usepackage{tikz} \usepackage{adjustbox} ...
2
votes
1answer
19 views

Cropping a TikZ display

I have a display of two intersecting lines and a ray starting at the intersection of the two lines. I use path commands \path[name path = left.side] (-3.75,-3.75) -- (-3.75,3.75); and \path[name ...
4
votes
2answers
45 views

what is the correct syntax for using let in tikz picture?

I am looking at this answer But still can't get the syntax right. I have this example to draw a line of length 2 units, which works fine: \documentclass[12pt]{article} \usepackage{tikz} ...
7
votes
3answers
96 views

Shading areas in TikZ

It's an easy TikZ question for people who use it. I tried reading the TikZ manual p. 112 several times but it seems too complicated on the filling part, all the infinity and whatnot... So I currently ...
3
votes
0answers
84 views

How to draw the band of a sphere using tikzpicture?

I would like to draw a scattering experiment. For this purpose I need to draw the band of a sphere. It seems rather complicated and my basic tikz skills are sadly not enough. If somebody has an input ...
2
votes
1answer
80 views

Creating TiKz Libraries

How does one go about creating a TiKz library (is it even possible)? Is this a formidable task for a beginner? As a chemical engineer, I would very much like to have a library to create process flow ...
1
vote
0answers
44 views

Generate Tikz tree from filecontents

Is there an easy way to create tree nodes from data in a file? I need the tree to have nodes in the format 1,2,3,4 rather than 1,2,4,8 etc. I can't create the nodes in a loop as there would be two ...
1
vote
0answers
29 views

pgf-plot: y-axis shows comma instead of decimal point

The ticks of the y-axis have to be displayed with a decimal point instead of a comma. I have no idea how to do that. I'm using \usepackage[english]{babel} and even the commad \decimalpoint does not ...
1
vote
1answer
38 views

putting(-) sign in the axes and working out a graph in pgfplots

I need pgfplots to show (-) sign in the y axis, somehow it does not read it. \documentclass{article} \usepackage[margin=0.5in]{geometry} \usepackage[utf8]{inputenc} \usepackage{textcomp} ...
1
vote
1answer
56 views

PGF colorbar cuts off max value

I need to generate a whole load of colorbars with custom min and max values. From reading this SE I have managed to get this working: \documentclass{standalone} \usepackage{pgfplots} ...
0
votes
0answers
56 views

Connectivity Maps: A way to implement this efficiently with LaTeX?

I am interested in creating connectivity maps. While there are a wide variety of ways to handle this, I am particularly interested in a LaTeX-based method for handling this. Below is an example of a ...
2
votes
1answer
87 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. The problem with the generated TikZ ...
1
vote
1answer
33 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 ...
4
votes
1answer
78 views

Tikz: adjusting pin anchor

Old title: 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 question ...
0
votes
2answers
87 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
51 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
98 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
38 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} ...
14
votes
4answers
631 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 ...
4
votes
0answers
59 views

How to draw interlocking tori with Tikz?

I need to draw a couple of interlocking tori, as in the picture, using Tikz. I've been looking at some examples online and all I find is instructions to do it with Gnuplot, nothing about Tikz. If ...
3
votes
1answer
59 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
76 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
32 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
41 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); ...
4
votes
2answers
177 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
31 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
7 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
34 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
100 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
51 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
61 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
45 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
131 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
51 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
84 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
46 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
88 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
40 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
25 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
117 views

Create circuit using circuitikz

I don't know how to create circuit like the image in the attachment.
5
votes
1answer
38 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
55 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
114 views

Scenario Trees for Prob

Would appreciate if anyone help me draw this network? Thank you in advance.