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
0answers
35 views

Tex capacity exceeded despite system call lualatex

I'd like to plot some measured values with tikz, but despite "calling" Lualatex I get the error message that TeX's main memory is exceeded. I can compile the plots under Lualatex but it doesn't work ...
2
votes
5answers
132 views

TikZ and analytic geometry

I have four given points, for example A(3,2) B(5,4) C(-3, 4) D(-3, 0) Using TikZ/PgfPlots, how can I draw them in the Cartesian coordinate system, show the points, each accompanied by its name ...
1
vote
0answers
41 views

Special effects in TikZ leads to unprintable PDF

So I recently made a picture of the Mexican Hat Potential (related to the Brout-Englert-Higgs Mechanism of particle physics). I am more than satisfied with the graph and everything, but I noticed ...
2
votes
1answer
31 views

\tikzset key with multiple arguments

Sometimes, I want to have arrow tips on a path. The full syntax for that would be: postaction=decorate,decoration={markings,mark={between positions <1> and <2> step <3> with ...
6
votes
1answer
59 views

Calculate axis limits depending on depicted data

In a pgfplots axis environment, I want to make the axis limits dependent on the depicted data or some other data. Consider the minimum working example \documentclass{standalone} ...
3
votes
0answers
34 views

pgfplots complains path is empty

I'm trying to fill an area under a curve drew with pgfplots. I've tried the solution outlined in this answer: \documentclass{article} \usepackage{amsmath} \usepackage[usenames,dvipsnames]{xcolor} ...
0
votes
0answers
20 views

Weird bounding box behaviour with \tkzDefPointBy[projection=onto] [duplicate]

I have encountered weird behaviour while using \usepackage{tkz-euclide} Adding (or removing) \tkzDefPointBy[projection=onto A--B](I) \tkzGetPoint{P} from the following will cause the image to ...
3
votes
1answer
25 views

text not rendering inside node

In my document I have a diagram that is using tikzpicture to show a few boxes with some descriptive text inside the borders of the boxes. So far I've been having troubles with the formatting which is ...
4
votes
1answer
46 views

TikZ multiple loops on one node

I am attempting to draw a single node with several loops, of various sizes, positions, and labels on them. I can do some rough work on it, although it has a few problems. I looked at the documentation ...
3
votes
1answer
28 views

Changing the properties of only one plot in a ybar

Sorry I am sure there is a simple answer to this but I just can't find it! All I am trying to do is turn off the labels (I think they are called nodes near coords) on the second set of data, ie. the ...
2
votes
0answers
42 views

How to draw a shaded triangle? [duplicate]

I would like to draw a shaded triangle by defining the 3 vertices and an RGB color at each of those vertices. The interior shaded color would vary linearly from one vertex to the other. Here is what ...
7
votes
4answers
162 views

Draw a smooth surface

I would like to draw a smooth surface like http://mathematica.stackexchange.com/questions/20912/how-to-draw-a-higher-genus-surface but using Asymptote, TikZ, Metapost, PStricks, or other TeX friendly ...
1
vote
0answers
37 views

Memory overload due to pgfplots / tikz

first of all, I need to mention that there are 2 related threads, that I found usefull: 1, 2. I am working with TeXstudio 2.8.8 on Win 7 64bit (i5 @3.3GHz, 8GB RAM - if this matters). My goal is to ...
2
votes
1answer
61 views

Positioning Tikz figure with xetex

I'd like to write a document using this template : http://phd.epfl.ch/modelesthese. When i'm compiling with pdflatex, there's no problem and the chapter headers are fine. Here is a MWE : ...
4
votes
1answer
68 views

Vertical help lines only in tiKz

The following tiKz code gives you a 100x10 grid of help lines. \draw [help lines, dashed] (0,0) grid(100,10); What is the code if you just want the 100 vertical helplines but not the 10 horizontal ...
4
votes
2answers
104 views

Problems with a TikZ diagram

Here my problem, I define all the commands in this code in order to have a kind of prespective and to see the circle as in a 3d space (with the dashed part to be in the back. My problem is that also ...
3
votes
3answers
33 views

tikz/pgf: positioning.lib works correct in combination w/ rotate?

Please have a look at the enclosed MWE. It shows three rectangles at different rotating angles with respect to a coordinate. When not loading the positioning library the result is as expected (see ...
3
votes
1answer
97 views

Center TikZ node relative to path

I made this diagram in latex, but I can not center the item 'j', corresponding to line 38. Could anyone help me?The diagram of the script is listed below. I tried to use midway on the 38 line, but he ...
0
votes
1answer
128 views

Country balls in Tikz? [on hold]

On 9gag we have something called "country balls". Is it possible to make them in LaTeX TikZ? Are there maybe already a collection of them? Or an easy way to create them? Maybe there are a usepackage ...
4
votes
1answer
30 views

Package pgf Error: Unknown arrow tip kind 'latex’' \path (

I'm following the PGF 3.0.0 manual, and I have PGF 3.0.0 installed. In the manual, the example is under 20. Matrices and Alignment -> 20.6 Examples. I get errors for all the \path statements in the ...
11
votes
3answers
613 views

Drawing a flag in Tikz!

I have some trouble with tikz. I wanted to draw a flag in Tikz - but that with minimal success. Here a sketch: The sketch is not how it should look like: the letters are just there so I am able to ...
1
vote
1answer
27 views

How can I multiply nodes in pgfgantt environment?

I have looked at PgfGantt: Customization of canvas to mark Vacations and implemented a version of it to draw rectangles starting at one date and ending at another which works fine. The problem is that ...
0
votes
0answers
37 views

Ending a proof/example with an image - no qed showing up

I have had this problem before, and I have usually gotten around it the lazy way: by adding some filler text between the \end{minipage} and \end{example}, but I would like to know the correct way to ...
4
votes
1answer
69 views

Using Multirow in tables created with a TikZ matrix

I need to incorporate multirow in the following table, and I keep coming across errors. I found the following example for a great formatted table with colored cells and rounded corners here. I have ...
5
votes
1answer
133 views

Smart Art diagram

I want to update the Smart Art diagram down below: to the following one: . My source code for the first one is: \documentclass[12pt,a4paper,landscape]{article} \usepackage{tikz} ...
6
votes
1answer
44 views

Why `fill` covers `append after command` elements?

Next code is just a little example to describe the problem. I would like to add some elements (lines or text) inside a node and I would like to do it through node's .style. I've tried with append ...
2
votes
1answer
26 views

Log mode of short X-axis pfgplots

I'm trying to obtain this graph (made in Origin): Both axes in log scale. This is MWE: \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{units} \begin{document} ...
3
votes
0answers
49 views

tikz-plots get recompiled every time when using tikzscale

For my thesis I have a lot of tikzplots exported from matlab using the matlab2tikz library. I want to use the tikzscale-Package together with externalization of the plots to save compiling time. Using ...
2
votes
1answer
41 views

TikZ nodes' input and output anchors

Looking at the pgfmanual section 47.4.9 at the shape of the make contact... I'm having trouble understanding the point/use of the input- and output anchors. The input and output anchors are placed ...
8
votes
1answer
46 views

How to apply only vertical changes while pathmorphing?

I want to recreate the image shown below. I'm struggeling with the "Non-conact-mode" part. This ist what I achieved so far: \documentclass[a4paper]{scrartcl} \usepackage[utf8]{inputenc} ...
1
vote
0answers
43 views

Wrong pdf output size

I'm trying to create an image (.pdf) that should be filled with black and white thick lines. The code I'm using is working pretty good except for the fact that the matrix output size is not correct ...
2
votes
1answer
52 views

Estimating coordinates to draw over image using TikZ

I need to draw two rectangles (or this could apply to any shape in general) of different colors on top of a diagram. The MWE that I have this is. The code works, but I am unable to change the ...
3
votes
3answers
88 views

Sizing a pgfplot so it fits in a multicol column

I'm very new to TeX but I'm trying to put together a document that has a multicol layout with a chart inline in the column. The chart always seems to overflow the width of the column and I can't ...
4
votes
2answers
58 views

Control of text position using the decorations.text library in Tikz

I have a two properties that I have been struggling to implement in the decorations.text library for the following image. My two questions are: 1) How do I control the text position along the line? ...
2
votes
1answer
192 views

Plotting f(x) = sin x and f(x) = cos x on pgf/tikz

I'm new to graphing on TikZ/pgf and have been trying to figure this out but can't seem to find any helpful info for what I want. I want to plot the above functions over one period, i.e. on the ...
6
votes
1answer
121 views

How to draw a parallel network of queues?

I am trying to draw this figure with tikz. Unfortunately, I am not succeeding. I really care about 4 queues, one classifier and one multiplexer and with their arrows. So I need to draw this simple ...
1
vote
0answers
45 views

Conflict tikzscale and matrix group plot

I want two axis environments next to each other in one figure environment. I want them to be vertically aligned and scaled to the width of the text. I am trying to achieve this by means of the ...
0
votes
1answer
36 views

two tables of same size tikz

I am creating two tables with the following code (tikz package} \documentclass[twoside,11pt]{article} \usepackage{tikz} \usepackage{url} \usepackage[T1]{fontenc} \usetikzlibrary{positioning} ...
3
votes
1answer
56 views

problem with combination of beamer and rand from tikz

When running the enclosed MWE my problem is to see at the first glance (I hope so at least): I would like to place the various words with each visible-step at random places on the slide. But if a word ...
2
votes
1answer
88 views

Molecular Orbital for NH3

I need some help drawing a NH3 molecular orbital. I've made a drawing off how it should look like (but it looks ugly, the proportions are wrong and and and). It would be nice if you could help me ...
0
votes
0answers
12 views

How do i get the grid to start exactly in the upper left corner of the page? [duplicate]

I'm using page relative positioning in tikz to draw a grid to can verify that my elements are at the right places. However, the grid does not start in the corner, which is what i intended. What's ...
5
votes
2answers
127 views

Place TikZ picture over top of text

I'm designing some letterhead using LuaLaTeX (interchangeable with XeLaTeX at this point) where I want my signature and name to be drawn like this: The signature is a TikZ drawing, the text is ...
-1
votes
0answers
56 views

Why do TikZ animations have to be compiled twice before they run? [on hold]

Why do I have to compile a LaTeX document containing a TikZ animation twice before the animation runs? There were not even errors in the log file? I use 32-bit MiKTeX 2.9 for Windows.
3
votes
1answer
29 views

Placing multiple labels outside a node with TikZ circuit library

I'm trying to create a set of additional components for use with the TikZ circuits library. Specifically I'm looking at electro-engineering diagrams with a focus on key diagrams. Components in such ...
5
votes
1answer
42 views

Text in Tikz node not respecting baselineskip

I'm trying to include a few lines of text in a Tikz drawing, using a custom font size. However, when defining a font size, the baselineskip is only respected for the first line. See the minimal ...
0
votes
2answers
79 views

How to draw inward arrows between two paths?

How to draw inward arrows between two paths, like in the picture below?
1
vote
0answers
64 views

Unable to use tikzlibrary packages [closed]

UPDATE: Solved. See my comment below for the fix. I've been trying for the life of me to figure out how to use the math tikzlibrary (\usetikzlibrary{math}), and no code works. I fear that it has ...
5
votes
3answers
160 views

Drawing a series of graphs receding into the page; TikZ

I want to draw a panel of graphs of citation networks receding into the page, as the below sketch demonstrates. In the below sketch, each blue rectangle represents a citation network at a different ...
1
vote
1answer
42 views

TikZ \tkzFct are blank under Ubuntu

But under sharelatex they just worked fine (I might have modified some thinghs though). The code: \documentclass{report} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{tkz-fct} ...
5
votes
2answers
94 views

Coloring a node after its creation

I want to fill a node with a specific color, but not with the usual [fill=blue] way. The reason is, that I am creating many many nodes and I want to fill some random nodes with a different color from ...