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

Layered graph with variable number of nodes on each layer

I have created some Tikz code to product he diagram below (slightly simplified). This is my first real shot at Tikz and its taken me about 8 hours now to get this far. But I don't really begrudge the ...
8
votes
1answer
107 views

This elliptical-orbit diagram compiled fine with TikZ 2.10 but fails with TikZ 3.0. Why?

I borrowed some code on Kepler's 2nd Law from the linked post here on TeX answered by Tosco. I haven't compiled the document it is in awhile but needed today. When I did, I was told dimension too ...
2
votes
0answers
12 views

Pgfplots : Shadow in bar chart with restricted domain

I have a following code which plots a pgf bar plot for me. I am able to add shadow to one of the bar plot. However, the other plot which has a broken y bars, I am unable to add the shadow, because ...
8
votes
3answers
167 views

Draw arrow in picture

\documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}% \usepackage{lmodern} \usepackage[nomarginpar, textwidth = 16cm]{geometry} ...
4
votes
1answer
57 views

Resize tikzfigure in tcolorbox depending on height of tcolorbox

in my book I got many different type of boxes so I made some macros placing the boxes automatically according to their arguments. That's one of them. So far I made some boxes that have big "+" and ...
4
votes
2answers
142 views

TikZ/PGF linguistics vowel chart

I'm including a vowel chart in a linguistics document of mine, similar to this, and while I'm aware that there are a couple of packages (TIPA, pst-vowel) that can do the job, I'm interested in trying ...
4
votes
1answer
131 views

How to draw a timeline?

How to draw something like this?
6
votes
1answer
336 views

How to use tkz-graph and tikz-qtree without conflict?

It seems that the tikz-qtree and tkz-graph packages both define (or redefine) the \edge macro... I'd like to use both, but it doesn't seem possible: \documentclass{article} \usepackage{tikz} ...
6
votes
1answer
96 views

TikZ: inverted cone (similar to linked thread but different issue)

How to draw a simple cone with height and radius with TikZ? In the above thread, a cone was created. However, if I invert the cone, the lines from the origin to the cone edges cuts through the cone. ...
2
votes
0answers
33 views

Problem with pgf library in TexLive

I am using TexLive, and I am writing a paper with someone else. He has sent me all of his files. He uses tikz to draw commutative diagrams. I am trying to compile his files, but I get an undefined ...
1
vote
1answer
49 views

Simple vertical text in TikZ

How do we write this title vertically in TikZ - similar to vertical text (not in table)?: T T I H T I I M L S S Y E
6
votes
1answer
86 views

Auto word wrapping in a node in TikZ?

I am using TikZ to make a flow chart demonstrating my scheme step by step. I notice that the word wrapping is not automatic in a node. That is, the line can be extremely long across the whole page. ...
4
votes
2answers
48 views

Text Wrapping in tikz node doesn't work

I would like have a few fixed nodes of size 1cm x 1cm. However, the text inside these nodes should wrap around. I used the following questions help to figure out about wrapping text. However it ...
8
votes
1answer
145 views

Increments in \foreach loop with two variables, TikZ

I'm trying to draw a stack of arrows at different angles in a \foreach loop in TikZ. I don't want to have to declare every z coordinate and angle manually so I was using the {1,2,...,10} syntax but ...
2
votes
1answer
43 views

Labelling edges drawn by the draw to command

