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)

3
votes
1answer
123 views

How to reduce the width of the strip?

I wish to reduce the width of the following mobius strip of our Mathematical Society. The resulting image should be more like the following The codes below gives: \documentclass[tikz]{standalone} ...
4
votes
1answer
41 views

Parallel edges in Graph using \path

I'm trying to get Parallel edges between nodes. I recognize that very similar questions have been asked before, however; Those solutions don't seem to have worked on my problem, though my ...
2
votes
2answers
70 views

How to scale the colorbar to data in pgfplots

Good morning, I have some .txt files that contain 3 columns of data: the first one corresponds to the x-axis value of each point, the second one corresponds to the y-axis value of each point, and the ...
4
votes
2answers
183 views

Making arrows parallel in commutative diagram in Tikz

I would simply like to make all the arrows that should be parallel in my commutative square, actually parallel. Here is my diagram: The outer square displays functions from the displayed domains and ...
0
votes
3answers
74 views

How to draw line passing three points in xy-plane

My question is , In my MWE i would like to draw a line passing through three points (-100, 700) , (100, 600) and (300, 500). further how can i label that line i mean how can i write the mathematical ...
5
votes
1answer
129 views

Draw background of water in cone

According to this answer I want to draw a partial background in a cone like this but it seems hard to me take the background from the code in the previous answer. then tweak it until it looks like ...
3
votes
1answer
115 views

How to draw a Curvilinear system in Tikz/PStricks?

Can someone help me draw this coordinate system? Source: https://en.wikipedia.org/wiki/File:General_curvilinear_coordinates_1.svg What I Have Done So Far: \documentclass{article} ...
2
votes
0answers
38 views

problem when using scope and rotate with tikz

I wish to take this picture with tikz turning figure generally this type of scheme does not ask me problem and I wrote the following code \documentclass{article} \usepackage{tikz} ...
2
votes
0answers
53 views

How to draw (Cartesian, cylindrical, and spherical) coordinates and differential elements?

How to draw the following figures? I tried to do it myself, not an easy job, apparently! I did also find these relevant posts: For the 1st pic: 3D Cube within a cube? For the 2nd & 3rd pics: ...
2
votes
1answer
52 views

How to draw line from edge of rectangle to the opposite side

I want to define command which draw line from edge of a rectangle occupies page area to the opposite side. To draw the line I do some manual adjustments to connect both sides with rectangle Here a ...
2
votes
1answer
39 views

Scale a TikZ picture according to current font in math mode

I want to define a simple shape and use it as a binary math operator. This implies that it should scale when used as a subscript (e.g., the same behavior as \bigcirc). My attempts so far led me ...
4
votes
1answer
103 views

Drawing specific Feynman diagram with TikZ

