Questions tagged [tikz-pgf]

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.

Filter by
Sorted by
Tagged with
0
votes
1answer
28 views

How to draw a CW complex diagram for a torus

I want to draw the following picture with tikz. I found this Tikz: Once punctured torus? post which is extremely close to what I want, but I am not good enough at tikz to modify this. Any help would ...
0
votes
1answer
22 views

Positioning of tikzpicture in tabularx

How can I remove the space above and left of the tikzpicture? \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman]{babel} \usepackage[margin=...
0
votes
0answers
9 views

Centering rotated bar chart value

Using the following bar chart one can see that the label isn't really centered over the bar but placed more on the right. How can I center the value? The alignment has to be like that (rotated and ...
2
votes
1answer
35 views

Change size of text in tikz decoration

I'm trying to draw some text along an arc, but I can't see how I can change the font size of the text I'm drawing. \foreach \j/\k/\p in {1/30/December,31/61/November}{ \draw [decoration={text ...
1
vote
1answer
49 views

Calculation with Large numbers

I have the following code: \documentclass[tikz,border=5]{article} \usepackage{tikz} \usepackage{xfp} \usepackage{amsmath} \usetikzlibrary{math} \usepackage{fp} \begin{document} \tikzmath{ real \x; ...
1
vote
1answer
49 views

Remove unwanted gap before the arrow ending a bezier curve in TikZ

Feeding \documentclass{article} \pagestyle{empty} \usepackage{tikz} \usetikzlibrary{calc,bending} \begin{document} \begin{tikzpicture} \node[circle,draw] (N) at (15em,2ex) {}; \coordinate (C) at (...
0
votes
1answer
48 views

Tikz Overlay with details

I'm trying to detail my plots using TikZ overlay. My current code is: \documentclass{article} \usepackage{tikz} \usepackage{commath} \begin{document} \begin{figure*} \centering \begin{tikzpicture}[ ...
0
votes
0answers
23 views

How to get Y coordinate of the current line

I'm writing a TeX code that will generate a long table, spanning pages, taking an external TeX file as input. I want to draw an ellipse around certain data that will always be in the same column. This ...
1
vote
1answer
25 views

Iterating through two lists with different lengths

I'm trying to draw a calendar type thing in TikZ, and need to place the days of the week around a circle. I can't see how I can repeat the 7 day pattern over a range of 365 positions. This works: \...
3
votes
1answer
61 views

How to combine equal plot styles of different plots to a list with one style for every plot?

See the lines 62 to 97 (root locus 1 = {) of my MWE. I have to define the same plot style for every plot. Can one combine these lines similar to the lines 54 to 61 (visualize as line/.list = {) of my ...
4
votes
1answer
138 views

Matrix to triangle

Is there a simple way to represent a triangular matrix as a triangle, like Pascal's triangle? I've seen various solutions that display Pascal's triangle, but I think that there should be a straight-...
3
votes
1answer
283 views

Why is my tikz code not compiling in Overleaf

I am writing a latex code for a research article. My experience with latex is limited but I know the basics. My code looks like below. Inside the document, I am trying to include a tikz code for an ...
1
vote
0answers
35 views

Tikz nodes fill n% [duplicate]

Is there a way to fill a node for n%? E.g. 50% \documentclass[11pt]{article} \usepackage{tikz} \tikzset{ mystar/.style={ anchor=outer point 3, draw, inner sep=.15em, star, star ...
1
vote
1answer
40 views

Writing chemical formulae on a curve with tikz and mhchem

\documentclass{article} \usepackage{tikz} \usepackage[version=4]{mhchem} \usetikzlibrary{decorations.text} \begin{document} \begin{tikzpicture} \node (One) at (-3,0) [shape=rectangle,rounded corners,...
0
votes
1answer
34 views

Brace under an expression without modifying its position [duplicate]

I would like to draw a brace under part of a mathematical expression. I can do it using the command \braceB defined as follows: \documentclass[parskip]{scrartcl} \usepackage{tikz} \usetikzlibrary{...
0
votes
1answer
36 views

Circular cross-references in tikz?

I stumbled on a strange behavior with tikz. Here is a minimal example: \documentclass[parskip]{scrartcl} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node{ \tikz[remember picture] \...
0
votes
1answer
61 views

How to normalize dataset in correct way using pgfplots?

I have a large dateset where one column is: 1 1+n ... n I need to draw plot with coordinates from 0 ... 1. How do to it with pgfplots? Need to produce plot with y (second column) from 0 to 1. My ...
0
votes
2answers
48 views

Pass multiple keylists

I want to create a macro that will draw a complex shape with several parts (like a circle and a rectangle): \newcommand{\drawCircleAndRectangle}[1][]{% \draw[%my or default circle style props%] (0,...
4
votes
1answer
60 views

tikzposter cannot display accented characters from the T1 font

The tikzposter has an issue in displaying accented characters from the T1 font. For example, \DJ (Đ) is displayed as a black square. I would like to know if there is a way to fix this. Thank you in ...
2
votes
1answer
49 views

TikZ figure using nodes and arrows

I am planning to draw the following figures. The arrows are drawn by hand, they should be rounded. All I come up with the following MWE. \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc}...
0
votes
0answers
17 views

TikZ - Adding drawing-like arrow line labels & Creating Boxed Captions [closed]

While reading some course notes for a class I'm studying for, I came across the following, which I believe is made in TikZ: It looks great and I would like to be able to draw a graph like so; however,...
5
votes
2answers
231 views

Is there a fastest way to draw staircase functions with tikz?

I've been working on a graph for a staircase function, but my code is a mess. Is there a way to make it easier to plot this kind of function? \documentclass[border=1 cm]{standalone} \usepackage{tikz} ...
4
votes
1answer
169 views

Using tikz to draw arrows in text

I am trying to do the following: where I want to draw the up and down arrows within text. I first assumed it to be tikz, so below is my MWE. It is weirdly shifted up a little bit, so please help me ...
0
votes
1answer
34 views

pdflatex doesn't allow me to enable system calls from another directory

I am trying to save the plots in my file into separate PDFs. My file is called my_file.tex located in /full/path/to/my/file This is my_file.tex: \documentclass[11pt]{article} ...
9
votes
2answers
318 views

Modular Transformation in TikZ

I would like to recreate the following image in tikz, without the d part, where the torus a is up in the middle and the torus b and c are under a to the left and right with the T and S arrows pointing ...
1
vote
0answers
57 views

Recursive definition of the Cantor Staircase

I'm not the first one to try to draw the Cantor staircase, but I would like to understand why my code doesn't work. This is a minimal example : \documentclass{article} \usepackage{pgfplots} \...
0
votes
0answers
47 views

Highlighting of TikZ figure

I'm looking for a way to highlight a particular area in a TikZ figure I generated. To be more specific, I have a TikZ figure that illustrates there are two octahedral. After I have shown this figure ...
0
votes
0answers
37 views

TikZ: Is there concept of layouts in tikz (which I could use in composite pic's)?

In Qt there is concept of layouts (for example, vertical layout arranges all objects vertically and possibly aligns them, horizontal - arranges horizontally, etc...). I am trying to solve a problem ...
1
vote
1answer
39 views

Creating a Box which is not descendant or the first node

Is it possible to create a box at the same level as the Children or Grandchildren but not a descendant from the first node (oil wealth)? Think of an isolated box called 'ABC', which does not have an ...
2
votes
2answers
86 views

labels with faIcon and arrow positioning

How can I move the (above and below) arrows a little closer to each other?, and How to put labels under the \faIcon symbols? \documentclass[a4paper]{scrartcl} \usepackage{amsmath,amssymb,amsfonts} \...
0
votes
1answer
26 views

How do you fit flowchart and two tables into one page [duplicate]

So I have this flowchart and two tables and I needed it to fit in one page. How do I do it? Here's the code: \documentclass[12pt,twoside, a4paper]{report} \usepackage[utf8]{vietnam} \usepackage{...
1
vote
1answer
41 views

Drawing arrows on sides of a node

I'm stuck a little with TikZ, I've this example where I would like to add Yes /No arrows on the right and left sides of the Finished? block. So far, the arrows show over the block also the spacing is ...
2
votes
1answer
74 views

How to recreate this conformal map with TikZ?

How to recreate this conformal map with TikZ?
1
vote
1answer
45 views

How do I balance the text with the flowchart

So I have this normal text that is bordering 2 elements: section and the flowchart. The text unfortunately is close to the flowchart but I don't want that. The thing that I want is for the text to be ...
0
votes
2answers
113 views

How to create these graphics?

Anyone have any idea how to go about creating these charts?. Thank you in advance for your help I have only this: \documentclass{article} \usepackage{polski} \usepackage{amsfonts} \...
3
votes
2answers
71 views

curly braces around set of nodes with some text

Is it possible to put curly braces around a set of nodes with some text near the bottom right of the brace. \documentclass[a4paper]{scrartcl} \usepackage{amsmath,amssymb,amsfonts} \usepackage{tikz} \...
0
votes
1answer
39 views

Tikz element above an EXISTING figure (beamer)

I am struggling placing tikz element above an existing figure (with caption) placed in a beamer presentation. I want an overbrace and an arrow appearing in my presentation above my previous figure. I ...
1
vote
1answer
28 views

The option shorten (from nicematrix) does not seem to work for OverBrace command

I am trying to use the option shorten with \OverBrace and \UnderBrace commands from nicematrix. it appears to me, however, that it works only for \UnderBrace My MWE \documentclass{book} \usepackage[...
3
votes
1answer
66 views

Legend with marks and loosely dashed

I have a problem with the visibility of the mark denoted by X in my legend, using a loosely dashed line. How I can make it more clear, e.g. by shifting the dashes a little to the right? (so that the ...
0
votes
0answers
39 views

Using tikz spath3 with *nodes*

I can use spath3 with paths (not nodes) in this way: \documentclass{article} \usepackage{tikz} \usetikzlibrary{spath3, intersections} \begin{document} \begin{tikzpicture} \draw[spath/save = rect, ...
2
votes
2answers
298 views

How to recreate this simple flowchart?

This flowchart has given me nothing but pain and frustration. I've been trying to recreate it for a few days and not been able yet. I use the tikz package.
2
votes
1answer
37 views

tikz: draw arrow till above of middle of below rectangle

How to take the arrow just above the middle of rectangle R2 and down to R2.north (at center of top)? \documentclass[a4paper]{scrartcl} \usepackage{amsmath,amssymb,amsfonts} \usepackage{tikz} \...
0
votes
1answer
49 views

How do I create a triangular prism like the image below in tikz for latex? [duplicate]

I would like to not have it colored but rather just the green shaded be dark grey shaded. Could someone please help me with this? I would greatly appreciate it!
0
votes
0answers
34 views

How can I put a caption on the following tikz drawing? [duplicate]

documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{positioning, calc} \begin{document} \begin{centre} \begin{tikzpicture} \newcommand{\radiusx}{2} \newcommand{\radiusy}{.5} \newcommand{\...
0
votes
1answer
43 views

Fixing histogram drawn using pgfplots [duplicate]

I need to fix my histogram by: Setting the x coords vertically so that the text will be readable without pushing each other. Removing the exponential notations. Also I'm not getting why the vertical ...
0
votes
0answers
57 views

Producing SVG output

I have been using LaTeX, TikZ and MiKTeX on Windows 10 Pro since 2015 to successfully produce PDF files. The current version of the TikZ manual 3.1.9a has a simple example in section 10.2.4 Producing ...
0
votes
1answer
33 views

pgfplots bar chart enlarge axis [duplicate]

I would like to create a bar chart using tikz. I want it to look like that: but when I added the data, I got something like that: Is there a way to enlarge the x-axis over the textwidth or some ...
0
votes
1answer
35 views

Grid using hf-tikz package

Related of this question, How can I put a grid/squared paper behind a single formula? I would to say if with hf-tikz, package of Claudio Fiandrino that I sent my best regards, exist a way to have a ...
0
votes
0answers
41 views

Dimension too large - Tikzmath

I have the following code: \documentclass[tikz,border=5mm]{standalone} \usepackage{tikz} \usepackage{amsmath} \usepackage{xfp} \usetikzlibrary{math} \usepackage{etoolbox} \usepackage{fp} \...
2
votes
0answers
25 views

Tikz/PGF Anchors at locations computed in \backgroundpath

I am trying to create an AO logic gate, which consists of three predefined shapes, as via \declarepgfshape. So far, I was able to define the shape in \backgroundpath. However, I want to have some ...

1
2 3 4 5
602