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
1answer
60 views

Using \foreach to manage ticks in axis, Tikz

I want to add minor distance between y ticks. The default distance is 0.5, I need to set for 0.2. It seems easy to set different space for ticks according to pgfplots, in 4.15, page 271. I add the ...
2
votes
1answer
68 views

draw side by side graphs and make them more clear

I have two problems and sincerely I am trying to resolve them, but unfortunately I am not able...That is why I will appreciate very much your help. 1) My article architecture consists of two columns ...
6
votes
1answer
77 views

tikz and polar plot

I am completely lost with this problem : I want to plot some polar curve. Here is something that works : \begin{center} \begin{tikzpicture}[xscale=1,yscale=1] \draw[thick,->,>=latex] ...
6
votes
1answer
84 views

Using TikZ path as hyperref link

In the following example, clicking the text on the two blocks will take us to either the second section or a piece of text within that section. I would like to be able to navigate using the edge ...
2
votes
1answer
133 views

drawing arrows on a circle path and a tangent arrow in tikz

I would like to draw relatively complex paths in tikz. This is an example: The boxes represent nodes with texts of different lengths. The arched arrows should be on a circle path. The arched arrow ...
6
votes
2answers
385 views

How to put one circle over another?

This is my code: \documentclass[tikz,12pt]{standalone} \usetikzlibrary{patterns} \begin{document} \begin{tikzpicture}[line width=1.5pt] \coordinate (A) at (2,2); \coordinate (B) at (2,1.2); ...
1
vote
1answer
66 views

Tikz: increase arrow head size

Given the Tikz example here http://www.texample.net/tikz/examples/double-arrows/ how do I increase the size of the arrow head? I'd like to make it way bigger but, after manipulating the code, I was ...
2
votes
0answers
53 views

How to make a line break in a TikZ matrix cell?

