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)

1
vote
1answer
34 views

How to adjust float options of Tikz picture

I am trying to include several Tikz figures drawn in R, below eachother in a Latex file. It keeps including the figures at the top of new pages. Is there an easy way to make this work? The simple ...
3
votes
1answer
93 views

Bending arrows in tikz-cd

Following the advice of LaRiFaRi in an answer to this question, I switched from XY-Pic to tikz-cd. The file below contains my diagram in XY-Pic and in tikz-cd. Please help me to make my diagram in ...
2
votes
1answer
117 views

3d tikz picture wrong overlap

I would like to create this drawing: So with Tikz I use: \documentclass[a4]{article} \usepackage{tikz, tikz-3dplot} \begin{document} \tdplotsetmaincoords{75}{60} \begin{figure} \centering ...
3
votes
1answer
100 views

Shading to indicate the solution set to a system of two linear inequalities in x and y

I am trying to show graphically the solution to the system of linear inequalities \begin{equation*} \begin{cases} 7x + 3y \geq 21 \\ -x + 3y < -3 \end{cases} . \end{equation*} There are some ...
2
votes
1answer
60 views

Labeling axes using extra x ticks and extra y ticks

I am trying to write code so that TikZ will compile it to label the axes with x and y using extra x ticks= and extra y ticks= in the same way that TikZ will label the axes using xlabel=$x$, ...
1
vote
1answer
34 views

Determining the type of node displayed using the \addplot command

I have a plot of a rational function. I use \addplots to plot one point on it. TikZ marks the point with a diamond. I want to mark it with a dot. How do I specify the options to make the dot the ...
0
votes
1answer
42 views

Modifying some features in a scatter plot (Version 3)

Here is code that renders a scatter plot. There are only two typical modifications that I want. First, I want labels on the axes. In the axis environment, I have align=center,, ylabel = Number of ...
0
votes
1answer
95 views

Do I need to hand-code my TikZ pictures or is there an editor I can use?

With that said, I have tried TikZiT which does provide a minimal user interface for dragging elements, and creating edges. But it's quite hard to understand and I haven't for example understood how to ...
3
votes
1answer
41 views

Runaway argument using int() function in pgfplots

The MWE below yields Runaway argument? 3\pgfflt@EOI \ifpgfmathfloatparsenumberpendingperiod \pgfmathfloat@a@Mtok \ETC. ./TeX-SE.tex:29: Paragraph ended before \pgfflt@readlowlevelfloat was complete. ...
3
votes
1answer
73 views

How to reference an equation number within TikZ [duplicate]

I'm attempting to dynamically reference an Equation number in tikzpicture (via \eqref or \ref) using the following: % Filename: Test.tex (say) \documentclass{article} ...
3
votes
1answer
127 views

TikZ: Need help formatting a figure

The code in the previous response was terrific. Unfortunately, it created some new problems in my document that I didn't anticipate. I've pasted some updated code below to illustrate the problem. In ...
3
votes
1answer
116 views

Problem Causal Chain

I have been trying to make a causal chain, but I have two problems: 1) arrow should be a standard arrow without any curve "->". 2) There is a gap between the arrow and the boxes. My code look like ...
3
votes
1answer
99 views

How to add vertical space between two figures in tikzpicture environment?

I would like to add a vertical space between two figures in tikzpicture environment. I use this option to have y axis aligned. So, how can I add a vertical space between figures? ...
1
vote
2answers
31 views

How do I define a list of strings with the babel package and the ngerman option?

I try to make a pie chart, but can't get the labels right: This is the MWE: \documentclass{article} \usepackage[ngerman]{babel} \usepackage{tikz} \definecolorseries{colorser}{rgb}{last}{blue}{green} ...
1
vote
1answer
47 views

tikz pgfplots: basic named dots in coordinate system

I know the following is a basic misunderstanding (headscratcher) on my part. I just want to place a few named points into an existing graph. The following is an excerpt: \documentclass{standalone} ...
2
votes
0answers
74 views

Edge weights with TikZ graphs

I am using TikZ to draw graph, and want to add edge weights. I have seen some successful example like this. However, when I try to do the same thing, it doesn't work. Could anyone know the reason? ...
4
votes
1answer
70 views

