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)

3
votes
1answer
78 views

Draw parallels of a sphere with tikz

How to draw properly parallels of a sphere properly? The equator is ok: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \fill[ball color=blue!20] (0,0) circle ...
5
votes
1answer
106 views

Still some of the flows missing in the flowchart

I have posted this question few days back but still I can't complete the algortihm. This is the uncompleted work done so far \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} ...
5
votes
1answer
127 views

Point Density Heat Map with TikZ

I have a set of data points in a two dimensional space and would like to create a density heat map of the points that looks smooth, similar to the picture below which I produced in MATLAB. Darker ...
4
votes
1answer
65 views

Correct clipping of 3D tikz for adjustbox?

Consider the following MWE: \documentclass[% 12pt, journal, onecolumn, twoside, draftcls, letterpaper, ]{IEEEtran} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{positioning} ...
6
votes
1answer
104 views

Simple Characteristic Function or Step Function in pgfplots

How would I go about creating a simple characteristic function plot such as this in pgfplots? It is not necessary for my Latex processor to generate the plot based on a function, manually drawing the ...
20
votes
7answers
558 views

Creating a Polar Grid with Tikz

I am trying to recreate the following image using tikz: So far, this is my code \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[>=latex] \fill[fill=lightgray] ...
4
votes
2answers
101 views

TikZ Replication

I'm trying to play around with TikZ to recreate the following graph. I'm having trouble recreating the curved lines marked $\hat{sigma}=0$ and $\hat{e}=0$. I understand that I can use to[in=,out=], ...
3
votes
1answer
74 views

Assigning colours based on the three dimensional position of objects in a tikz environment

In tikz I want to make a mind map, with gradually changing colours throughout the mind map. Because usually colours are defined by RGB code, I'd have to use a 3D mind map to make this work. My ...
4
votes
2answers
124 views

Adding points when plotting a graph: how to do with tikz?

My question How can I add plots to the graph I am drawing, in order to have a more precise drawing? My code I am learning how to plot graphs. Here is the code I use. You can see on the picture ...
4
votes
0answers
85 views

Typography and style - good choices for font styles in TikZ or pgfplots graphics?

When creating graphics or graphs with TikZ and/or pgfplots, one can put several commands to format the text to his likings. My question is: what are sound possibilities to format the elements in said ...
2
votes
1answer
53 views

TikZ-How can I address a point or specifiy a length in a rotated object?

First of, if anyone can think of a better title, please do not hesitate to edit it. :) You see I have produced somewhat proper looking straight lines for the force vectors. I managed to do so after I ...
0
votes
0answers
140 views

Beautiful tables with TikZ [duplicate]

Tables generated by LaTeX are usually not good looking. The standard thickness of row and column separators and also the corners where the rules meet leave much to be desired. Are there any examples ...
5
votes
1answer
82 views

circle vs arch with shorten — normal or bug?

When I draw arches using arc in pgf, the arch path precisely fits on the path of the corresponding (ie having the same radius) circle (red on black in the attached figure). When I apply shorten to the ...
4
votes
0answers
108 views

Best Practice for nice layout with tikzDevice

R+tikDevice+LaTex+knitr is (as I understand it) the most efficient way to get relly nice looking publications from R, with maximum layout-support from LaTeX. I'm using R+LaTex+knitr now, but would ...
3
votes
1answer
92 views

Area restricted by three functions

I am trying to shade the area restricted by the functions y \sin x, x = \sin y and y = 2pi + x. Now my problem is that I do not have access to Pgfplots 1.10so the libary fillbetween is not accessible ...
1
vote
1answer
103 views

Tikz on TexMaths/LibreOffice

I put the following into TexMaths in LibreOffice \usepackage{tikz} \begin{document} \begin{tikzpicture} \tikz \draw (0,0) circle (10pt); \end{tikzpicture} \end{document} and was complained of ...
3
votes
2answers
89 views

Make a specific dashed parabola curve connecting two points in Tikz

I have my tex code for this figure a square 1-2-3-4 with a dashed line connecting p2 and p3 by a intermediate point p23. How can we make a ( curved) dashed parabola curve (or just any more ...
3
votes
2answers
120 views

Different sibling angles at the same level when using mindmap

I tried now for some time to figure out how to use different sibling angles for different nodes at the same level of a mind map. The sibling angles should be customized. Here is my example: ...
0
votes
0answers
48 views

How to export a box to a standalone images?

I'm writing a report now, in which I have several tikz figures. How could I export these figures (or as boxes) into separated image files (with exactly the same format as in the report)?
4
votes
3answers
89 views

Typeset two styles of the same text over top each other

So the goal of this exercise is to have text that can be displayed via the ocg-p package in two distinct styles depending on the OCG layer that is in effect (similar to this question/answer). The ...
5
votes
1answer
89 views

How to draw nested functions in TikZ?

I'm trying to draw a frequency modulated sinusoidal in a polar domain with the following code. \documentclass[tikz,border=10]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} ...
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
67 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
76 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
83 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
130 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
382 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
64 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
51 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
80 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
34 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
78 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
83 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
159 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
74 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
74 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
106 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
167 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
94 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
74 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
52 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
238 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 ...