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)

9
votes
1answer
896 views

Drawing a ring around a torus (doughnut) using TikZ

I was trying to draw a 2-torus (a doughnut) using TikZ, based on the answer to my previous question Moebius Strip using Tikz, and got the following The result is impressive! However, the vertical ...
5
votes
1answer
238 views

What is the best way to name nodes in TikZ?

I found there are several ways to name a node (please relate to the MWE for the different numbers) but I am wondering if there are other (rather "simple") ways of doing this: My current 'best ...
2
votes
1answer
223 views

TikZ: Accessing coordinates from coded points

Consider the code below. In the scope environment, I am using a clip to keep the ellipse between the points. From reading, I know with the let command I can access the coordinates of the points by ...
2
votes
1answer
193 views

node on top of Gauss distribution

following this thread: gauss curves inside minipage and node I have the following working example with a very specific problem. I want to include the sigmas above the double arrows, but without the ...
2
votes
1answer
480 views

TikZ: normal and tangent vectors added to ellipse 2

In Tikz: unit tangent vectors to a curve, Jake helped with adding a tangent vector to the ellipse. However, in that question, the ellipse was oriented with the semi-major and minor axis in line with ...
7
votes
3answers
300 views

TikZ intersection command not returning desired result

I am trying to place a node at the intersection of two lines, however I do not obtain the desired result. I would like the circled x in the pciture below to appear on the intersection of the two ...
2
votes
1answer
712 views

GNUplot command to produce tex files with 12pt font size?

I am using GNUplot in combination with the TikZ terminal by using the command 'set term TikZ standalone color solid size 3.25in,2.25in'. The first line in .tex file that is produced when running ...
19
votes
1answer
1k views

Draw custom frame around text

I would like to obtain a custom frame, which is different from the ones given by mdframed. Here is the image comes from the package fancytikzposter, which consists in a minipage inside a tikzpicture ...
8
votes
1answer
258 views

Drawing balls in a rectangle

I am trying to replicate the following figure here and this is what I have so far \documentclass[12pt,a4paper]{standalone} \usepackage{tikz,tkz-euclide,pgfplots} \usetkzobj{all} ...
6
votes
1answer
761 views

TikZ: Drawing an ellipse through two points

I am trying to construct a portion of an ellipse that connects point P1 and P2 but I don't know anything about the ellipse besides that F is one of the foci. All I know is that an elliptic arc ...
8
votes
1answer
483 views

gauss curves inside minipage and node

I am really new to Latex and this has been my place of reference for the last weeks, so I wanted to ask you about a really weird thing that I have no clue how to solve... Following this thread: ...
4
votes
1answer
2k views

Label and ticks using pgfplots

I am using pgfplots to plot simple functions. For example, \begin{tikzpicture} \begin{axis}[grid=major,xmin=0,xmax=1,ymin=0,ymax=0.5] \addplot[color=black] coordinates { (0,0.2) (0.5,0.2) (1,0) }; ...
6
votes
2answers
570 views

economic circuit

Having seen some examples of electronic circuits, I would like to make an economic one like this one: I haven't found any relevant example, so would like your help. In case that somebody is ...
0
votes
0answers
73 views

Enable rectangle to have a 3-D vision [duplicate]

How to draw a rectangle with 3-D vision, or 3-D rectangle. I also need to fill it with text.
2
votes
1answer
441 views

Problems with crossing over another line

So not too long ago, I was on here asking about a way to make a line on a Tikz image cross over another line by arcing over it. I was looking for a way to clean up a Tikz image that I had created for ...
3
votes
1answer
944 views

Use multiple tikz picture with onslide command in the single frame in beamer

I have multiple tikz pictures in the single frame in beamer. In the first tikz picture I was able to use the only overlay and onslide command. However, for the second picture I am not able to achive ...
3
votes
1answer
149 views

Persistent “hanging” tick label

I have sort of a strange problem. I produced a 3x2 plot array in Matlab, and removed all of the y-axis tick labels. The relevant code (for the problematic plot) is below \begin{tikzpicture} ...
14
votes
1answer
428 views

Theorem with separate tikz environments for header and body

My initial question: I'm writing my lecture notes in LaTeX and used some customized theorem environments with amsthm so far. Now I wanted to redesign those theorems with help of tikzpicture. That's ...
8
votes
1answer
1k views