Pie Chart with labels from list of strings with TikZ

This is my MWE (not that Minimum, I know): \documentclass{article} \usepackage{tikz} \definecolorseries{colorser}{rgb}{last}{blue}{green} ...
5
votes
2answers
284 views

Drawing a circuit

How can I create the following drawing? I want to add the following diagram to my report: I hear it can be done in LaTeX so I read some of ...
3
votes
1answer
84 views

List of strings for tikzpicture

at first my MWE: \documentclass{article} \usepackage{tikz} \begin{document} \def\johnlist{{ala},{bla},{cla}} % \def\johnlist{2,3,5,7} %This instead of the line above works... \begin{tikzpicture} ...
1
vote
1answer
58 views

Packages causes my code not to compile

The code runs fine until I add the two packages `\usepackage{tikz} \usepackage{pgfplots}` I am using TeXstudio 2.9.4. Here is a screen shot right after I run with the two packages. ...
2
votes
3answers
63 views

Special connexion with a node (TikZ)

I want to connect a rectangle with a circular node using an arrow, as in the picture below (to the right). The problem is that I have to specify very arbitrary coordinates (e.g. -2.97 in the code ...
3
votes
1answer
124 views

Draw dipole field lines

How to draw dipole field lines around sphere, like here: \begin{tikzpicture}[>=latex'] \tikzstyle{every node}=[font=\footnotesize] \draw [thick, red] (-2,0) -- node [below] {+} (2,0) node (v3) ...
1
vote
2answers
67 views

How can I make the loops fatter?

In this code, how can I make my loop fat? I know how to make it longer, but I want it wider as well. Please try to tell me using this code, and not new code. I'm new to tikZ and this is what is ...
2
votes
1answer
48 views

How to prevent rounded and duplicated tick labels in pgfplots with fixed precision?

I have a plot whose y axis is linear with fixed precision and without scaling. \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.11} \begin{document} \begin{tikzpicture} ...
3
votes
1answer
98 views

Cylinder , circle and plane

I would like to draw a cylinder , a circle and plane. Here is what I have so far: \begin{tikzpicture} \fill[top color=blue!50!,bottom color=blue!20! ,middle color=red!20!,shading=axis,opacity=0.6] ...
1
vote
1answer
91 views

How to draw a picture in electrical circuit diagrams in Latex?

Now, I'm having a electrical circuit diagrams, i don't know how to draw it's in GeoGebra, please help me, thank you.
1
vote
0answers
40 views

How do I place table below plot so that category matches axis ranges?

Here is something that I'm trying to do is to align my table with x-axis category or range so that column below the x range is corresponding of the data So As example is shown, I want to create ...
2
votes
1answer
57 views

Adding arrows to axes using pgfplots

Using axis lines=middle in the brackets after \begin{axis}, I can get arrows to appear on the x and y axes of a graph in the positive but not the negative direction. How do I add arrows in the ...
5
votes
1answer
96 views

Creating interactive plots in tikz with pop-ups

I'm trying to create a 2-d plot in LaTeX. I am facing two issues: I am using the ocg package to make the plots appear/disappear by clicking on the legend. It partially works as the markers in the ...
0
votes
0answers
29 views

Styling parts of a split node in Tikz [duplicate]

Using the following code, I can currently produce the simple first multi-part node in the image below. Is there a way to set the style for individual node parts such as a different background color ...
1
vote
1answer
29 views

A node not being typeset

I draw an angle of 30 degrees at the origin. The common endpoint of the two line segments comprising this angle is D and the other endpoints are E and F. I draw a dashed circular arc about F. I want ...
2
votes
2answers
91 views

Undirected Edges in TikZ

I'm trying to make undirected edges in my graphs, but I can't figure it out. Here is a sample code: \begin{center} \begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=3cm, ...
3
votes
1answer
51 views

Draw grid lines for grouped bar chart/diagram

Me again.. I have a grouped bar chart and I would like to add vertical grid lines for each group because with a smaller width all bars are too close to each other making it hard to look at. My MWE: ...
3
votes
1answer
64 views

Absolute positioning and blend groups in TikZ

In order to have absolute positioning of a tikzpicture (meaning, in terms of the "current page" node), we need to set the "overlay" option for the picture. It seems there is a conflict between this ...
3
votes
2answers
151 views

Drawing an arc of a circle centered at a point distinct from the origin

I draw an angle of 30 degrees at the origin. The common endpoint of the two line segments comprising this angle is D and the other endpoints are E' and F. F is at a distance of 4 from line segment ...
2
votes
1answer
59 views

Tikz arrow with custom end anchor [duplicate]

I'm creating a flowchart in Tikz, and I would like to connect two shapes using an arrow. The thing is, the arrow needs to end not at the centre, but rather around 80% from the left. Consider the ...
3
votes
1answer
72 views

Plots large number of data

As you all know, TikZ has to face the limits in terms of memory, that is given by the TeX compiler. For most of my plots, I have a maximum time step of around 1us and I record several waveforms over ...
3
votes
0answers
61 views

Problem to render blend groups with TikZ

I'm having trouble to blend colors with TikZ. The MWE below does not render the blend in my system. I'm on Windows Xp with MiKTeX 2.9 and the latest version of TikZ/PGF downloaded and installed from ...
5
votes
2answers
69 views

Shading applied only to the first element with foreach

I want to apply the same shading to multiple rectangles. Here is a MWE of the code I use (for a sample of 3 rectangles): \documentclass{article} ...
1
vote
0answers
44 views

Polar Coordinates Graph using TiKz [duplicate]

I have to create a Tikz picture of a limacon which is given in polar coordinates by the equation r = 0.5 + cos(θ) for θ between 0 and 2π. Note:makethe x-axis between 􀀀0.2 and 1.7 with a scale of 3 ...
1
vote
0answers
53 views

Why can't I plot (x+2)^{1/3} properly using pgfplots? [duplicate]

I'm using the code \documentclass{book} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ xmin=-5, xmax=5, ymin=-5, ymax=5, axis x ...
0
votes
1answer
102 views

elliptic abacus

I use abacus to calculate confidence interval in binomial when nf<5 or/and n(1-f)<5 too. My question is : is it possible to draw this with tikz or with another package? any advice? thank you ...
2
votes
1answer
52 views

Scale chevron chart with tikz and insert line break for text

I am creating a chevron chart using tikz and am having trouble with two issues: it is too long and going out of my document I figure that a change to the width (linewidth long) would also need a ...
2
votes
1answer
63 views

How to draw a diagram with the given semantic?

I need to draw a diagram similar to the following: The task is to draw a diagram with this semantics, not necessarily the same appearance. Note that in the above diagram $\sqsupseteq$ denotes a ...
1
vote
0answers
76 views

Drawing a solid angle vector/cone in TikZ?

I would like to draw a "solid angle vector/cone" pointing in a specified direction in spherical coordinates and having a specified opening size (dσ or a in the examples below), akin to the examples ...
0
votes
0answers
56 views

Interactive change of font color [duplicate]

I need any solution of the next problem: The font must change its color if a user clicks on block, text, hyperlink or something else. It would be great if it will not demand 2 compilations or more. ...
1
vote
1answer
58 views

TikZ: Move text a little higher

What do I have to change in the following definition, so that the text is a little bit higher? \newcommand{\header}[3]{% \begin{tikzpicture}[remember picture,overlay] \node [rectangle, ...
1
vote
1answer
90 views

Cover page : Tikz need explications

I so on this forum a very nice way to create a cover page with the tikz package, I understand globally what the functions doing but I want to understand every instruction. ...
4
votes
1answer
89 views

How can I draw an “arrow box” with curved arrows in tikz?

Tikz has a special shape called "arrow box". It is a box with arrows going out of it directly. But how can we change the direction of arrows in this shape? In fact, I need to draw an "arrow box" with ...
0
votes
0answers
81 views

Can we create Tikz graph which can be manually modified?

I am learning to use tikz, so pardon me if my question is too simplistic. We currently draw directed graphs of various networks (10-20 nodes, 25 - 30 edges) in ppt, and I feel that this manual ...