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)

5
votes
1answer
305 views

Normal line to another

First, I want to say I´ve been looking an answer in this forum but I didn´t find it. My issue is that I don´t know how to do a normal line to an other that I named with "name path=chord". My objective ...
3
votes
2answers
186 views

How to embed a line-chart from a logfile?

I have a logfile progress.txt in the format <epoch> <space> <number> <space> <rest...> Here an example excerpt: $ cat progress.txt 1375097557 40 523 3927 26884 ...
3
votes
1answer
100 views

nodal-graph in table spacing issue

Good day, hi, I am having some difficulty with including graphics in a table. If you happen to have some spare time, please kindly enlighten me on the following problem I would like to know how to ...
7
votes
1answer
407 views

TikZ doesn't find all intersections between plot and a line

Why doesn't TikZ find all intersections. They are obviously there … \documentclass[border=10mm]{standalone} \usepackage{tikz} \usetikzlibrary{intersections} \begin{document} ...
36
votes
3answers
3k views

Replicate the Fourier transform time-frequency domains correspondence illustration using TikZ

The following time-frequency correspondence illustration is in the wikipedia entry of the Fourier transform. Also a gif animation version (if the animation doesn't show, please open the following ...
2
votes
1answer
264 views

positioning and showing relationship between two images with arrows and animating the arrows

a. Though I can include these slides as images, are there any better ways to include these in beamer? b . Can I animate the arrows and text ? Edit: I would like to use two images 1.brain 2. Gut and ...
4
votes
1answer
139 views

Draw a path along one existing path and then another

I have drawn two shapes in the code below, a red curve, and a black rectangle. I have labeled four points, A, B, C and D. I would like to know how to draw a path along the black rectangle from A to B, ...
4
votes
1answer
325 views

TikZ: Drawing a rectangle and then splitting it

I want to make a rectangle and then want to split it. My MWE is below: \documentclass[tikz]{standalone} \usetikzlibrary{shapes.multipart} \begin{document} \begin{tikzpicture}[ my shape/.style={ ...
4
votes
1answer
639 views

QTikZ Save standalone TikZ file

In QTikZ, it is possible to export a pdf, eps and png. I was wondering if it were possible to tell QTikZ to output a standalone TikZ file that is reading to add in a LaTeX document. So basically, ...
2
votes
1answer
181 views

Customizing pgfuml (distances)

I'm using pgfuml to create some sequence diagrams. As you can already see in the examples on the pgf-uml Homepage, diagramms get very crammed if you insert many descriptions. Text and arrows overlap ...
3
votes
1answer
107 views

Tikz: Reproducing the figures made by tabular environment

I made the following three diagrams with tabular environment in LaTeX. Now I want to make these diagrams in Tikz ideally with animation and MWE is below: \documentclass{standalone} ...
3
votes
2answers
404 views

Drawing line around obstacle in circuit diagram

I have a circuit diagram with 3 DFFs (rectangles) and an xor gate (pointy bit on the right). For reference, let's identify the components from left to right as x[n], DFF0, DFF1, DFF2 and XOR0. ...
6
votes
1answer
1k views

How do you draw spheres and arcs on a sphere on latex?

So, I'm new to using latex and I need to draw some figures, specifically spheres and arcs and how to label endpoints.
6
votes
1answer
236 views

Calculate the intersection between a path enclosed by a `scope` and another path

I have constructed a circle using the through package. I would like to create a coordinate at the intersection of this circle and another line. Is there a way to do this? I tried to name the path ...
6
votes
3answers
1k views

\everymath, AMS equations, beamer, and tikz not working together

In a beamer document, I have $ expressions embedded in displayed equations (using tikz to make, e.g., colored boxes around some expressions). I put \everymath{\displaystyle} in the preamble so that ...
2
votes
0answers
151 views

TikZ shape definition from TikZ rather than PGF [closed]

Is there a way to define a TikZ shape using TikZ code rather than PGF? I'd like to have a gear shape (and some others) that I can use as a node and add text to it, have arrows go in and out of it, ...
4
votes
1answer
921 views

Circuitikz place text above and below component

Lets say I create a component like this (0,0) to [R, l^=$R1$] (0,2) How can I make it so that the value, R1, is say, on the right hand side, and the resistance, say, 1kohm is on the left hand side? ...
5
votes
2answers
628 views

Placing Nodes along an rotated ellipse in TikZ

In relation to this quesion: How can one place nodes along a rotated ellipse? ()
1
vote
1answer
138 views

Does a System.Drawing to TikZ solution exist?

Not sure if this belongs to here or to a .NET forum. Does anybody know of an implementation to reuse .NET coded drawings with TikZ? Or any ideas, how to do that? I just want to know, if it would be ...
4
votes
1answer
237 views

How to draw compactification and completely regular diagrams in tikz

How can we draw diagrams like this: and
8
votes
1answer
894 views

How to draw a gradient box around sections

How would you implement a margin-to-margin gradient using TikZ that is slightly larger than the text and that cover the whole lines of section text? The following code produced the results shown below ...
4
votes
2answers
721 views

Set the axis range according to the data range, that is, no scales for axis

I use the matlab2tikz package to creat surface in LaTex editor, but it display ugly unlike the Fig. created in the Matlab. Can anyone help me out? Is there a way of adjusting the x,y and z axis ranges ...
5
votes
1answer
258 views

“Stroke” a predefined path

I would like to use the name of a previous defined path to draw it later on in my code. I have included an example below, where I define two paths, "D1" and "S1", and then later on, draw these very ...
7
votes
3answers
528 views

Approach to creating graphics in book - TikZ, SVG, PDF, Inkscape?

I have a series of "charts" I created with Excel (before discovering LaTeX) to show the ROM character patterns for an old computer for inclusion in a book on retrocomputing. My dilemma is how to ...
2
votes
1answer
1k views

Tikz Edge Label Positioning mid anchor

I would like to place labels below edges such that the letters don't wobble. I can place them on the edge using the mid anchor, but when I use below some other anchor is used to calculate the ...
5
votes
1answer
941 views

tikz/pgfplot unstacked ybar with “switched” overlay

So, i'm trying to make a nice ybar plot using pgfplot, but i have some issues i want to solve, hope you can help me. 1) the ybar are not centered on the x value as they should, i mean, the bar for x ...
3
votes
1answer
172 views

Gnuplot invisible

I'm trying to plot two implicit curves (using pgfplots and raw gnuplot) but they don't appear in the document. In gnuplot it works just fine so I guess it has something to do with pgfplots but i can't ...
8
votes
0answers
327 views

Incompatibility with TikZ and Mac OS X Preview [closed]

I was quite suprised to find that some TikZ documents render incorrectly under Preview (on Mac OS X), despite working fine in Adobe Reader (on Mac OS X) and Evince (on Linux). This is Mac OS X version ...
6
votes
1answer
402 views

Plotting a random function f(x) and f(x)+sin(x) with tikz

I'm plotting a function f(x) with random values as follows: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \draw[color=blue, samples=150] plot[domain=0:10] (\x,rand) ...
4
votes
1answer
174 views

TikZ: Problem when using shift and rotate

I am having an issue when I use shift and rotate. In one case, the rectangle is being elongated down to the stopping point of the shift and rotate. However, if I issue the same command in another ...
4
votes
1answer
424 views

Scale Axis in PGFPlots without changing orientation

I'm trying to plot a data matrix using pgfplots and a surface plot. The method described in this question worked well for me: Using pgfplots, how do I arrange my data matrix for a surface plot so ...
3
votes
1answer
423 views

Tikz example doesn't compile

I tested this example (from tikz package) example's link and my IDE TexMaker with MiKTeX returns an error ! Package pgfkeys Error: I do not know the key '/tikz/edge from parent fork dow I aalo ...
3
votes
1answer
256 views

How to pass a macro in externalized tikz?

I experience a problem when I use tikzscale package to compile figures externally. The minimal working environment is as follows. The main.tex: \documentclass[\myopts]{IEEEtran} ...
1
vote
1answer
272 views

How to align vertically a matrix on nodes in Tikz?

I have prepared a series of illustrated tables for a technical brochure, and I have finally elected to use the option "matrix of nodes" of Tikz. I could not manage however to center (on the same ...
26
votes
1answer
1k views

TikZ: drawing 3 intersecting circles and shading

How can I draw the three intersection circles/ellipse with that shading paradigm (not necessarily the same colors) effectively? It appears that the original image doesn't have overlapping colors ...
3
votes
1answer
248 views

How to draw a ellipse figure in beamer at desired location? How to put a .eps logo figure at the right bottom corner?

Here is the code: \documentclass{beamer} \usepackage{xeCJK} \usepackage{tikz} \usepackage{pstricks} \setCJKmainfont{SimSun} \usetheme{CambridgeUS} ...
8
votes
1answer
1k views

Barchart with pgfplots with data from R

It took me a while to create a nice (... to some extent) bar chart with R which represents what I need. However I noticed it doesn't look very aesthetic in my Latex document. Sweave isn't a good ...
2
votes
1answer
231 views

TikZ: Is drawing an arc that either curves to much or isnt long enough

\documentclass[convert = false, tikz]{standalone} \usetikzlibrary{intersections} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \coordinate (O) at (0, 0); \coordinate (M) at (4, 0); ...
8
votes
1answer
327 views

Ask for guidelines for building a Chinese chess with tikz

I want to build a showcase to demonstrate to my friends how powerful Tikz is. LOL But I am still new to Tikz, not sure how to handle this. I want to draw a Chinese chess (Xiangqi) with latex and ...
5
votes
1answer
96 views

How can one put labels over an image?

This question is slightly different from Drawing on an image with TikZ. What I'm asking is how can I put a vertex label, at a particular point (x,y), on an image of a graph in TikZ? \begin{center} ...
5
votes
1answer
329 views

Combine Document Class and TikZ

I'm trying to combine several articles into a single volume using the combine document class. Some of the articles use the TikZ package, which seems to cause problems during compilation. For example, ...
6
votes
1answer
150 views

how to flip margin watermark in a two sided document

I have a problem that i didn't figure out how to solve it. I want that the background flips each time we turn the page. This way pair pages will have the background margin on the left , and the impair ...
2
votes
1answer
3k views

Enabling “--shell-escape” on TeXworks under MiKTeX

After resolving the problem on my previous question, I applied to finally install Gnuplot 4.6; and after a successful installation I had to allow the --shell-escape option on TeXworks, so I added a ...
5
votes
1answer
129 views

change numbering when using \foreach to assign numbers for aid lines in a diagram

\documentclass[11pt]{article} \usepackage{xfrac, array, tabu, multirow, graphicx, setspace, dcolumn, tikz} \usepackage[fleqn]{mathtools} \usepackage[ngerman]{babel} \usepackage[applemac]{inputenc} ...
6
votes
2answers
315 views

Changing arrow colour in smartdiagram

The smartdiagram package appears to have a default convention that an arrow in a circular diagram takes the colour of the destination block. Is there a way to choose instead the colour of the source ...
5
votes
1answer
124 views

Manipulate Length in LaTeX

I'm using tikz package to make nice schemes presenting my work, and I am confronted to a little problem: manipulating variables. I can do this the hard way: For exemple let's say that I want to draw ...
4
votes
1answer
144 views

TikZ: Using a line with thickness as clipping region?

In TikZ, is it possible to clip away a line? I would like to create a thin layer around an arrow in which nothing should be drawn (i.e. keep what is there at the moment the arrow is drawn) to create ...
5
votes
1answer
114 views

TikZ: Can a \foreach command run inside decoration = {markings,?

Can I use \foreach inside of decoration = {markings, ...? \documentclass[convert = false, tikz]{standalone} \usetikzlibrary{decorations.markings} \usetikzlibrary{arrows} \begin{document} ...
8
votes
1answer
922 views

How to project a function over a 3D plane

When I looked up the method to express two variable functions as a sequence of intersecting horizontal planes, I thought to use PGFplots to construct a simple set of "slices" of a generic function ...
7
votes
2answers
252 views

TikZ: naming paths in a \foreach and accessing them later

\documentclass[convert = false, tikz]{standalone} \usetikzlibrary{calc} \usetikzlibrary{intersections} \begin{document} \begin{tikzpicture} \coordinate (P1) at (60:4cm); \coordinate (P2) at ...