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

pgfplot tikz single plot with 2 y axis

I have 5 columns of data in a txt. file as nxI Bfield1 magmoment1 Bfield2 magmoment2. I am attempting to implement nXI - x axis, Bfield1 and Bfield 2 as my y axis and magmoment1 and magmoment 2 as ...
4
votes
0answers
59 views

Combining shading and transparency in TikZ

With this code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \fill[shading=radial] (0,5) circle (2); \fill[top color=black] (5,3) rectangle (9,7); ...
1
vote
0answers
36 views

How can I make TeX find tikz's files without moving all of them?

I'm trying to recreate my file system on a cloud server so I can SSH into it from my new tablet. So I have def.tex, my main list of custom macros, which accesses tikz.tex: \input ...
5
votes
1answer
72 views

Tikz Hierarchical Chart - Branching

I am trying to get Rachel Brown all on one line, and below Rachel Brown - three branches that say Mary Brown, Laura Brown and Emma Brown. I am also trying to get ages to show below each name, for ...
3
votes
1answer
56 views

Converting node coordinates in tikz 3d?

Consider this MWE: \documentclass[% 12pt, journal, onecolumn, twoside, draftcls, letterpaper, ]{IEEEtran} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{positioning} \usetikzlibrary{3d} ...
1
vote
1answer
88 views

TikZ: transparency causes problems with the color black (opacity, transparency, color model, Adobe Reader)

I want to have a foll color with transparency but I also want the text to be perfectly opaque. But somehow it does not work. \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,} ...
1
vote
0answers
59 views

How can I place the theta above and midway of the arc? [closed]

I have two questions: How can I place the node midway,above the arc? in the arc the end of the arrow is black instead of orange, how can I set the color of the spike? This is the latex code. ...
4
votes
1answer
48 views

Changing the Page Layout (for all pages)

I want to add the chapter name at location (x,y) with center alignment , so the page number and the date. But what is wrong with the code? If I get this,How can I add date (for every chapter) and move ...
3
votes
1answer
77 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
105 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
63 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
100 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
543 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
99 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
121 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
136 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
80 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
102 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
91 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
102 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
86 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
117 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
47 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
88 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
88 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
65 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
74 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
80 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
127 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
379 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
62 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
75 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
33 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
81 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
61 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
156 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
73 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
102 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
49 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
93 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 ...