I would like to draw the Feynman diagram shown in the picture below with TikZ. Edit: The code I have so far is \tikzfeynmanset{ every vertex/.style={red, dot}, every ...
2
votes
1answer
53 views

I put \pgfresetboundingbox after \clip, what should the bounding box be?

Short question After a \clip and a \pgfresetboundingbox, the bounding box is permanently (0,0)rectangle(0,0). How can I turn on the bounding-box calculation and obtain a fairly small bounding box? ...
1
vote
0answers
88 views

Making a timeline in Tikz?

I am working on my thesis and I would like to make a simple "technology timeline", probably something like this (although I prefer horizontal timelines): Are there useful packages that I can use? ...
1
vote
1answer
76 views

How to connect nodes with circular arcs in TikZ?

I need creating a diagram like the one in the picture below. After creating nodes, how do I connect them with circular arcs centered at the centre of the triangle? Thank you all!
2
votes
1answer
64 views

Load custom TikZ nodes from an SVG file?

I want to use custom nodes in TikZ, with shapes loaded (or otherwise converted) from an SVG file because I don't have enough time to learn pgf to draw the shapes I want. How can I do that?
1
vote
0answers
15 views

Use tcolorboxes as nodes to create arrows with tikz [duplicate]

I'm trying to draw an arrow between 2 tcolorbox. But I don't know how to do it, because tikz requires "nodes" If I have this: \documentclass{article} \usepackage[utf8]{inputenc} ...
8
votes
1answer
132 views

Error when implementing TikZ-Feynman package

Today I downloaded and installed the new TikZ-Feynman package to draw Feynman diagrams. I included the packages \usepackage{tikz} \usepackage{tikz-feynman} \tikzfeynmanset{compat=1.0.0} ...
2
votes
0answers
130 views

how to draw this using tikz?

I am trying to illustrate something like this using tikz or pstricks. I almost have what I want, which is essentially a 3 dimensional object spanned by the vector. I would like to add faces that ...
3
votes
1answer
80 views

Decorating a page with pgfornaments

I want to decorate pages in my document by using the package pgfornaments. To make things easier, I created the command \pageornament: \newcommand{\pageornament}[2]{% \begin{tikzpicture}[remember ...
3
votes
1answer
62 views

setting beamer background with rounded corner rectangle

I am trying to set my background for my beamer theme. I want a white rectangle with a rounded north east corner. I used a provided code. My outer theme looks like this: \mode<presentation> ...
4
votes
1answer
58 views

Why can’t I use “execute at begin node” together with “align”?

I want to design a tikz style that will modify a node content according to some function of mine. As suggested in an answer to the original question, I can use the “execute at begin node” key for ...
1
vote
2answers
57 views

Braces alignment in Tikz

I have the following code to create a timeline with events labelled. In the second figure, between the events $(\tau_1+\frac{x_1}{K_1},x_2)$, I would like to place a curly bracket below, saying ...
3
votes
2answers
94 views

create node of own macro with tikz

i would like to draw a network of multiple queues. To build one node i would like to make a node out of this macro (DrawStation) and give it a name. \usepackage{tikz} \usetikzlibrary{positioning} % ...
3
votes
0answers
55 views

Specifying the point via “intersection of” in TikZ - a problem

I aimed at drawing a square (using TikZ) with a red dot inside it, placed on the intersection of its diagonals: And while the following method worked fine: \documentclass[12pt]{article} ...
0
votes
0answers
45 views

problem with calendar in Tikz since upgrading to debian 8

I recently upgraded to debian 8 and one of my latex file does not function properly anymore. pdfTeX version is no: Version 3.14159265-2.6-1.40.1. I do not know what it was before that. Here is a ...
1
vote
2answers
90 views

Simple Ramp Diagram with Ball

How would I make the following diagram and label the values? I would prefer it if instead of a box, there were a ball rolling down the ramp and the horizontal ground displacement were labeled as well. ...
1
vote
0answers
27 views

Tikz package to draw series-parallel graphs with many vars in series/parallel?

Goal versus the result: notice that the variables 2 and 3 on the right are inferior to 1 while the purpose was to have the variables 1, 2 and 3 equal like on the left. The code from here and its ...
1
vote
0answers
37 views

How to draw a background in tikz baposter?

How I can do the following picture in tikz for put in a poster?
1
vote
1answer
34 views

Automatic position of variable name in axis with pgfplots

I am looking for a code - probably inside {axis}[options] - that automatically puts the variable name (for example, x, and y) at the end of each axis. I am aware of the method to do this manually, ...
1
vote
2answers
45 views

Tikz node text vertical align with linebreak

I want to vertical align text in a chain of nodes. One node has a linebreak. What is the best way to do this? This is my current example: \documentclass{minimal} \usepackage{tikz} ...
5
votes
2answers
65 views

tikz bounding box / cropping: too much space for curves

I have a problem with TikZ's auto-cropping/auto-calculating the bounding box for a tikzpicture. Look at the following example: \documentclass{article} \usepackage{tikz} \begin{document} Lorem ipsum ...
1
vote
1answer
39 views

geometry margins and text width don't add up

I'm making a set of cards with text elements read from a csv file and placed on each card. I've simplified my layout problem in the example below. (The full version has additional graphics, hence my ...
-3
votes
0answers
42 views

How to convert a RGB color code to rgb color code?

I am using a logo produced from a pgfplot in which the color is defined as colormap={mygreen}{rgb255(0cm)=(3,151,201); rgb255(1cm)=(13,151,211)} and wish to use the same color for the slogan. Then I ...
0
votes
0answers
25 views

Approaches to automatically scale figures

I am trying to come up with a general rule of thumb to scale figures such that their vertical size and horizontal size does not exceed a certain limit (assume 300pt). The monkey patching way to do ...
5
votes
1answer
63 views

Drawing solid-circle or dots in legends

I'm trying to create plot with solid circles in the legend. Please see the image below for what I've got so far: I'm unable to get my legend right, ideally I would like to draw solid red circle ...
6
votes
1answer
63 views

tikzpicture negative gamma function

I'm trying to plot the following graph in tikzpicture: However, I have a hard time defining the function properly, as my MWE currently is this: \documentclass[12pt]{article} \usepackage{pgfplots} ...
4
votes
1answer
49 views

TikZ: Drawing a line segment from arrowhead to node

How can I make the line segments going to the arrowhead labelled "ds" in het picture below actually go to the arrowhead point? I faked it by using a coordinate near the arrowhead, but it just looks ...
3
votes
1answer
89 views

How to control where curves are in tikz

I am attempting to draw the following graph in tikz. My attempt so far has gotten me to here. \documentclass[border=3mm]{standalone} \usepackage[dvipsnames]{xcolor} \usepackage{pgfplots} ...
3
votes
2answers
53 views

How to have an empty TikZ picture (with absolutely placed content) be ignored for spacing?

I want to use a TikZ element to place absolutely on the page. Unfortunately, no matter what I do, the TikZ picture is treated like a character, which causes it to be treated like a paragraph when not ...
2
votes
1answer
41 views

How to add symbols on edges to say they are same length?

There are some edges having the same length. I want to add little symbol on it as in the picture: How do I do? Thanks. \begin{tikzpicture} \coordinate (Base1) at (0,0); \coordinate (Base2) ...
0
votes
1answer
43 views

Combine tikzpicture and tikztimingtable enviroment

As the known about tikz-timing package, we have: tikztimingtable enviroment \begin{tikztimingtable} Name & hLLLLh \\ Clock & 20{ c } \\ Signal & z7D { Text } z \\ ...
5
votes
1answer
54 views

Strange interference between two TikZ pictures with common “\tikzset”

Please, consider the following MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc,positioning,chains,scopes} \tikzset{ node distance = 10mm and 30mm, on grid, start chain ...
4
votes
2answers
61 views

angle appear longer in tikz

The tip of the red angle sign is bigger. How to fix this. \begin{tikzpicture}[thick, scale = 1.5, transform shape] \coordinate (origo) at (0,0); \draw (0,0) ellipse (2cm and 1cm); \draw [->] ...
5
votes
2answers
152 views

Surrounding an arbitrary path?

Given an arbitrary path in Latex, e.g. drawn with Tikz, I want to surround this path by a larger path which has a fixed distance to the original path, e.g. 1 cm. Here is a sketch of it: Note that ...
4
votes
1answer
63 views

Using tikz inside align* environment

I am new to TikZ and I am trying to use it inside the align* environment. The approach I am taking works within the center environment but not in the align environment. There are no errors but the ...
3
votes
0answers
44 views

Tikz: Add arrow tip to path instead of replacing part of path

When I add an arrow tip to a path, a part of the path is replaced so that the overall length stays the same: \documentclass[margin=10pt]{standalone} \usepackage{tikz} \begin{document} ...
1
vote
1answer
42 views

Define position of line by parameters (Tikz)

It is possible to give in the coordinate of the point by an outside variable? For example, I have a simple line: \begin{document} \draw (0,0) -- (5,5); \end{document} I would like to parametrize ...
0
votes
0answers
34 views

Circuitikz: Package pgfkeys Error

When trying the minimal example for circuitikz: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{circuitikz} \begin{document} \begin{center} ...
2
votes
2answers
93 views

How to limit the range of a function in TikZ?

I have code like this: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \draw [->,thick] (-5,0) -- (5,0) node[right] {$x$}; \draw [->,thick] (0,-5) -- (0,5) ...