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

draw arc with big arrow between two point

I would like to draw a arc with big arrow like below: I have try below code with big arrow! \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,shapes.arrows} \begin{document} \begin{...
lucky1928's user avatar
  • 4,285
1 vote
1 answer
68 views

Combining `\addplot3` Commands with Separate Colors in PGFPlots

I'm trying to combine all \addplot3 commands into one while maintaining separate colors for different y domains in PGFPlots. Here is the code I have so far: \documentclass[border=3mm]{standalone} \...
mori's user avatar
  • 81
1 vote
0 answers
27 views

Inserting text in header using tikzpicture adds an a space

My MWE \documentclass{book} \usepackage{tikz,tikzpagenodes} % BEGIN_FOLD \NewDocumentCommand{\pageframeHeader}{O{0.75} O{gray} O{0pt}}{ \begin{tikzpicture}[remember picture, overlay, opacity=#1, ...
Al-Motasem Aldaoudeyeh's user avatar
2 votes
1 answer
72 views

Surface of revolution around x-axis

How is it possible to get this picture in tikz/Latex. Rightnow I have the following code. I want to rotate a function around x-axis. Her is my code. \documentclass[border=1cm]{standalone} \...
Rose White's user avatar
0 votes
1 answer
84 views

How to Recreate a Flowchart from a PDF in LaTeX? [closed]

I found a flowchart in the book "Algorithms for Optimization", specifically on page 107 (available here). I would like to recreate this flowchart in LaTeX. Below is the flowchart for ...
Abichouuu's user avatar
0 votes
2 answers
70 views

How do I draw a cone with a generatrix?

How can I draw such an image like this? Here's the code I tried, but it doesn't seem right: \documentclass[tikz,border=2mm]{standalone} \usepackage{tikz} \usepackage{tikz-3dplot} \begin{document} \...
BqBPdx's user avatar
  • 39
0 votes
1 answer
68 views

Energy band structure

I am trying to recreate a plot depicting the energy band structure of a semiconductor, and the overall outcome is great. However, I encountered a couple of issues: I'm unable to reproduce the ...
Yusef Hamdellah's user avatar
1 vote
1 answer
66 views

What is solution to this tikz error?

I am using tikz to create a plot. I get the following error: Package pgfkeys Error: I do not know the key '/pgf/decoration/\pgfkeyscurrentname ', to which you passed 'at position 1 with {\arrow [scale ...
palebluedot's user avatar
4 votes
1 answer
93 views

Making space for contents inserted by tikzpicture

As you see, the text inserted by tikzpicture overlaps with the previous text My MWE \documentclass[a4paper,twocolumn]{book} \usepackage{amsmath} \usepackage{tikz} % BEGIN_FOLD \usetikzlibrary{...
Al-Motasem Aldaoudeyeh's user avatar
1 vote
0 answers
34 views

Is there a way to automatically exclude parts of the output in the TikZ plot path where the dimensions are too large?

Is there a way to automatically exclude parts of the output in the TikZ plot path where the dimensions are too large? I want to make an animation where some points traverse over infinity. In pgfplots ...
Jasper's user avatar
  • 429
0 votes
0 answers
32 views

How to render dspsinewave from https://github.com/tgroche/tikz-dsp

I'm trying to render a sine wave node using: https://github.com/tgroche/tikz-dsp without any luck. I've used the example from https://texample.net//tikz/examples/fir-filter/ on which the code at https:...
Jeremy Reeve's user avatar
4 votes
3 answers
202 views

How to solve the intersection truncation problem of multiple \draw[thick, color=xxx] commands by color?

I was learning foreach command in TIKZ and I want to plot the style and the color shown as below. After consulting the doc of pgfplots, I achieve it by the code as below: \documentclass{ctexart} \...
Explorer's user avatar
  • 123
2 votes
1 answer
43 views

can a \gategroup box have two labels?

I'm trying to place labels both above and below a single \gategroup box in my circuit, but haven't been able to figure it out, nor find examples on line. For instance: \documentclass{article} \...
gilonik's user avatar
  • 213
7 votes
2 answers
328 views

Decorate equations with arrows using TikZ

How can I draw an arrow on a equation in Tikz by defining points? Here is a starting code. \documentclass[a4paper]{book} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node at (0,0) {$93 \...
H.Gorbanzad's user avatar
4 votes
2 answers
176 views

Tikz: specific tool for exploded-view drawings?

I'd like to create a tikz graphics such as this one with an exploded view and I was wondering if anyone knew of a tool that would help create it. I wasn't able to find any similar example online using ...
stuck's user avatar
  • 113
1 vote
1 answer
27 views

How to make end of line draw match the node at the end of another line

I would like to represent a camera placed on the ceiling with a rectangular node and lines representing the focus of the camera. The code is as follows: \documentclass[border=2mm]{standalone} \...
pablo's user avatar
  • 551
1 vote
2 answers
49 views

How do I place a node that is horizontally aligned with one node, and is vertically aligned with the middle of two nodes in above?

I have a fifth node I wish to align with three other nodes. The current nodes are aligned like A B C D I wish to place node E as such: A B C D E ...
Michelle's user avatar
  • 553
4 votes
1 answer
182 views

Drawing nested tubes with TikZ

I am drawing nested tubes in LaTeX with TikZ, currently just drawing nodes and ellipses and using ext.paths.ortho to make the connections. But as the diagram get more complicated it's harder to ...
Dave's user avatar
  • 41
1 vote
0 answers
31 views

How to Apply Blur and Noise to imported Images Using TikZ? [duplicate]

I'm trying to create the figure below using TikZ. That figure consists of a 2x3 grid collage with the following sub-images: Target - the original image. Denoising - the image with added noise. ...
Mycroft_47's user avatar
3 votes
1 answer
120 views

How to have hashed shaded lines in TiKZ?

The following MWE, \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{patterns} \begin{document} \begin{tikzpicture} \fill[pattern color=black, pattern=north west lines] (8,-.75) ...
JKHA's user avatar
  • 527
1 vote
1 answer
136 views

Draw consecutive arrows without touching each other using Tikz?

I want to draw this shape but I don't know how to make the arrows not touch each other. Someone please help me?
Thang Do's user avatar
0 votes
1 answer
76 views

Encoding Glowing Stars into a Tikzpicture with Fadings

The following code is based on the answer of @Tom posted here: Extending the Features of the Glowing Star Posted by User Sandy G which produces: I would like to add some of these glowing stars into a ...
DDS's user avatar
  • 9,768
1 vote
2 answers
83 views

Making a node in TikZ occupy the vertical space of one line - at least as far as positioning a "pin" is concerned

In the following code for a diagram, I have a "pin" draw from the vertex of a parabola. I would like it drawn to the middle of the node as if "V = (0,0)" were not in the node. Here ...
user143462's user avatar
  • 1,071
1 vote
2 answers
27 views

Alignment of nodes to achors given by bases

The base of the anchoring node must align with the horizontal line at 1cm. Also, the base of left and right nodes must align with the base of the anchoring node The output I want is something like ...
Al-Motasem Aldaoudeyeh's user avatar
2 votes
1 answer
80 views

Making a node in TikZ occupy no space - at least as far as centering the diagram on the page is concerned

The text in the node on the right side of the diagram of code for a TikZ diagram is pushing the graph leftwards. I am enclosing the text in \makebox[0pt]. I thought that doing so would get TikZ to ...
user143462's user avatar
  • 1,071
1 vote
1 answer
82 views

Cell diagrams of projective resolutions

A really nice way to visualize resolutions of modules over small algebras is through cell diagrams. These are really useful, for instance, in algebraic topology, when one wants to compute Ext over a ...
categorically_stupid's user avatar
1 vote
1 answer
63 views

Drawing points with defined coordinate in \addplot command

I don't understand why latex complains when a try to define named coordinate: \coordinate (B) at (0.5, 0.405); % Define coordinate B If I try to put the numbers into \addplot command, everything ...
JardaFait's user avatar
  • 4,006
5 votes
1 answer
201 views

Adding Multiple Titles with Gilded Effects

In Giving a Title a Gilded Effect, I asked how to give a "gilded effect" to the lettering in the title; to which, hpekristiansen gave a very nice answer in which both the title and ornaments ...
DDS's user avatar
  • 9,768
7 votes
2 answers
206 views

How to create a curved cylinder in TikZ with a custom base shape?

I’m trying to create a curved cylinder in TikZ with a specific base shape. Here is the base shape I want to use: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} %...
mori's user avatar
  • 81
0 votes
2 answers
80 views

Curve in chemistry

I'm trying to approach this curve but I'm having trouble placing the points better. Please help. \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} ...
matheux's user avatar
  • 99
1 vote
0 answers
36 views

How to emulate pgfplots's surf layering/shading in plain tikz

I want to emulate pgfplots shading and layering from its \addplot3[surf] {f(x,y)}; command in plain tikz. I want to do this so I can make more sophisticated graphs that are based on separate functions....
Jasper's user avatar
  • 429
5 votes
3 answers
482 views

exploded pie chart, circumscribing arc, and text labels

Most of my figures in various books are pgf/tikz, with a few pstricks tossed. One of the few figures I rendered external to LaTeX (generated using a vector-based graphics program) looks like the ...
Johnny Canuck's user avatar
1 vote
1 answer
36 views

Wrong message error, while trying to adapt multiple overlaid rectangles as TikZ node code

I'm trying to adapt this question's answer to my code. The problem is that it doesn't compile, and the message error is strange: LaTeX Error: Something's wrong--perhaps a missing \item. For the line ...
An old man in the sea.'s user avatar
3 votes
1 answer
97 views

Tikz Border Problem

I am trying to create the figure below using Tikz. It comes from Larson/Battaglia page 103 (see attached image). I have started the picture, but I just don't know how to create the arrow at the end. ...
Nick B's user avatar
  • 937
2 votes
1 answer
42 views

Control of relative position of 'pic's and text in 'matrix'

I want to create a matrix of 'pic's with annotations with precise aligment. In my project code for the pics is stored in external files, is pulled in with \input and cannot be easily modified (it's a ...
permeakra's user avatar
  • 253
0 votes
2 answers
56 views

TikZ Node with not exceeding right page border

I have a beamer presentation where I want to have on top of each frame the title and subtitle of the given frame. In my beamerouter file, I created the main template for the frames with the following ...
Krzysztof's user avatar
  • 121
1 vote
1 answer
58 views

How to apply two colors to a 3D plot based on x domain in PGFPlots?

I am trying to plot several normal distributions in 3D using pgfplots. I want to color each normal distribution with two different colors depending on the value of ( x ). Specifically, I want the plot ...
JeT's user avatar
  • 3,652
4 votes
2 answers
90 views

how to recreate these timing tables in lyx?

i've got the following time tables which i tried to make using tables and playing with the borders but it doesn't compile well and here's what I did in LyX with the table and borders: but this is ...
Nate3384's user avatar
  • 197
2 votes
0 answers
57 views

How to draw momentum arrows using tikzfeynman.sty?

I am using tikzfeynman.sty written by Flip Tanedo to draw Feynman diagrams. A sample code that I wrote-- \begin{tikzpicture}[line width=1.5 pt, scale=1.3] \draw[scalar] (45:1.5)--(0,0); \draw[...
Fermion's user avatar
  • 183
0 votes
0 answers
27 views

Using TikZ to Plot the Fourier Transform with Magnitude and Argument Coloring

I would like to use TikZ to draw the function graph of the Fourier transform 𝐹(πœ”) of 𝑒^𝑑 sin(𝑑)𝑒(𝑑). The x-axis represents πœ”, the y-axis represents the magnitude of 𝐹(πœ”), and different ...
θ˜‡θ³’ζ™‰'s user avatar
0 votes
1 answer
55 views

semiconductor value chain flowchart does not fit in the page

I created a flowchart which looks like the Image I left atacched.I tried these codes but the flowchart does not fit in the page, probably because I set specific margins in my document. \documentclass[...
Yusef Hamdellah's user avatar
1 vote
1 answer
39 views

Combining Colums in two column paper layout

I am currently working on a paper, using the two column layout by the aps journal layout. For most of the 3d diagrams, I am using tikz to generate the diagrams directly in the document, using the ...
Lion Frangoulis's user avatar
1 vote
1 answer
55 views

How to adjust the height of an image to the distance between two nodes

I am trying to set the height of a photo to the height of a node. The code is: \documentclass[border=1mm]{standalone} \usepackage[dvipsnames]{xcolor} \usepackage {tikz} \usetikzlibrary{babel} % ...
pablo's user avatar
  • 551
4 votes
1 answer
181 views

Drawing waves using tikz in latex

I am trying to reproduce this figure : But the best I can do is this output : I would like to emphasize on the "wave" effect to have more place for putting clear labels... Any tips to do ...
Waxler's user avatar
  • 860
0 votes
2 answers
53 views

Fuzzy Number Line

I'm trying to create a command that generates a number line for an arithmetic progression. For example \SNL{10}{5}{9} generates a number line with the first value of 10, common difference of 5 and ...
Wendy Taylor's user avatar
3 votes
1 answer
84 views

Positioning Multiple Fading Titles with Tikzpagenodes

The following code is adapted from the answer posted by hpekristiansen in Giving a Title a Gilded Effect: \documentclass[12pt]{book} %\usepackage[hmargin=0.7in, vmargin=0.75in]{geometry} \usepackage[...
DDS's user avatar
  • 9,768
3 votes
1 answer
69 views

TikZ syntax issue, extra right-brace in \foreach command

In this extract from code at https://www.aprendematematicas.org.mx/helicoide-generalizado-codigo-fuente-latex/#comment-36265, the following command gives a syntax error of possible Runaway argument: ...
murray's user avatar
  • 8,712
1 vote
1 answer
31 views

Using of a pgfkeys-colorlist goes wrong

I used the solution % written by @cfr --> https://tex.stackexchange.com/a/721338/46023 colorlist aux/.code={\stepcounter{colorindex}\colorlet{color\thecolorindex}{#1}}, colorlist/.code={\pgfqkeys{/...
cis's user avatar
  • 8,922
11 votes
3 answers
2k views

How to Draw Gabriel's Horn

Consider Gabriel's Horn: which, mathematically speaking, is the curve y=1/x over the interval [1,∞] revolved about the x-axis. It is interesting because though it contains a finite volume, its ...
DDS's user avatar
  • 9,768
0 votes
1 answer
33 views

Cross out if no table entry in a longtable environment

I changed a command from "Heiko Oberdiek" (Strike out a table cell) a little bit and it works fine in the standard tabular environment. \newcounter{NoTableEntry} \renewcommand*{\...
Viggo's user avatar
  • 65

1
2
3 4 5
…
704