Plot the probability density function of the gamma distribution

I want to draw gamma distribution with different shape and scale parameters. The following MWE displayed error. The error information is : Here is MWE: \documentclass[border=5mm]{standalone} ...
2
votes
1answer
167 views

Shorter way to color indices of a matrix?

I've made a bordermatrix with brackets [] instead of (), now there are these indices on the top and left side. In my case on the top they are u_1,v_1,u_2,v_2 and so on. On the left side they are ...
3
votes
1answer
619 views

Addplot3 with graphics / Image Offset to Axis

I'm currently working with tikz and pgfplots to set a few plots. It works marvelously for a lot of applications, add I have set a number of plots (especially surfaces from matlab) with help of the ...
11
votes
1answer
322 views

TikZ: What do I look up to find information on the let command in draw?

In one of my post, Jake used the \draw let to determine the arc between 2 lines. Where can I find information to better understand this command? Or what do I look up? Similar, I would like to learn ...
1
vote
0answers
143 views

How to generate a graphcis like a flowchart but with function plot? [closed]

I know that latex plot is really powerful. I think it can also work out for the attached figure as follows. Can I anyone help me out? Similar plot demonstration is also greatly helpful. Thanks in ...
4
votes
2answers
582 views

Tikz coordinates relative to a node, and outside it

Given a rectangular node X I have access to the coordinates (X.north), (X.east) and the like. However, I want to be able to draw two sides of a right-angled triangle on top of the node. For example, ...
4
votes
1answer
208 views

tree-dvips Alternative for Linguistics Document with pdftex

I'm attempting to find a way of linking two objects in avm.sty together. The result I want is exactly that specified here: http://www.essex.ac.uk/linguistics/external/clmt/latex4ling/avms/#4 I'm ...
5
votes
1answer
738 views

Combine pgfplots on common background

This image is two tikzpictures side by side, each with a newsprint background (thanks to Background image for pgfplots chart). I want them combined, so they appear on the same torn sheet of ...
3
votes
1answer
335 views

How to use only overlay between tikz picture and equation

I have a working example here. I want to display tikzpicture and equation one at a time. I don't know how to use only overlay here. \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{shapes, ...
5
votes
1answer
142 views

Positioning tikz draw-fill, nodes, etc

In another thread (Basic geometric shapes, sections, shading), I stalled figuring out how to position things properly. What follows is clearly wrong and indicative of almost completely missing the ...
4
votes
0answers
129 views

Points/Circles in graph with TikZ based on table within .tex-file? [duplicate]

Suppose I have a table such as \documentclass[ a4paper ]{scrartcl} \usepackage{ tgheros, booktabs } \usepackage[T1]{fontenc} \begin{document} \begin{center} \begin{tabular}{lrrrrr} \toprule Unit ...
3
votes
1answer
259 views

Cant scale x-Axis to textwidth

I want to plot some measured values. The y-axis contains the the voltage and the x-axis time stamps. I used matlab2tikz to create this plot: If I want to plot the graph, the x-axis is not scaled to ...
5
votes
2answers
577 views

Gradient colour in tikz pgfplot marker

I'm trying to replicate the dual colours of the circles in this graph: \documentclass[tikz,border={40pt 12pt}]{standalone} \usepackage{pgfplots} \usetikzlibrary{plotmarks} \begin{document} ...
6
votes
1answer
1k views

Fitting a curve from a table! (Tikz/Pgfplots)

I ploted the data from the table below (first vs. fourth column), 3000 1.2970e+00 0.198956 0.258046 3100 8.6050e-01 0.18747 0.161318 3200 5.7970e-01 ...
1
vote
1answer
239 views

How can I adjust axis labels in TikZ? (no pgfplot)

I'd like to have the labels for the x-values go 0,0.1,0.2,0.3 and then go up to 1.6 (which is at 8cm). However I don't understand the \xtext-method well enough. Could someone please point out how the ...
5
votes
1answer
3k views

Creating a colormap in tikz/pgfplots, no axis

I'd like to replicate this colormap in TiKz or pgfplots. Let me clarify, I don't need a plot of any kind, these are screen-shots from another application. But since the labels on the pic below are ...
5
votes
1answer
322 views