consider the following code: \documentclass{article} \usepackage[version=0.96]{pgf} \usepackage{tikz} \usetikzlibrary{arrows,shapes,automata,petri} \tikzset{ place/.style={ circle, ...
7
votes
2answers
111 views

Placing tikz objects after a nonlinear transformation

I'm trying to place certain objects on my page. Normally you can use the shift argument to place the object at a set of coordinates, or even current page. None of that seems functional with the ...
3
votes
2answers
76 views

Draw circle perpendicular to line

I was trying to create a circumference perpendicular to a line similar to this but I only see a tutorial for creating in a axis-plane (xy, xz, yz) \documentclass[tikz, border=15mm]{standalone} ...
5
votes
3answers
253 views

How to create simple funnel in LaTeX?

I have a problem trying to create a simple funnel, as it can be seen on the attached file: I have tried to look at the internet, trying to write the lines, but it won't work. I am using TikZ. The ...
6
votes
3answers
214 views

Including Arrows on lines in a Multiple Path

I'm drawing a tikzpicture and trying to make it flexible. There is a group of symbols that I want to be able to move around while maintaining their relative positions. So far I've tried concatenating ...
0
votes
0answers
31 views

TikZ/pgfplots - are there any problems related to externalized figures used on Linux and Windows?

I share a document between Win 7 and Xubuntu 13.10. I just updated my local git repo on my Xubuntu 13.10 installation. I then continued editing in a TikZ figure (not only its style definitions!) but ...
6
votes
1answer
160 views

How to plot a graph from its adjacency matrix?

For example, I want to plot a graph whose adjacency matrix is [0,1,0;1,0,1;0,1,0]. I first plot three points labeled by p1,p2,p3, and link the points p1,p2, p2,p3. For a general case, how to link the ...
4
votes
1answer
37 views

TikZ: issue with lines in foreach loop

\documentclass[tikz]{standalone} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \coordinate (h) at (0, 3); \coordinate (O) at (0, 0); \draw (O) -- +(-3, 0); \draw[-latex] (O) -- ...
3
votes
1answer
31 views

Would like a mdframed environment style with framed title box inset above without fill

Here's a slight tweak to one of the mdframed examples that produces a framed title inset above the theorem box \documentclass{article} \usepackage{amsmath} %\usepackage{svgcolor} ...
7
votes
1answer
48 views

How to make a dynamic comment box next to \address cluster?

I'm sure you're aware what \address{blah} is. Well, I'd like to make a boxed comment that's just as high as my address and stretches from the left margin of the document to 3cm to the left of the ...
1
vote
1answer
70 views

How can I resolve the side effects of AddEverypageHook to external pgfplots?

I have quite a huge document with many pgfplots, which I would like to externalize. Well I can externalize them, but my \AddEverypageHook command from the everypage package affects this externalized ...
3
votes
0answers
34 views

Function not plotted between 0 and 1 [duplicate]

When I am trying to plot the function x^0.5 / ( x^0.5 + 10^0.5 ), the plot will only start at x=1 but not at x=0. See the following MWE: \documentclass{article} \usepackage{tikz} ...
0
votes
0answers
54 views

Draw Block Diagram and Flow Chart Diagram [on hold]

I am new to tex writing and not experiencing with drawing different diagrams. Tell me please that which packages I must use and how I can execute my code. Help me also with links, in which basic of ...
5
votes
4answers
133 views

How to add a labeled mark on your plot in xy-plane by using (tikzpicture)?

I need a picture like Here is a try: \documentclass{article} \usepackage{pgfplots} \usetikzlibrary{decorations.markings} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[-stealth, ...
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
2answers
662 views

Drawing SPACE-TIME in LaTeX!

I am creating an article in LaTeX and would like to include an topological image of space-time. I have attached an image of what I am imagining. Any clue how to go about making this? I have been told ...
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 ...
3
votes
1answer
50 views

tikz : edge loop and rotate

Here is my example : \documentclass{standalone} \usepackage{tikz} \def\test#1{\node[circle,draw](#1) at (0,0) {#1}; \draw[->] (#1) edge[in=40,out=-40,loop] ();} \begin{document} ...
1
vote
3answers
97 views

Short cut method to draw multiple dots with label on a curve

Let us consider the following example: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=.6pt] \draw (1,0)--(20,0); \foreach \x in {1,...,20}{ \draw[fill] (\x,0) ...
2
votes
0answers
40 views

“Text along path” decorations take absurdly long to be compiled for non-default font sizes

I'm trying to use a text along path decoration in tikz-pgf which causes absurd loading times, sometimes far longer than an hour if I want to print a whopping two (!!) words in for example \large font ...
1
vote
0answers
85 views

Drawing a mesh heart in TikZ

I would like to reproduce the figure created with Matlab here, using TikZ. However, I'm very inexperienced with TikZ, and anything more than just drawing lines is beyond my abilities. Could anyone ...
34
votes
3answers
7k views

Pgfplots: how to fill the area under a curve with oblique lines (hatching) as a pattern?

I want to hatch the area under a curve (graph of a function) with oblique lines on an interval (to illustrate the function's integral on that interval). This can be done elegantly in gnuplot... ...
8
votes
2answers
146 views

How to draw a simple cone with height and radius with TikZ?

I need to make a very simple cone with h and r (like the picture I've uploaded as example) and I can't find it in previous questions.
6
votes
2answers
114 views

TikZ: Relative positioning of nodes

I am working on script to build chart depending on the input data and one of the troubles is to place node right of the rightest node. This is MWE: \documentclass[border=.5cm]{standalone} ...
6
votes
1answer
74 views

How to use i.e. left, middle and right color when using draw as an argument instead of a command?

I'm forced to define colors within my tikzset for one of my projects. This requires me to use the draw command within my tikzset to set a color. Normally I can just use, say \draw command to just ...
5
votes
1answer
80 views

Reuse tikz picture in another tikz picture [duplicate]

I have a TikZ picture \begin{tikzpicture}[scale=0.5] \draw (-1,0) arc (180:360:1cm and 0.5cm); \draw[dashed] (-1,0) arc (180:0:1cm and 0.5cm); \draw (0,1) arc (90:270:0.5cm and 1cm); \draw[dashed] ...
2
votes
2answers
98 views

Draw block diagram with a switch

I'm trying to draw a simple block diagram that looks like this: schemabloc seems to be the package to use, but then again, it doesn't have the switch symbol that I need. circuitikz doesn't seem to ...
3
votes
1answer
41 views

Tikz overrides one of my defined colors when I use left color, middle color and right color, how to fix this?

So I want to gradually change colours across the double arrow from white, to olive, to green. How to stop tikz from overriding my middle color? \documentclass[landscape]{article} ...
4
votes
1answer
145 views

How to draw up this hierarchical diagram?(Or similar way)

I Would like to know how to draw this diagram or similar. Thx. I have started to use LaTeX just a few weeks to try pass a .doc to .tex, but I don't know how do this image. I tried use one exemple to ...
4
votes
1answer
64 views

How can I get optional arguments in a TikZ-circuits.ee.IEC symbol?

Good Evening, so in the following Code, I have 'new' circuit symbol, named 'converter'. In short: I use a 'generic circle', but I do not show him; I paint a pgf-rectangle over it and at least a ...
1
vote
1answer
105 views

Plotting an arbitrary function in latex [on hold]

I would like to know how I can replicate the diagram below in latex. thanks. Edit: I can plot a function using tikz/pgfplots if I know how the function is defined. Unfortunately, I don't know how ...
3
votes
1answer
72 views

How to align a “double arrow” with a tikz arc shape?

I want to align the double arrow shape in the tikz package with an arc, like this one: \documentclass[landscape]{article} \usepackage[a2paper]{geometry} \usepackage{tikz} ...
6
votes
1answer
92 views

Draw a rectangle behind tcolorbox

I'd like to draw a rounded rectangle behind an existing tcolorbox. The result should look like this: That's what I've got so far: \documentclass{book} \usepackage[many]{tcolorbox} ...
3
votes
1answer
68 views

How to crop my page to the size of tikz graph

I want to crop the page to exactly fit the tikz graph in it. When i used standalone document class, all the page content became on one line. Here is my code \documentclass{standalone} ...
6
votes
2answers
122 views

How to rewrite this command using \newenvironment?

I once defined a customized latex command, which works well. And now I would like to convert it into a latex environment using \newenvironment command. However, I failed after trying several ways. ...
2
votes
1answer
50 views

Problem importing Octave Plot using TiKZ - pgfkeys Error on gpcolor

I am trying to include a set of Octave generated plots in a report, however I am constantly receiving the same error from pgf about it not recognizing \gpcolor A MWE would be ...