Can I use TikZ's own tools to make a line break in the matrix cells or do I have to use a tabular-environment or a \parbox? MWE (doesn't work, I included the faulty code) \documentclass[ 11pt ...
3
votes
0answers
85 views

pgfplots: unable to affect cycle list name while using \pgfplotsinvokeforeach

I am unable to use custom colors from cycle list name with pgfplotsinvokeforeach. Some pointers could be gauged from this post, which discusses execution of various steps in a plot function. In the ...
0
votes
1answer
38 views

How can I have a node spanned over multiple columns push to its cell borders' borders?

I'd like to have the (big) node with Long text long text span from the very left of cell m-2-2 to the very right of cell m-2-5. How can I achieve that? MWE \documentclass[ 11pt ]{scrartcl} ...
2
votes
3answers
80 views

Different xlabels for same x values on different plots

I have two tables that hold different values for the same x values. To compare them, I want to plot both of them in the same plot but with different xlabels. The tables should remain the same, i.e. I ...
4
votes
2answers
89 views

hline inside a TikZ node

How can I draw a horizontal line inside a TikZ node? I want the name of the state to be seperated from the rest of the node. How can i achieve this? \documentclass[tikz,border=2pt]{standalone} ...
5
votes
1answer
62 views

Vertical alignment of text in node spanned over multiple matrix columns

The problem with the following MWE is that I don't understand why the text in the big node isn't aligned in the center (vertically speaking). How can I do that? Picture MWE \documentclass[ 11pt ...
4
votes
2answers
160 views

Draw arrows to show multiplication pattern (distributive property)

Based on this question: How to draw arrows between parts of an equation to show the Math Distributive Property (Multiplication)? I got some nice tools for illustrating to my students how to find the ...
2
votes
1answer
75 views

How can I position a PDF inside a tikzpicture?

I know that the following can't work. I want the PDF to sit at {X}. \documentclass{article} \pagestyle{empty} \usepackage{tikz,lmodern} \usepackage{pdfpages} \begin{document} ...
0
votes
0answers
38 views

putting rectangle inside tabular environment [duplicate]

Someone can help me to do like this exemple :
2
votes
0answers
77 views

Tikzpicture highlight on matrix in different slides

I am new to latex but I have to make a presentation in university with it (or more I want to do the presentation in LaTeX). But I am struggling with the package tikz. So my first question is ...
4
votes
1answer
109 views

Using modulo operation to draw graph

I have a graph that consists of x and y from Z/11. Is it possible to programmatically draw the lines that have a slope of 2? Like from (0,0) to (5,10) and (6,12) would become (6,1) because of modulo ...
2
votes
1answer
51 views

Getting error while using top, and right braces in a listing

I am showing right and top braces, whereas while attempting to add overbraces using a new function called 'AddNoteOver', I am getting this error: "Package tikz Error: + or - expected ...
7
votes
3answers
173 views

drawing points coordinates in a graph

I need to draw points coordinates in a graph. In my case, the problem is that the values of the x-axis and y-axis of each point can be very large. That is why I need to edit the code below in order to ...
4
votes
2answers
95 views

Drawing a peer-to-peer communications model in Tikz

I would like to draw an image illustriting peer-to-peer communications in Tikz. I have previously drawn flowcharts with relative ease based on the Simple Flowchart Example. Here is the image that I ...
5
votes
1answer
65 views

Magnify part of picture with TikZ spy, expressed in relative scoped coordinates

I want to magnify part of a picture with the TikZ spy library; however, with a scope for using relative coordinates like in #9561 Drawing on an image with TikZ. Provided I'm using the image tux.png - ...
5
votes
1answer
68 views

Why does this \pgfmathparse not work outside the \foreach loop?

The LaTeX code below builds in Sublime Text 2 and gives the results: 7, -3.0, 4, -9.0, 11, -9.0, 1, two, 3.0, IV, cinq, sechs, 7.0, But it gives the following errors when I remove the % ...
5
votes
1answer
75 views

trouble getting Tikz matrix to compile

In advance of a summer class I'm teaching, I decided to try compiling my notes, which I haven't touched in any way, shape or fashion for 4-5 months. However, in that interval, I've updated laTeX ...
3
votes
1answer
55 views

ybar overlaps axis line (and xtick removal)

When I use the MWE below my bar plots are overlapping partly the black x-axis How is it possible that the bar graph starts exactly above the x-axis and not on top of it? And is there a way to ...
6
votes
1answer
43 views

Node centered instead of flushed right

Why the this three nodes are centered instead of be flushed right ? \documentclass{article} \usepackage{tikz,fourier} \begin{document} \xdef\LW{.99*241pt}%\linewidth \xdef\BLS{\baselineskip} ...
3
votes
1answer
60 views

How to generate a series of \paused stand-alone TikZ images?

I've built a beamer presentation in which a TikZ graph is built up sequentially using \pause. Example: \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame} ...
5
votes
1answer
123 views

How can I get the borders of contiguous nodes to perfectly overlap?

Why aren't the vertical borders of my nodes overlapping, as the horizontal ones do? How can I force them to overlap (thereby preventing the vertical lines between nodes from looking stronger) and ...
14
votes
1answer
239 views

Expanding a Tikz rectangle to fill remaining text width

I would like to place a shaded rectangle between the left and right footers, which fills the space in-between. The left footer can be of variable width, so I would like the rectangle to automatically ...
9
votes
2answers
109 views

pgfplots 3d cylindrical coordinate system

I am trying to plot a cylindrical coordinate system using pgfplots. The idea would be to plot the r,theta plane similar to what polaraxis provides, see here. I don't know how to translate something ...
2
votes
0answers
89 views

Creating and importing custom tikz symbol

I created a custom symbol switch and I wanted to include it in my block diagram, by using the node command but it failed (compile error). Here is what I did: \documentclass{article} ...
7
votes
3answers
164 views

How to arbitrarily center these drawings?

I have adapted the following to draw lines from the center of a circle out to n equally spaced points on a circle (the n th roots of unity, or the points of an n-gon, or a star graph). I need to be ...
7
votes
1answer
174 views

How to retrieve color from a specific location and use it?

Please save your time and energy on this question, this is not an important one. What's the color in the middle (or anywhere else) in these pictures? How to retrieve/compute that color to be ...
0
votes
1answer
62 views

Problems labeling an arrow

Having this in the preamble: \usepackage{tikz} \usetikzlibrary{chains,shapes.multipart} \usetikzlibrary{scopes} \usetikzlibrary{decorations.markings} \usetikzlibrary{shapes,calc} ...
3
votes
2answers
109 views

Arrow indicating cycle between two pictures using TikZ — missing arrowheads

I'm trying to draw two arrows that should indicate that a neural network cycles between two states. Following the tutorial for the Petri net, I used pgfonlayer, fit and a scope to align two networks ...
2
votes
0answers
52 views

Using “fit” in block diagram [closed]

I was trying to surround two nodes in a dotted box, but nothing appears. Here is my code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes, arrows, fit} \begin{document} ...
12
votes
3answers
524 views

Spherical triangles and great circles [duplicate]

I want to draw an image of a non-shaded sphere (just a circular border) with three intersecting great circles that are solid on the visible side and dashed on the back side. Further I want to be able ...
3
votes
1answer
88 views

Extra blank page while designing front cover with tikz

I’m trying to design the front cover of a book with tikz package. The following is my latex code: \documentclass[b5paper,11pt]{article} \usepackage{geometry} \usepackage{tikz} \begin{document} ...
5
votes
3answers
104 views

Adjusting a block diagram

I created a block diagram but I don't know how to adjust some of the distances. \documentclass[tikz, convert = false]{standalone} \usepackage[utf8]{inputenx}% http://ctan.org/pkg/inputenx % Euler ...
2
votes
2answers
191 views

How can I draw a 3D, three-sided 5-7-9 triangle with TikZ or PSTricks?

I want to draw a triangle with three sides 5, 7, 9 and its incircle in geometry 3D. I used GeospacW. I tried Draw a circle (T) has center origin and has radius r=15/sqrt(11). Take a point A on (T) ...
4
votes
1answer
77 views

Pass an integer value to TikZ in LuaLaTeX

I want to draw a rectangle with \luacode. For rectangle points, the coordinates values will be taken from code. I try the following code. For rectangle, points are defined as '(0,0) and (1,1). But i ...
2
votes
1answer
64 views

Tikzpicture: Line break in node label to right [duplicate]

How can I introduce a line break into the labels of the end nodes in the following MWE? The Tikzpicture will include the line breaks if I remove the label=right: part and just leave label=' but that ...
3
votes
2answers
136 views

TikZ, PGFPlots, or GNUplot: plotting a curve without the known function

I would like to make a plot of a function that has an overshoot of 25% and then settles with subtle oscillations at 100%. I would like to create it in one of the listed packages or in gnus case add ...
1
vote
1answer
106 views

Tikz diagram: subnodes

I am trying to draw this diagram using tikz, but I am just a begginer and cant find out how to draw small nodes in those bigger. Anybody experienced in this? Text in image are not important, only ...
2
votes
2answers
54 views

how to put a node below another in a chain

I have the following chain: \begin{tikzpicture}[start chain=going right,>=latex,node distance=0pt] \node[draw,rectangle,on chain,minimum size=1cm] (rr) {$I$}; \node[draw,rectangle,on ...
4
votes
2answers
215 views

Plotting greatest integer function (floor)

How can one plot y=1/floor(1/x) in pstricks? where floor is the greatest integer function. i.e. floor(2.5)=2 and floor(-0.5)=-1. I need to generate something like what I generated in sage: But I ...
2
votes
1answer
116 views

Starting point of arrows in tikzpicture

I am new to drawing a block diagram using tikzpicture. The following MWE \documentclass[a4paper,11pt]{article} \usepackage{amsmath} \usepackage{tikz} ...
4
votes
1answer
182 views

Valve and pump symbol using TikZ

I'm wondering if there is a library for the pump and the valve symbol. I want to draw the following schematics using TikZ. using something like this: \documentclass{standalone} ...
5
votes
1answer
57 views

Fill a path but drawing just a part of it at the same time

I want to fill the angular sector and just draw the curve part of it in one command. I tried with move to command but it doesn't work. \documentclass[tikz,10pt]{standalone} \usetikzlibrary{calc} ...
8
votes
1answer
92 views

Dynamic coordinate name

The following works fine: \documentclass[a4paper]{memoir} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate (fs-1-2-ne) at (7,8); \node at (fs-1-2-ne) {Hello}; \end{tikzpicture} ...