pgfplots pins in front of the axes

I wish to draw two pins on a plot: \documentclass{standalone} \usepackage{pgfplots,tikz} \begin{document} \begin{tikzpicture} \begin{axis} \addplot {x^2} node[pos=1,pin={[pin distance=0.5em, ...
5
votes
2answers
4k views

Using gnuplot in tikzpicture enviroment using pgf-package

I´m trying to use gnuplot in the tikzpicture enviroment with the pgf package. Example \documentclass[paper=a4,12pt,version=last]{scrartcl} \usepackage[miktex]{gnuplottex} \usepackage{pgfplots} ...
1
vote
1answer
3k views

Translating Matlab figures into TikZ

When ever I want to write a research paper and print the simulated results (by Matlab) into an .eps file, I think of a direct way of translating Matlab fig files into LaTeX (especially TikZ). Is ...
3
votes
1answer
5k views

Replacing axis labels with text in Tikz

I am plotting 11 points in a scatter plot in Matlab and replacing the x-axis labels 1 - 11 with strings using: figure; grid on; hold on; box on; scatter(2:10,100*d1(1,:),'rs','filled'); ...
3
votes
1answer
1k views

Undefined control sequence \text when importing Matlab figures

I'm following a tutorial to import Matlab figures through tikz, however after trying to compile the .tex file I get the following error: ABD: EveryShipout initializing macros (./mysphere.tikz ! ...
3
votes
1answer
322 views

mirror node shape

I have to draw a diagram and would like to fit it on a page, thus i have not much space. Therefore I have to "stack" some gates, however it would be beneficial if I could put the outputs of the logic ...
7
votes
1answer
534 views

Exact scaling with TiKZ-scale

I am using tikzscale to scale all my figures to the same size. This works quite nicely, but sometimes there is a difference in the scaled width. I can manually tweak the scale parameter (using pdfcrop ...
6
votes
2answers
510 views

How to draw straight lines between nodes in commutative diagram without using TikZ matrix library?

I want to draw a commutative diagram with TikZ as follows: \usepackage{tikz} \usetikzlibrary{positioning} \begin{tikzpicture}[auto] \node (S1) {$\sigmaSet \cap X_N$}; \node (S2) [below= 2cm and 4cm ...
4
votes
1answer
391 views

How to shift a subtree of a tikz tree horizontally

how can I shift a subtree of a tikztree/qtree to the right without affecting the rest of the tree? Consider the following tree: \documentclass[tikz]{standalone} \usepackage[utf8]{inputenc} ...
3
votes
2answers
1k views

tikz circle operation and fill

I would like to add circles on paths. for all circles except one I want them to be filled, therefore I set every circle node/.style={fill}. However there is one circle I do not want to be filled, ...
4
votes
1answer
604 views

TikZ pictures does not appear in poster

I'm making a poster with LaTeX using the template available here http://www.damtp.cam.ac.uk/user/eglen/damtp/cuposter/. For some reason, images created using TikZ do not appear in the poster. It ...
16
votes
7answers
3k views

Can we mirror a part in tikz?

After drawing a part in TikZ, is it possible to mirror that part with respect to some axis or line? MWE \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} ...
6
votes
2answers
555 views

Plot basic complex transformation in LaTeX

I want to first draw a shaded region on a xy-plane: 0≤x 0≤y≤π and then the image of the above region mapped onto a uv-plane by the transformation f=exp(z), i.e. the shaded region: ...
13
votes
1answer
3k views

Remove the scientific notation which is unreasonable

From the original data, we know that they are nearly 0.087 rather that 0.087 x 10^-2. Why is there scientific notation (10^-2)? It looks ridiculous. Please help me figure it out. Thanks very much! ...
8
votes
1answer
405 views

TikZ: Node placement best practices in an already cramped figure

How can I place more nodes in an already cramped figure? Here is intended outcome: Here is my current figure: I am looking to add the velocity vector notation and the time notations (t_f < ...
4
votes
1answer
1k views

PGFplots axis with arrow tips at the end

By using the following code: \begin{tikzpicture} \begin{axis}[xmin=0,xmax=40,ymin=0, ymax=42, xlabel=Φρούτα,ylabel=Γάλα] \addplot [color=Blue] coordinates { (0 ,40) (20, 30) (30, ...