Skip to main content

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
57 views

3D Chip Design using TikZ

I'm trying to reproduce a 3D design of a chip using TikZ in LaTeX. The design I'm aiming for resembles a multi-layered chip concept, similar to the image below (showing different components stacked on ...
Yusef Hamdellah's user avatar
1 vote
0 answers
25 views

How to draw 3D figure where y and z changes with x in LaTeX?

If there are three conditions, x belongs to [0,5] y belongs to [2x,7x] z belongs to [0,x+3y] Is there a way to draw this 3D figure? It should be like this This code is not right \documentclass{...
Y. zeng's user avatar
  • 2,147
1 vote
1 answer
37 views

How to Plot a Parabolic-like Curve Passing Through Specific Points in TikZ or tkz-fct?

I am trying to plot a smooth, parabolic-like curve in LaTeX using TikZ or tkz-fct, and I need the curve to pass through the following specific points: (-2,0), (-1.5,-1), (-1,0),, (-0.5,0.5), (0,0), (0....
Educ's user avatar
  • 4,432
0 votes
0 answers
18 views

Error while using cosine function to estimate Margins for tikzpicture of Bohr's model of carbon atom in blank circular space within \lipsum[1-4] text

After many attempts, still experiencing a persistent error, as exemplified with the following MWE: (See Draw Bohr atomic model with electron shells in TeX?) % Insert Bohr’s Model of Carbon atom ...
RosesBouquet's user avatar
3 votes
2 answers
131 views

TikZ and pgfplots: hide NaN values from a matrix

I'm working on a LaTeX document and using TikZ to create a matrix plot, but I'm encountering an issue. I want to remove the "NaN" text from the cells in the matrix plot and keep those cells ...
Meist's user avatar
  • 31
0 votes
1 answer
19 views

How to remove white space between image and shape for visual alignment in LaTeX when using tikz and graphicx?

When I place an image at the top of the page using the page as a reference, there's a white space between the page border and the image. When I then place a rectangle to the left of the image, using ...
Fabio Corradini Santander's user avatar
1 vote
1 answer
40 views

plot supremum of a sequence

I try to achieve something similar as in the following picture: https://commons.wikimedia.org/wiki/File:Lim_sup_example_5.png I arrive at \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{...
Arne's user avatar
  • 1,435
0 votes
0 answers
9 views

Custom Sidebar Table of Contents in Beamer

I'm working with a blank Beamer presentation template and want to recreate a sidebar similar to one shown in the image below. Unlike typical Beamer sidebars that extend to the page's edge, this one is ...
wrb98's user avatar
  • 905
0 votes
1 answer
41 views

Positioning of tikz nodes with sub pictures based on the sub picture size

How is it possible to align nodes with sub pictures based on their size? In the following example the rectangle of the sub picture overlaps the process node p2. Is there a way to positioning the sub ...
Thomas K's user avatar
1 vote
1 answer
60 views

Aligning TikZ Shape and Text to the Top with Minipage

I'm writing a Go (board game) problems book — the whole project is here —, and the typical problem page goes like this: I'm using 2 minipages plus a figure on top in order to arrange these, but, as ...
psygo's user avatar
  • 486
3 votes
4 answers
264 views

Need help in tikzpicture

I'm trying to draw this plot , I've done the triangle, but I'm not able to draw the curves between $A_1$ to $A_2$, between $A_3$ to $B_3$ etc. \begin{tikzpicture} \path[draw, line width=1.5pt](...
Entangled Quark's user avatar
0 votes
1 answer
32 views

Filling complement set in Eulero-Venn diagrams (Tikz)

Well I'm stuck on this, perhaps stupid, part of drawing Euler-Venn diagrams. Here is my work so far: I was trying to draw the various diagrams, but I got stuck in filling the complement set. This is ...
Henry's user avatar
  • 404
7 votes
2 answers
646 views

Coding a 6 using tikz

I have been working on some code that attempts to make a handwritten looking 6 using tikz. The top line of the first example is too straight. The top line of the second example isn't smooth. This is ...
Wendy Taylor's user avatar
0 votes
1 answer
53 views

how to shade the area bounded by a curve and the horizontal lines

I would like to ask how to shade the area bounded by the curve x = (-1.5)^2+1 and {4-(x-2)^2 and the horizontal lines of y=2 and y=3.75 Here is my code \documentclass{standalone} \standaloneconfig{...
John Kevin Padro's user avatar
6 votes
2 answers
201 views

Drawing a tree whose nodes are smaller trees

I want to draw a tree with the following shape, where each boxed tree is a node of a larger tree: I could find boxing subtrees of a given tree, but all available answers (like this or this) seem to ...
Hanul Jeon's user avatar
0 votes
2 answers
83 views

Colorizing spherical cap

I've drawn the following sphere in tikz. \draw (4,4) circle (2cm); \draw [dashed] (2.34,5.1) arc (180:0:1.66cm and 0.2cm); \draw (2.34,5.1) arc (180:360:1.66cm and 0.2cm); \draw [dashed] (4,4) -- + (-...
njlieta's user avatar
  • 103
1 vote
0 answers
38 views

Colored boxes with arrows spiralling inwards and outwards

Here is some tikz code that makes a nice loop with text. \documentclass{article} \usepackage[letterpaper,top=2cm,bottom=2cm,left=3cm,right=3cm,marginparwidth=1.75cm]{geometry} \usepackage[colorlinks=...
Frederik Ravn Klausen's user avatar
1 vote
0 answers
60 views

Embossed bars in 2D bar plot

I like my bars to appear embossed as shown in Figure. Here's the MWE: \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture}{scale=0.3} \begin{axis}[width=12cm,height=...
Ahmed Aafaq's user avatar
0 votes
1 answer
99 views

Draw a geometric image with TikZ

I have no idea to drawing this image with TikZ:
niksirat's user avatar
  • 697
2 votes
1 answer
128 views

Esay way to draw an image with TikZ [closed]

I want to draw this image: I write this code: \documentclass[border=5mm]{standalone} \usepackage{tikz} \usetikzlibrary{intersections,calc} \usepackage{siunitx} \usetikzlibrary{quotes} \usetikzlibrary{...
niksirat's user avatar
  • 697
0 votes
2 answers
115 views

Draw an specific image with Tikz

How can I draw this image with TikZ? I write this code but can't complete that. My idea is drawing a Polygon and repeat that with rotate: \documentclass[border=0.2cm]{standalone} \usepackage{tikz} \...
niksirat's user avatar
  • 697
6 votes
1 answer
244 views

Drawing the Steinmetz solid with TikZ

I want to draw the Steinmetz solid, the volume enclosed by two cilinder of same radius intersecting orthogonaly. I have so far been able to draw the circles in 3D and the lines till their ...
TeX Apprentice's user avatar
1 vote
1 answer
40 views

A node is shoving the graph off the page - the Friday the 13th edition

In the following TikZ diagram, I have two nodes on either side of the graph of a piecewise linear function. The node on the left side is shoving the graph beyond the right margin. \documentclass{...
user143462's user avatar
  • 1,083
0 votes
1 answer
28 views

Connect a triangular child node with its north corner

I'm drawing part of a tree, and I want child sub-tree to be drawn as a large triangle. Here's a MWE \documentclass{standalone} \usepackage{tikz} \usepackage{calc} \usetikzlibrary{trees} \...
R. Absil's user avatar
  • 161
0 votes
0 answers
38 views

Tikz: text in the beginning and the end of textbox

Here is some tikz code that makes a nice loop with text (modified from this page: https://texample.net/tikz/examples/circular-arrows-text/) \documentclass{article} \usepackage[letterpaper,top=2cm,...
Frederik Ravn Klausen's user avatar
0 votes
0 answers
42 views

Tikz Style with two parameters and default values

I try to create a tikz style which takes one or two parameters, where the second parameter should be optional. According to other questions and the tikz / pgf doc, the .default should be used to set ...
jrast's user avatar
  • 586
0 votes
0 answers
42 views

Decorate path with arrows at every N th node, or equally spaced along path

So I have a paths that were calculated using gnuplot and I would like to place arrows along the path every Nth node, such that they are roughly equally spaced along the path. I have seen posts on here ...
PigeonBrain's user avatar
4 votes
1 answer
78 views

Use pgf string as property value

I'm trying to set anchor based on direction, like that: \newcommand{\angletodirection}[1]{ \pgfmathparse{{"south west", "south east", "north east", "north west&...
Швеев Алексей's user avatar
1 vote
1 answer
124 views

Problem: group of rectangles scaled, rotated and positioning in TikZ Code

I'm developing a python converter. This converter use vectorgraphis created with PowerPoint and convert this graphics into TikZ Code. Now I created a graphic of two rectangles (size 6x4 cm) and group ...
B.Boucsein's user avatar
0 votes
0 answers
45 views

How to get rid of the colored edges [closed]

I want to plot a figure like this with tikz/pgfplots: where the dark-grey lines are added as additional plots. The problem is, that in tikz I cant get rid of the colored edges between the faces: ...
binex6's user avatar
  • 17
0 votes
1 answer
49 views

Why is the graph not displayed in full?

I have this: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{center} \begin{tikzpicture} \begin{axis}[ axis lines = middle, %axis equal, xlabel = $x$, ylabel = {$...
Diego Antonio's user avatar
0 votes
2 answers
61 views

How to reproduce this bar chart in LaTeX using either pgfplots or luamplib?

I'm trying to recreate the attached bar chart using LaTeX, but I'm not sure which package would be more suitable, between pgfplots and luamplib. As you can see in the chart, there are multiple ...
Yusef Hamdellah's user avatar
5 votes
2 answers
202 views

Defining a grid in tikz using setlength vs. explicitly setting a length parameter

I am trying to create a grid on a page using tikz that covers the entire page from one corner to another with a ratio of pagewidth/pageheigth. I managed to create such a grid as follows: \...
Markus G.'s user avatar
  • 2,807
5 votes
2 answers
243 views

How can I get the bounding box of a path (drawn with hobby)?

I have drawn a blob using hobby following this question and would like to add an arrow denoting the span of my blob. I have tried following the answer to this question to no avail because the bounding ...
TheMargatron's user avatar
2 votes
2 answers
193 views

How to create rounded arrows to highlight inflection points in a TikZ graph?

I have drawn a graph with TikZ, including the corresponding inflection points. An inflection point marks the transition from a concave up curve to a concave down curve (or vice versa). I would like to ...
wayne's user avatar
  • 705
2 votes
2 answers
131 views

Switching x-axis and z-axis To appear instead of each other

I want to have a horizontal cone $z=\sqrt{x^2-y^2}$. I've written a code for vertical cone $z=\sqrt{x^2+y^2}$ like below. If I switch the x-axis and z-axis then I would have a horizontal cone just ...
user283579's user avatar
0 votes
1 answer
44 views

How to align image size with node size

I want to display a colored box below an image in a tikzpicture within a beamer presentation. But I am failing to align the sizes correctly, possibly due to the node border. But adjusting the border ...
Sim's user avatar
  • 239
0 votes
0 answers
45 views

Remove puzzle peaces from a picture part 2

This is a following question of the question I asked yesterday (How to remove and move several puzzle pieces?) After playing around with the code provided by cfr (thank you and all credits to cfr) I ...
mario1000's user avatar
  • 512
0 votes
1 answer
61 views

User-defined pattern vanishing in Adobe when Accessibility option is used

I'm using the TikZ pattern defined here, but experiencing a weird problem. The minimal tex file I'm having a problem with is the following. When I open the compiled PDF in Adobe, the pattern on the ...
user108's user avatar
  • 63
2 votes
1 answer
154 views

How to remove and move several puzzle pieces?

Based on the code https://texample.net/tikz/examples/puzzle/ by Marc van Dongen (all credits to @Marc van Dongen) I would like to develop a picture in which some puzzle pieces are removed from a ...
mario1000's user avatar
  • 512
0 votes
1 answer
46 views

The issue is that in the quantum circuit, the lines on the second and fifth rows are broken (discontinuous). How can this be corrected?

\documentclass[12pt,reqno]{report} \usepackage{amsfonts} \usepackage{stmaryrd} \usepackage{amsmath} \usepackage{cleveref} \usepackage{quantikz} \crefname{Quantikz}{quantum circuit}{quantum circuit} \...
Guanyu Li's user avatar
-1 votes
1 answer
76 views

How to make this triangle using tikz? (specially the length is in parentheses of the dotted line) [closed]

The length is in parentheses of the dotted line
kosskoss's user avatar
3 votes
2 answers
160 views

Draw a topological puzzle using tikz

I see this drawing of the impossible figure 8 puzzle. How can I recreate it using Tikz package?
Bakkune's user avatar
  • 87
1 vote
0 answers
35 views

Can't write on .md5 file when externalizing tikz

The reason I deleted my earlier post only to repost it is because I was exhausted when I wrote the first copy and it was riddled with mistakes, even after a revision. I thought it would be more ...
Jasper's user avatar
  • 1,050
1 vote
1 answer
46 views

How to write a command with optional args to work inside tikzpicture under \draw?

I want to write a command with more than one optional argument that should compute a path to be \draw inside tikzpicture. Is it possible in any way? (Intension is to extend the luaLaTeX package ...
Miguel V. S. Frasson's user avatar
1 vote
1 answer
61 views

How can draw curve on y axis with help of latex?

Please anyone can help to draw this curve(shown in the picture) with two different line style with the help of tikzpicture? Thanks in advance \documentclass[tikz, border=1cm]{standalone} \...
Samia Rani's user avatar
1 vote
0 answers
40 views

Tikz plot with varying line color/intensity

Is it possible to use \draw plot and somehow vary the color on a step-by-step basis? Consider \begin{tikzpicture} \draw (0,0) circle (100bp); \draw plot [smooth] coordinates {(99.8109bp,-6.1469bp) (49....
Randall Fairman's user avatar
3 votes
3 answers
129 views

Referencing an other tikzpicture without overlay

In an effort to understand @Qrrbrbirlbel answer here: https://tex.stackexchange.com/a/725849/8650 I made this code: \documentclass{article} \usepackage{tikz} \begin{document} ~\\ A text line\\ % \...
hpekristiansen's user avatar
0 votes
1 answer
18 views

Plot marks exceed round margins / look strange

Using this code: \documentclass{scrbook} \usepackage[dvipsnames]{xcolor} \usepackage{float} \usepackage{pgfplots} \pgfplotsset{compat=newest, scale only axis} \begin{document} \begin{figure}[H] % ...
Fantastic MsFox's user avatar
2 votes
2 answers
61 views

below part not show up with standalone and listings

I try to draw on a listing with tikz overlay. but the image only show the listing, then the part out side of that region has been cut out. \documentclass[border=2pt]{standalone} \usepackage{tikz} \...
lucky1928's user avatar
  • 4,379

1
2 3 4 5
708