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
2answers
731 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
142 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
246 views

How to draw compactification and completely regular diagrams in tikz

How can we draw diagrams like this: and
8
votes
1answer
952 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
908 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
305 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
549 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
1k 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
181 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
346 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
420 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
196 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
451 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
467 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
273 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
302 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
258 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
238 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
349 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
108 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
346 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
157 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
136 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
338 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
132 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
150 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
119 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
997 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
261 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 ...
3
votes
1answer
274 views

Drawing a logo in LaTeX to be incorporated as header

Is it possible to draw this image using LaTeX so that it can be incorporated in letterhead as a logo:
6
votes
1answer
278 views

Error using smartdiagram package:

I am trying to use the smartdiagram package and wanted to replicate an example in the documentation. Here is my MWE: \documentclass[10pt]{article} \usepackage{tikz} \usepackage{smartdiagram} ...
3
votes
1answer
149 views

Missing pictures when using pgfplots

When preparing an article I came across with a strange problem. To draw graphs I use pgfplots. Like here: \documentclass[twoside,11pt,a4paper]{article} \usepackage{daiostyle} \usepackage[all]{xy} ...
2
votes
1answer
1k views

Adjusting arrow style on pgfplots axes

Using axis line=middle in pgfplots creates arrow tips on the end of the axes. How can I adjust the size, style, etc? I suppose one way would be to make axes without arrows (using axis line*=middle) ...
3
votes
1answer
363 views

Draw an implicitly defined surface in 3D

I want to visualise the following set as a subset of [0,\infty)^3: What's the most efficient way to do this? I am thinking of either TikZ or psTricks.
3
votes
1answer
359 views

TikZ: adding a node to a plot

\documentclass[convert = false, tikz, usenames, dvipsnames]{standalone} \usetikzlibrary{backgrounds} \tikzset{ partial circle/.style args = {#1:#2:#3}{ insert path = {+ (#1:#3) arc (#1:#2:#3)} ...
12
votes
2answers
653 views

List of Underlining Packages - Pros and Cons

The \underline macro built into LaTeX is pretty much not useable per Why does underlined text not get wrapped once it hits the end of a line ? I have been attempting to use the soul package to ...
6
votes
1answer
237 views

Hyperref does not work for legend labels inside \subbottom

When I use Hyperref package together with memoir class, and when I put a label to a PGFPlot inside a subbottom environment, and try to reference to it, an error reported: ! File ended while scanning ...
3
votes
1answer
389 views

Declaration of cumulative distribution function

I have a code that illustrates a certain figure. \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}[ declare function={ Nprime(\x) = ...
2
votes
2answers
443 views

TikZ: drawing an evolution of an ellipse to a hyperbola with the same focus

Is there a high speed way to draw the evolution of an ellipse, to a parabola, and then into a few hyperbolas with the same focus? From the picture, we see that we start out with three elliptical ...
5
votes
1answer
375 views

Accessing the middle of a path

In the following example, I'd like to move the dotted vertical lines to the (horizontal) center of the arrows connecting the lower elements. For example, the right dotted line should be centered with ...
3
votes
1answer
209 views

I am having an issue with an included standalone TikZ picture

I am not sure if code will do much good here. I have included many standalone TikZ pictures but this pictures is the only one to act differently. Here is the picture in compiled from the standalone ...
4
votes
1answer
700 views

Axis labels and ticks in degree, plot in radian

I've got a plot - the x axis is in radian (from pi/2 to pi) and with gnuplot it works like a charm - the problem is - that my x-axis labeling should be in degree (-90, -75,...,90) and i'm kinda stuck. ...
17
votes
4answers
1k views

How can I draw a TikZ element multiple times against a shaded background?

If I have two tikzpictures drawn: \documentclass{article} \usepackage[margin = 1in]{geometry} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing,calc,shapes,shapes.geometric,patterns} ...
14
votes
3answers
2k views

How to draw a irregular circle(shape)?

I want to draw some irregular circle(shape) in my wireless scenario. with a basestation in the center. around is some irregular circle(shape). I find something(could be used) in this web(but I feel ...
3
votes
1answer
544 views

Tabular: Using tabular to separate figures in a minipage

\documentclass[demo]{article} \usepackage{tabu} \usepackage{tikz} \usepackage{capt-of} \usepackage{subfig} \captionsetup[subfigure]{labelformat = parens} %\usepackage[demo]{graphicx} ...
3
votes
1answer
400 views

TikZ Matrix 'draw' alignment

Apologies if this has already been asked - I could not find it. The following is an example of what goes wrong: In this example I would like it to look just like a regular 2x3 table, but I think ...