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
3 votes
1 answer
75 views

Is it possible to create these type of plots (ridgeline)?

I was wondering if it is possible to create these type of plots with PGFPlots? I did go through all plot types in the documentation, but I didn't see anything close to this. Maybe someone has some ...
1 vote
1 answer
51 views

How I can do this section style better?

I am making a template and trying to customize several things in it, and one of them is the section style. I created a command that makes a hexagon on the left side of the screen, as shown in the ...
  • 540
3 votes
1 answer
47 views

Chain of nodes connected by join macro in table cell

MWE: \documentclass{article} \usepackage{tabularray} \usepackage{tikz} \usetikzlibrary{arrows.meta, chains, positioning} \begin{document} \tikzset{ node ...
  • 277k
4 votes
3 answers
150 views

Time arrow with "current position" evolving with overlay number

I'm showing slides where I show a time evolution by going through snapshots. Each snapshot corresponds to a specific time. I'd like to show a time arrow (vertically on the side) with bullets ...
5 votes
1 answer
193 views

Fence against a wall

I have the follwoing code. I want to have a wall and a rectangle, but this doesnot look good. I want it to be better, i.e., three dimensional so it looks better. I mean a standing wall. How can I do ...
  • 105
0 votes
1 answer
61 views

How to prevent label overlap in tikz picture?

The Latex code below is generated by a C# program of mine. There are three arrows with a label each. The second label overlaps the first one. To resolve this, the label could be positioned below the ...
  • 157
4 votes
5 answers
305 views

How do I align things in the following tabular environment?

I am trying to get what's below in order in the sense of: (a) the black text on the left (xx, yy, zz) should be vertically aligned with respect to the relevant table cell on the right; (b) there is no ...
0 votes
0 answers
22 views

Tikzexternalize and `underset`

Using \tikzexternalize, I have discovered that wrapping a tikzpicture in \underset causes tikzexteranlize to compile the picture three times; e.g., observe the output of \documentclass{scrartcl} \...
  • 1,771
2 votes
1 answer
40 views

when using beamer, inline math mode in tikzpicture does not show $x$ like when not using beamer

When I put a formula inside a node in tikzpicture while using beamer, it doesn't show it as it does when I don't use beamer. Consider the code here: \documentclass{beamer} \usepackage{tikz} \...
2 votes
2 answers
61 views

How to store data from a text file into Tikz variable?

I am trying to pass values of variables I am using in my Tikz plot using the text file. I am not sure how to convert data from string to character. Here, the automaton.txt stores some array values (...
  • 23
2 votes
1 answer
212 views

How to make graphons pictures?

I came across this amazing lecture notes https://yufeizhao.com/gtacbook/gtacbook.pdf, and I wanted to create examples of graph limits. Does anyone know which package/software to use for creating ...
  • 23
-2 votes
1 answer
102 views

Fence against a river [closed]

How can I make the following diagram. The problem is to make a river.
  • 105
0 votes
1 answer
54 views

Draw two subgraphs together with intersection

I would like to produce a molecular graph like this But I'm not sure how to achieve this by subgraph, I have the following tikz code \tikz \graph [nodes={fill, circle, inner sep=2pt}, empty nodes]...
1 vote
0 answers
83 views

Please can someone help me to draw the attached figure? [closed]

Please can someone draw the attached figure for me? I have been using latex for a while now but I still find it difficult to use tikz, especially for complex images like this. I will appreciate it ...
2 votes
2 answers
115 views

how to draw the following text inside a rectangle in tikz?

Here is my MWE: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[blue!20!black,fill=blue!20,rounded corners=10,thick] (0,0) rectangle (3,1) node {text}; \end{...
2 votes
1 answer
37 views

Issue with the frame on the first page with package the moodle in LuaLaTeX

I'm trying to add a frame using Tikz. My example doesn't work at this location: \begin{tikzpicture}[overlay, remember picture] \draw[line width=0.5mm] ($(current page.north west) + (20mm, -...
  • 936
3 votes
0 answers
45 views

Representation of the three curvatures with respective triangles

I'm trying for the fun to reproduce the following figure in TikZ: So far i have been able to get: but the result i get looks quite bad in my opinion and the way i have started to build the triangles ...
4 votes
2 answers
202 views

Incomplete \ifodd; all text was ignored after line

I'm having lots of trouble when using \ifodd. I want to make a pattern of alternating thick and thin lines, I have tried several ways but none of them works. With this structure \documentclass{...
7 votes
1 answer
144 views

Strange behavior of tikz-cd with remember picture

While trying to answer a question, I found a strange behavior of TikZ-cd with remember picture. If I compile the following code more times, the distance between the first and the second TikZ-cd ...
  • 57.9k
1 vote
1 answer
47 views

Bars not properly displaying in TIKZ

I have run into this Issue where I try to have 2 Barcharts next to each other, but for some reason the second one is really weirdly positioned and stretched. I have similar charts with the same code, ...
2 votes
1 answer
50 views

Area under a curve between limits unbounded on one end and x=a

\documentclass[border=0pt]{standalone} \usepackage{tikz} \usepackage{pgfplots} \usepgfplotslibrary{colormaps} \usepackage{subfig} \usepackage{graphicx} \usepackage{listings} \usepackage[format=hang]{...
1 vote
2 answers
65 views

Fixing \foreach loop

When I use the following code, I get a semicolon between the drawings. How can I fix this! \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} { \newcommand\partFillRec[1]{...
  • 4,351
2 votes
1 answer
42 views

A better timeline figure using tikz

I want to draw a figure that is as close as possible to the hand drawn figure below. I have attempted the following: \documentclass[a4paper, 12 pt]{article} \usepackage{tikz} \usetikzlibrary{...
  • 799
1 vote
0 answers
54 views

Separatory funnel and others glassware

I am trying to reproduce some elements of glassware in chemistry, in particular to obtain a diagram equivalent to this one: I looked for a package but I couldn't find one that matches (pst-labo does ...
  • 1,023
-2 votes
1 answer
112 views

integration by parts as Thomas calculus!

I to do exactly the same as in the pic I tried different ways but none gave me this result
1 vote
0 answers
53 views

Displaying Text on top of a media9 \includemedia display (3UD model)

Is it possible to display text (also tables, images, etc) on top of a media9 U3D model? I have tried the using a tikz node, as you would with images, but I simply get: whereas what I would like is: ...
  • 11
0 votes
1 answer
57 views

How to fill non-rectangle region below line in tikz latex beamer

I am working with beamer templates. I have set a template for usual slides with a purple line in its background, using this code: %set purple line \usepackage{tikz} \usetikzlibrary{patterns} \...
0 votes
0 answers
14 views

Pgfplots: How to add values of macros from a loop on the graph [duplicate]

I would like to add the values of \wA and \wB at each point in the graph. I tried many ways at they do not work. Please help me. \documentclass{article} \usepackage{pgfplots} \usepackage{tikz} \...
  • 157
-1 votes
1 answer
72 views

Tikz: Flowchart of thesis structure

Can someone help me make a flowchart of a thesis structure please, which should look something like this:
6 votes
4 answers
516 views

How can I make a loop to draw a sequence of projections on two lines?

I want to draw this problem: Given distinct straight lines $O A$ and $O B$. From a point in $O B$ a perpendicular is drawn to $O A$; from the foot of this perpendicular a line is drawn perpendicular ...
1 vote
1 answer
66 views

Draw Document Numbering System Format (Updated)

In continuation to https://tex.stackexchange.com/questions/282262/draw-document-numbering-system-format How can I draw the diagram without the (whatchamacallit) whiskers (see attached)? Also how can I ...
  • 1,245
2 votes
1 answer
22 views

Right bracket marker in tikzpicture axis to draw closed set

I'm trying to draw a simple set interval with left/right paranthis for open sets and left/right brackets for closed sets. Here's how I'm drawing it: \begin{adjustbox}{width=\textwidth} \begin{...
  • 123
0 votes
2 answers
46 views

More uniform vertical centering text in tikz nodes

This is one of those "have your cake and eat it too" questions --- is there a way to more "uniformly" center individual text letters in nodes? The default vertical alignment does a ...
  • 2,684
16 votes
3 answers
1k views

Arithmetic progression in LaTeX

How the following image could be generated in LaTeX? It is an arithmetic progression. I don't have any idea how to do it. Can you help me? \documentclass[a4paper, 11pt]{article} \begin{document} $$\...
0 votes
1 answer
38 views

Drawing a bleeding margin on the exterior side of each page

I am writing a double-paged document. I would like to add a bleeding colored area on the exterior of each page after some page. I know how to add the bleeding area on the left of the pages or on the ...
  • 6,456
7 votes
3 answers
817 views

Draw a circle with all possible squares within it

How to draw a circle with radius r where you insert all possible squares of width s in it? Each square is allowed to cross the periphery at the corner/corners of the square if possible. The squares ...
  • 389
2 votes
1 answer
74 views

How can I make circuitz around a circle

I wanted to reproduce this image But I am having trouble doing the resistor in the circle configuration, here is what I have done so far: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{...
2 votes
3 answers
100 views

nested \int_step_inline:nnnn for generating matrix content

i would like to reproduce the drawing given here, which i did with inkskape. The main problem is for the code that generates the items in expl3. I used \int_step_inline:nnnn which i nested. One is to ...
1 vote
1 answer
63 views

Drawing two curves in the same plot

Could you help me make my figure to look like this one? MWE: \documentclass{article} \usepackage{tikz} \tikzset{dot/.style={fill, circle, inner sep=0pt, minimum size=4pt}} \begin{document} \begin{...
  • 405
1 vote
1 answer
41 views

Argument of \XC@definec@lor has an extra }

I have the following code. I am unable to resolve this error: 'Argument of \XC@definec@lor has an extra }.' for the sample code I have not added cites. Any help is highly appreciated. \documentclass{...
0 votes
0 answers
25 views

How to force markers under plot axes in pgfplots latex [duplicate]

I am looking for a way to force data markers near the graph axes to go under the axes. An example where the markers go under the upper-left corner is the following: Any help would be greatly ...
5 votes
3 answers
199 views

Drawing a grid of (randomly selected) shapes in tikz

I want to produce a 10x10 grid of shapes. At each point on the grid, one shape should be displayed. The shape should be randomly drawn from {red circle, red diamond, white circle}, such that: red ...
10 votes
2 answers
163 views

Tikz: How to make the arrow bend along the curve in decoration?

When I'm drawing a contour, I want to know how to make the arrow bend along the curve in decoration. Please see the example below. Here is my MWE: \documentclass{standalone} \usepackage{tikz} \...
0 votes
1 answer
41 views

How to annotate voltage with plus and minus signs beside a line?

I am trying to add a voltage annotation on the right side of a current source in the circuit below. (Sorry for my bad handwriting and drawing!) First I drew the "Actual" circuit with the ...
0 votes
0 answers
36 views

Reference triangle in semilogy plot tikz

does someone know how to modify the macro in Annotate / plot triangle with slope in PGFplots log log axis environment to allow a reference triangle in semilog y scale? Thanks!
1 vote
1 answer
56 views

comm. diagram of ∞ ordinals with ∞ morphisms

Just started learning TikZ this week, and I'm coming in with kind of a complex question for a first render. I'd like to be able to take a numberline, and maybe a /foreach loop, to render a supertask ...
1 vote
1 answer
36 views

Connect two path without knowing the distance between them

Considering the following picture: I would like to connect the two blue paths in order to obtain the red path like in the following picture: But I would like a solution where I don't have to know ...
4 votes
3 answers
176 views

Hidden numbers in Pie Chart

Want to extract the hidden or unclear numbers in a pie chart and display them like 'red numbers with a line' in the attached figure. Following is my code \documentclass[acmsmall]{acmart} \acmJournal{...
1 vote
1 answer
54 views

How to make coordinate value bold?

I am tyring to make this value (16.49) bold in the bar graph. I can't seem to find any answer. \begin{figure}[ht] \label{fig:table} \begin{tikzpicture} \begin{axis}[ %axis line style={draw=none}, ...
1 vote
1 answer
42 views

Representing matrix with TikZ - minimum size issue

I am trying to represent a matrix elements with circles with Tikz. Matrix in question is the CKM matrix My current code is \[V=\begin{pmatrix} \tikz[baseline=-0.5ex]{\node[circle,fill=black,minimum ...