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)

0
votes
1answer
72 views

How Can I Shorten This?

I am trying to create the marks needed for this graph and this process is very lengthy. Is there a shorter way I could do this? I am trying to create a mark at every 1/6 mark between 1 and 6 so that I ...
1
vote
1answer
39 views

metapost annotation

Metapost is a powerful tool for drawing, but not sure if it's more easier than tikz for annotation. Is it possible to draw this annotation graph with metapost? tikz code: ...
1
vote
1answer
22 views

I cannot seem to figure out how to move the location of the legend of my tikz graph

I'd like to move it into the top left from the top right, but nothing I try works. \begin{figure}[H] \caption{Stress-Strain Curve, Mix C} \begin{tikzpicture} \begin{axis}[xlabel=Strain ,ylabel=Stress ...
3
votes
1answer
58 views

arrows: flipping |<->| when the node is too big

When the node is too big, we tend to switch the arrows to ->| 2cm |<-. Is there a smart way to do this without drawing two separate lines? We can see from the image [>= stealth, ...
6
votes
2answers
204 views

How do I draw a box around a venn diagram

I created this venn diagram, and I need to put a box around it as a border, how would I do that? \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=3, blend group=screen] \fill[lightgray] ...
6
votes
3answers
362 views

Tikz: drawing in perspective

I am working on drawing a beam in perspective. I have my point I want to use as the perspective point (10, 3). What would be the way to draw along this line? For instance, consider ...
2
votes
2answers
73 views

Plotting and labelling points on a graph

I'm using Beamer and I desperately need to have a picture of the following image: the elliptic curve $y^2=x^3+17$, with points R = (-2, -3), -R = (-2, 3), P = (4,9) and Q=(2,5). I'd also like a ...
2
votes
1answer
50 views

Positioning Arrows in tikz

