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
0 answers
31 views

Label Points on XY Plot with PGFPlots and TIKZ

I'm trying to figure out how to label certain points on my XY plots. I have created smooth curves using XY data pasted in from a text file and also created points using additional "series" ...
user avatar
0 votes
0 answers
14 views

Error scatterplot tikzplotlib

I have created such a scatterplot in seaborn and I wanted to export that figure using tikzplotlib. When compiling the tikz file I get the error: 'Argument of \XC@cnv@RGB has an extra }.' What I found ...
user avatar
  • 1
0 votes
1 answer
47 views

Centering a text while using wrapfigure

I would like to ask why it is not possible to center a text/equation just after using a wrapfigure that allows to create a customized box. For instance, I would like to avoid to obtain this ...
user avatar
  • 163
0 votes
1 answer
43 views

Drawing a rectangle above an inline tikz picture

TikZ noob here: The following is a simplified and equivalentdescription of my problem. The following TikZ code \begin{tikzpicture} \node[inner sep=0pt] (stony1) at (0,0){\includegraphics[width=....
user avatar
0 votes
1 answer
77 views

Blockchain Network using latex

I know that this is not a specific problem, but I'm looking for a library that has icons that I can directly use to draw how blockchain network works by using Latex. Is there any such library or ...
user avatar
  • 973
1 vote
0 answers
43 views

Why length of text in node affects/misplaces the previous draw position?

I almost know why the length of text in a node affects/misplaces the previous draw position: I guess the text of node shifts (0,0) position. But I have no idea how to force text start from beginning ...
user avatar
  • 179
3 votes
1 answer
128 views

How to draw graphs with half-edges?

I tried to generate the graphs shown in the picture using tikz-network and tikz packages but I am unable to get the T shaped half edges like the picture. Any kind of help appreciated. \begin{...
user avatar
0 votes
0 answers
29 views

Write Text Along Sectors Paths

I Have an organogram in which I have divided each department as a sector of a circle (written in red-coloured text) and the division(s) of each department is/are written within the same sector of a ...
user avatar
0 votes
2 answers
119 views

How to plot a customized bell shape using tikz

I would like to ask if it is possible to reproduce this figure on LateX using tikz ? If so could you help me to give some advice to do so ? EDIT : This is my current script. \documentclass{article} \...
user avatar
  • 163
3 votes
5 answers
672 views

How can I draw this type of boxed diagram in LaTeX?

Consider: I know that the short answer is 'use TikZ'. However, TikZ is extremely powerful and I would use it when I needed complicated graphs. But I believe there are other better options for such a ...
user avatar
  • 75
6 votes
2 answers
206 views

Nodes in block diagram (Tikz)

I have the following block diagram I am interested how to create red node like in my picture? Here is my code: \documentclass[]{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} ...
user avatar
  • 171
7 votes
2 answers
199 views

TikZ chain of open sets potatoes

I have to draw a chain of open sets potatoes, something like what is in this picture I tried with several \draw plot [smooth cycle] coordinates { (0.7,1.4) (2,0.8) (1.5,-0.5) (0.8,-1) (-0.2,-0.8) (-0....
user avatar
0 votes
0 answers
27 views

Shading a path with no filling, not fading

I was wondering if there is a way to use shading in the same way we use fading in the fade-no-fill solution here In essence, I want to apply a color gradient to a path, with more than 2 colors, and it'...
user avatar
0 votes
1 answer
66 views

Give "hitbox" to overlay tikzpicture

I want to have a nice banner at the top of the page when I start a new chapter. I have made one that I'm happy with using a tikzpicture with overlay. However I can't get its "hitbox" (...
user avatar
0 votes
2 answers
29 views

Changing Text Dynamically Across Instances of a Tikzipicture

I'm going to be using the same basic ellipse/boxes image throughout a project. I want to keep the way the image looks standard across the project, but I want to change the text each time I use the ...
user avatar
1 vote
1 answer
43 views

How to use tikz-nodes to place and display external images?

In tikz placing labels via \nodes is quite convenient and used all the time. How to display and position external images instead of text?
user avatar
  • 1,747
0 votes
1 answer
52 views

How to Align the equation?

This is for a brochure where an equation has to be put beside the circle in an optimal place such that it looks good. here's the cod \documentclass[letter, 11pt]{scrartcl} \usepackage[utf8]{inputenc} \...
user avatar
0 votes
2 answers
51 views

Tikz: Align Text Within Each Sector of A Circle

What I Want I want the texts to be within each sector and not beyond. I want the texts to align at the top and not at the centre. What I Have Here is \documentclass[border=1cm]{standalone} \...
user avatar
0 votes
0 answers
28 views

How to use the ''easyReview'' package in IEEEACCESS class?

I want to use the easyReview package in IEEEACCESS LaTeX class, but it shows an error with the additional used package as given below. I need help to use easyReview package. Thank you. \documentclass{...
user avatar
1 vote
2 answers
112 views

3D boxes in perspective

I am trying to draw 3D boxes in perspective, but with no success. The intention is to have several boxes with different sizes on top of each other, like this: This is my MWE: \documentclass{article} \...
user avatar
  • 1,214
0 votes
1 answer
51 views

autoregressive neural network with tikz

I am trying to draw an autoregressive NN with tikz but i am quite stuck. This is what i've done so far: \tikzset{% every neuron/.style={ circle, draw, minimum size=1cm }, neuron ...
user avatar
  • 3
0 votes
1 answer
30 views

Filling between two lines and an arc

I want to fill the space between two lines and an arc with color like in the photo This is the code I wrote: \documentclass[12pt]{article} \usepackage{tikz} \begin{document} \begin{center} \begin{...
user avatar
3 votes
3 answers
105 views

Separate "below of nodes" in tikz

I have the following code \usepackage{tikz} \tikzstyle{comp1} = [draw, rectangle, rounded corners, minimum height=1cm, minimum width=3cm, fill=gray!50] \tikzstyle{comp2} = [draw, rectangle, ...
user avatar
2 votes
2 answers
91 views

Filling surface between a line and an arc in tikz

I have the following figure: And I want the surface A to be filled with color. Here's a my code: \documentclass[12pt]{article} \usepackage{tikz, pgfplots} \usepackage[utf8]{inputenc} \usetikzlibrary{...
user avatar
1 vote
1 answer
42 views

Align Text Along Sectors Paths

I have 15 departments in my organization and wish to get a tikz representation of them all thus I sector a circle into 15 wishing to label each department in each sector and units of each department ...
user avatar
1 vote
1 answer
80 views

Creating Flow Diagram Using Matrix

I am creating a flow diagram using Matrix, and I have inner layer that I want to connect the arrows from. How can I achieve the following: I am also trying to separate the heading into a node (...
user avatar
  • 183
1 vote
0 answers
65 views

Draw 3D shapes in perspective with tikz

Is it possible to draw a parallelepiped in perspective such as shown in the figure below (with colors, transparency, edges, etc)? Is it easily feasible using tikz or do I need other library? Notes: ...
user avatar
  • 1,214
1 vote
2 answers
119 views

How can I define TikZ style programatically?

I'm new to TeX and faced with syntax errors. Could you please tell me how can I solve the following problems? ERROR 1 I want to define a pair of key and value in a command (or variable is easy for me) ...
user avatar
0 votes
1 answer
36 views

how to set value of an option by the value of another option in tcolorbox

In the following example, I want to calculate/set the value of leftright skip automatically. How to do it? \documentclass{article} \usepackage{tcolorbox} \begin{document} \begin{...
user avatar
  • 2,321
0 votes
2 answers
55 views

How to make rounded square paths using tikzpicture?

I am trying to make a diagram with multiple nodes, and I think it is going to be much cleaner to read if I use rounded square arrows between the nodes. I have drawn an example with most types of ...
user avatar
0 votes
3 answers
66 views

Creating Piecewise Function Fill in the blank using Tikz

I am trying to recreate something similar to Mark Sparks example (picture attached). So far, I have come up with the following. However, I can't figure out how to make the big brace as well as the ...
user avatar
  • 494
0 votes
0 answers
29 views

TiKz Change Figure Position based on Page Number

I've been trying to code the margin formatting of a document. Here is a minimal working example of what I have at this point: \documentclass[paperwidth=20cm,paperheight=26cm,12pt, twoside]{book} \...
user avatar
1 vote
2 answers
76 views

change color of pgfplots multiline stacked bar plot based on row

I would like to make the color of a stacked bar chart (like here) depend on the data (like here) and here. So far, here is what I have, but I don't know how to access the "color" column of ...
user avatar
  • 377
0 votes
0 answers
22 views

Insert picture into beamer presentation with white background

I have found the following solution to insert a large picture as a new slide: \begin{tikzpicture}[remember picture, overlay] \node at (current page.center) {\includegraphics[keepaspectratio, width=\...
user avatar
10 votes
2 answers
471 views

Tikz lines don't intersect nicely

I have an issue where my lines create a non-perfect corner when they intersect. I don't really want to make a huge cycle since it's a large drawing. \begin{tikzpicture} \draw[very thick] (0,0) -- (...
user avatar
  • 387
0 votes
1 answer
61 views

Fill an area between two curves

I am trying to fill the small area between the two circles, between paths A and B (in the code), could you help me, please? \documentclass[tikz,border=2mm]{standalone} \usepackage{pgfplots} \...
user avatar
  • 75
1 vote
1 answer
56 views

Word alignment graphs

I am looking for a way to visualize word alignment between sentence pairs that would look like this: (taken from https://aclanthology.org/W11-4615.pdf) I've already come across this similar question ...
user avatar
  • 13
1 vote
1 answer
63 views

Placing generated tikz pictures using nodes

Suppose I have a \newcommand drawing a tikz picture. How do I place multiple of these pictures using nodes? Specifically, I have a command \row that draws a row of colored squares the way I want. Now ...
user avatar
0 votes
0 answers
63 views

Create a versatile Venn diagram with color blending

On https://texample.net/tikz/examples/venn/, there is an example for a Venn diagram with color blending: \documentclass[border=10pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} ...
user avatar
  • 85
5 votes
2 answers
114 views

\NewDocumentCommand not working in pgfplots when \newcommand does

I'm currently trying to update some LaTeX code. I want to replace \newcommand with \NewDocumentCommand. Most of the time it works fine, but I have problems with the following example: \documentclass{...
user avatar
  • 2,914
4 votes
2 answers
164 views

Why is the style specifier appearing instead of the split rectangle in this matrix?

I'm creating a step-wise schematic of a process of re-linking a doubly linked lists. My intuition is to use split rectangles for the nodes (representing pointers and value, respectively), and then a ...
user avatar
0 votes
0 answers
58 views

Putting random numbers in but still have the triangle work

\documentclass{article} \usepackage{booktabs} \usepackage{isonums} %for comma in number instead of point \usepackage{tikz} \usetikzlibrary{math,calc,angles,backgrounds} %%%%%%%%%%%%%%%%%%%%%%%%%% \...
user avatar
  • 115
1 vote
1 answer
45 views

How to format PGF graph axis tick numbers?

I am trying to use PGF to draw graphs, and to tame the format of the numbers with which PGF labels the ticks on an axis. I observe that, by default, if the number is 10000 or more, PGF switches to ...
user avatar
  • 402
7 votes
4 answers
735 views

How to draw bracket trees in tikz?

How to draw bracket trees in tikz? for example bob {dave eve alice { francis carol -- { grace hans
user avatar
-1 votes
0 answers
60 views

Solids of Revolution

Can anyone help me in drawing revolution solid? I will show them to my students as a lecture note. For example,
user avatar
  • 5
0 votes
1 answer
58 views

Beamer figure (with text) overlay positioning

I have to position different figures in exact overlapping positions where each figure is on a different frame. Besides figures, there is some text too with each figure and therefore this answer does ...
user avatar
  • 516
0 votes
1 answer
30 views

Side By Side Beamer Slide (Text & PGFPlot)

I am trying to get my picture and text side-by-side. I have tried using columns and the mini-page environment with no success. Here is my example. \documentclass[compress]{beamer} \mode<...
user avatar
  • 494
6 votes
5 answers
498 views

How add 1 in math expression inside TikZ \foreach loop

How can the loop in the following be modified so that the printed subscript is not the current value of \n but rather the incremented value \n + 1 (as in integer, not floating point)? In other words, ...
user avatar
  • 6,538
2 votes
3 answers
170 views

TikZ: node positioning in foreach loop

I want to draw several nodes below each other. Therefore I use relative positioning with a node alias. It seems the positions are out of alignment the more nodes are drawn. This is what I tried: \...
user avatar
2 votes
1 answer
76 views

Tikz shading: understanding the position of color placement

This is a follow-up question to another one I asked here. I feel like that other question still needs a proper answer, and hopefully this current more specific question will help achieve that. The ...
user avatar
  • 189