how do I placed this arrow in this manner: \tikzstyle{inpro}=[circle, thick, draw=yellow!50, fill=yellow!20, minimum size=3mm] \tikzstyle{mater} = [rectangle, thick, draw=green!50, fill=green!20, ...
5
votes
2answers
154 views

TikZ: Draw a unit vector

I have a two point p1 and p2: \node (p1) at (-1,-2) [point, label = {left:$P_1$}]{}; \node (p2) at (3, 4) [point, label = {below:$P_2$}]{}; How to draw a unit vector beginning at the point p1 ...
1
vote
1answer
47 views

How to label subfigures in Tikz package?

Making labeled subfigures is a bit tricky using the tikz package. Could someone please show me how to provide each subfigure its own letter (A for the left subfigure, B for the middle figure, and C ...
2
votes
1answer
108 views

TikZ: use-provide UML-style

I would like to draw some components diagrams with use and provide ports with TikZ. But the way I want them to look is quite different from what tikz-uml since my needs are differents. I do not focus ...
1
vote
2answers
71 views

Memory error on writeLaTeX - Externalize or other solution to build dense plots docs

TeX capacity exceeded, sorry [buffer size=20000 There are questions about memory exhaustion when building docs with tikz plots in it. I could not find a solution, though. Downsampling is not an ...
0
votes
1answer
70 views

Tikz Diagram: Block Diagram [duplicate]

I'm looking to create the following block diagram in Tikz. Any suggestions? Tips?
0
votes
0answers
47 views

Can't Use TikZ Package

I am trying to create graphs using the \usepackage{tikz} and it keeps saying: ! LaTeX Error: File `tikz.sty' not found. Type X to quit or <RETURN> to proceed, or enter new name. (Default ...
0
votes
1answer
95 views

Looking to draw this block diagram in Tikz

I'm looking to create something like this in Tikz environment. Any tips? help?
5
votes
0answers
47 views

Tikz arrows on loops not showing up

I am trying to draw a diagram with arrows between boxes. Most of them show up fine, but an arrow head on a loop from a node to itself does not. I have defined a custom arrow head since the default ...
5
votes
1answer
64 views

Single year interval on dateplot x axis

I am plotting a time series with weekly resolution. Minimal example: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \usepgfplotslibrary{dateplot} \begin{document} ...
2
votes
1answer
65 views

Tikz: Drawing an S-shaped line

I'm creating a presentation using the beamer class, and I'm having issues trying to create an S-shaped arrow. Specifically, I have the following so far: ...
2
votes
0answers
42 views

Adjusting Text Vertical Space between lines in Tikz

I have this flowchart and the preamble is set to add a vertical space between lines and when I compiled this flowchart it follwed the preamble i guess. how can I adjust the vertical spaces of lines ...
3
votes
0answers
64 views

Why does the samples option conflict with fp?

Minimal working example: \documentclass{amsart} \usepackage{fp} \usepackage{tikz} \usetikzlibrary{fixedpointarithmetic} \begin{document} \begin{tikzpicture}[scale=2, fixed point arithmetic] ...
5
votes
2answers
181 views

Lightning bolt in tikz?

I would like to include a small lightning bolt in a tikz diagram that I have. Is there something in an existing tikz library that I can use? I couldn't find anything in the tikz manual. I'm using the ...
3
votes
1answer
58 views

calculating polar coordinates with tikz

Random polar coordinates has an example of the general sort of syntax I'm aiming to follow. For some reason the result is not working as intended. In the MWE, I've commented out the line where I ...
1
vote
1answer
63 views

How can I draw a line to the vertices of an image in tikz

Basically what I am trying to achieve is the following: - Place 2 images horizontally side by side - Inside the left image (image_1) draw a small red rectangle - Connect the vertices of that ...
5
votes
2answers
88 views

Why does \ifnum not work inside of TikZ style definitions?

I'm trying to write some conditional TikZ styles. This has been tried here before, but I think never in a completely satisfying way. My try is this: \documentclass{article} \usepackage{tikz} ...
8
votes
1answer
118 views

Tikz path with changing color and arrow decorations

How does one draw a path that is changing color as a function of the path length and is decorated with arrows at the same time? Basically, I want to combine these to figure into one: The code for ...
4
votes
2answers
184 views

What is the simplest way to get graphs for each answer choice like in the example below

I am trying to make an exam with multiple questions having graphs as answer choices. I want them to be aligned as shown below. Thank you in advance!
1
vote
2answers
77 views

Tikzpicture/figure shift

I created a figure in Inkscape and exported it to TeX. I used bezier for drawing curves. When I import this to my text, there is a free space between the text and the picture, because some bezier ...
1
vote
1answer
60 views

Refers to a node on a chemfig inside a node in a tikzpicture. Macro definitions

Consider the minimal example: \documentclass[12pt]{article} \usepackage{tikz} ...
4
votes
1answer
44 views

Labelling Multi-“node” Path

I would like to ask for a path drawn with the following command \draw [->] (4) to [out=225,in=0] (11) to [out=180,in=-90] (12) to [out=90] (2); How can I add a sloped label to the path. ...
6
votes
1answer
92 views

Options for tikzcd

I like to pass options for a specific column (or row) in a tikzcd diagram. The obvious choice column x/.style=... does not work. I think the problem is connected with the hierarchy of styles. Code: ...
0
votes
1answer
62 views

I need this tikz and tabular sketch at the right of my presentation, and an itemize at left, but too much length

I need this tikz and tabular sketch at the right of my presentation, and some text at left. Unfortunatly the text is at left but in the down part of my frame, I need it at the center and starting ...
1
vote
0answers
36 views

multi-row/column and figure inside table/tikzpicture

Im having some issues with my current try to code something that i aim to look like; I am in no way an experienced latex writed, so i would love to take inputs on every part of the code, even if its ...
0
votes
0answers
48 views

ER Cardinalities in LaTeX with TikZ package

Is it possible to put cardinalities in my diagram? Please help. Thank you :) \documentclass[a4paper ,11 pt ,x11 names]{article} %Gummi|062|=) \usepackage{tikz} ...
4
votes
1answer
78 views

Tikz “none at all” style

I'm creating a customisable TikZ pic where I want to enable or disable certain parts of it (e.g. some labels). Is there a style that I can pass to a node, pic, path or so that doesn't visibly draw it? ...
4
votes
1answer
77 views

Coordinates of corner of histogram bar

How can one get the coordinates of the top right corner of a bar in a histogram? So far, I have just tried to make the lines fit... \begin{document} \usepackage{tikz} \begin{tikzpicture} ...
6
votes
2answers
67 views

Combination of arrowed list and boxes in tikzpicture

I am trying to make a figure showing some info using tikz. At first it looked OK, but after a while everything had moved so nothing was aligned. I figured that there probably is a much better way to ...
1
vote
1answer
82 views

I want to organize three images in a frame, simulating the effect of a zoom,

I have three images, I want to organize them in a frame to cause the effect of a zoom, similar to the image I have posted above. In this image the galaxy is at left, but i want to learn how to ...
6
votes
2answers
148 views

Draw on background rectangle

I have the following code: \documentclass[11pt,a4paper]{article} \usepackage{tikz} \usetikzlibrary{backgrounds} \begin{document} \begin{tikzpicture}[framed, background ...
1
vote
1answer
40 views

configure dash length in circuitikz

I'm trying to manually set the dash length while using \usepackage{circuitikz}. I only know about the options \draw[dashed] or \draw[densely dashed] . But how can I get the dashes even shorter? Or ...
5
votes
1answer
125 views

How can I draw a relation with rectangular nodes?

I am trying to use nodes to draw a simple relation in two figures. Basically what I want looks like this: How can I do that using tikz? The two relationships should be next to each other. I think if ...
4
votes
3answers
212 views

Drawing and labeling the sides and angles of a right triangle

The following code instructs TikZ to draw a right triangle AQP with a right angle at Q. I mark the length of line segment AQ by y. How do I rotate by 90 degrees the letter y so that it is upright? I ...
2
votes
3answers
99 views

How to draw a rectangular cuboid with nodes on both sides

Could someone please help me to produce a pair of the following pair of objects: on the left hand side we have a rectangular cuboid (2x3x3 ''cube'') with nodes on both sides connected by dashed lines ...
4
votes
2answers
88 views

Is it possible to use beamer's overlay specifications in other documentclasses?

I'm writing an article that involves a lot of diagrammatic calculus, that is, there is a big TikZ picture with nodes and lines and that picture gets modified slightly in each step of the calculation. ...
1
vote
1answer
71 views

Get pre-defined colors into table in TikZ

I'm doing some plots in TikZ via matlab2tikz, which gave me the following output: \documentclass[a4paper]{article} \usepackage[dvipsnames]{xcolor} \usepackage{pgfplots} \usepackage{tikz} ...
3
votes
1answer
99 views

Why can't I use a variable from a \foreach loop inside a calc library macro?

Question Why can't I use the \foreach variable as a percentage in my calculations with the calc library of TikZ? Sample Code In the following, I could replace the variable \mypercentage with an ...
19
votes
1answer
327 views

Length of curve in TikZ

Is it possible to compute the length of a generic curve in TikZ? An answer to this question would solve TikZ dashes and closed curves as follows: Let lc be the length of the curve and lp the desired ...
1
vote
0answers
24 views

tikz: wires not connecting up to the nodes [duplicate]

I don't know why the wires are not connecting upto the nodes (a) and (b). Can someone please help? Thanks in advance. \begin{center} \begin{tikzpicture}[circuit logic US] % The two gates ...
9
votes
2answers
177 views

TikZ dashes and closed curves

When a closed curve is dashed, the dash spacing at the start/end point can be very unfortunate. Is there an option to tell TikZ that it should slightly adapt the dash spacing to avoid such cases? (I ...
1
vote
0answers
44 views

Missing file error with Tikz intersections [closed]

I'm using TexPad for Mac, and I got stuck for the following error, how can I do? I've tried to install some package but it didn't work! Or at least I didn't find the right one!
5
votes
3answers
160 views

Help designing a TiKZ drawing

I've been using LaTeX for a long time, however I have never been into the TiKZ class, I need to create the following drawing, I only have to draw the boundary of the mesh and the dots (not the ...