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
1 answer
27 views

Adjusting default node spacing in Tikz with the `bayesnet` package?

I'm using the tikz library bayesnet, and can't seem to figure out how to control the default node spacing. I assume because bayesnet overrides the default node style. You can see this below: Tikz ...
user avatar
  • 527
5 votes
2 answers
363 views

3d rectangles in TikZ

I need to draw several similar shapes like this: My code: \documentclass[tikz,border=1mm]{standalone} \usetikzlibrary{perspective} \def\r{0.5} \def\ri{\r*0.5} \def\rii{\r*sqrt(2)/2} \def\riii{\r*...
user avatar
  • 828
5 votes
2 answers
108 views

How to draw coil with varying compression

I am trying to a draw a coil with varying compression, along the lines of the image below (not mine). I considered just drawing two different coils with different compressions next to each other \...
user avatar
3 votes
1 answer
64 views

Transition map on manifold

I am trying to make this tikzpicture using the answer from Drawing manifolds in tikz but I can not make the intersection of U and V gray. If I make U and V white then the intersection would be white ...
user avatar
0 votes
1 answer
45 views

Flowchart drawing ( Arrows)

How can I add the arrows as shown in the above flowchart ? The main problem is that, I don't know how to draw the rest of the arrows, especially, the north-northwest and north-north east . If ...
user avatar
  • 115
0 votes
0 answers
37 views

How put listing or verb contents inside box within a tikz node

I try to write a command to mimic the tcolorbox to draw a frame and background on some contents in the document. (I know this is probably no sense to do this, why not just use the tcolorbox. I am just ...
user avatar
  • 4,123
4 votes
1 answer
84 views

Creating a Shockley Diode in Circuitikz

I would like to create a Shockley Diode so that I can use it in my circuits. Its symbol is: This is my LaTeX code: \documentclass[margin=3mm]{standalone} \usepackage[american, siunitx]{circuitikz} \...
user avatar
  • 225
0 votes
1 answer
41 views

How can I adjust the labels on a number-line (to show inequalities) such that the dimension of the .png file (to be download) produced has same size?

Hello Community Members, I am working on creating graphs for school students and I was making number-line(s) for a school project. Note that I am only using LaTeX to create graphs, so I download the ....
user avatar
0 votes
0 answers
22 views

Can't draw arrows with tikz [duplicate]

I am drawing a block diagram for a controllable canonical form, and for some reason I am not able to draw arrows between blocks. \documentclass[a4paper]{article} \usepackage[spanish]{babel} \...
user avatar
0 votes
1 answer
36 views

Under- and Overfull Tikzpicture

Im trying for DAYS now to correctly format my two Diagrams. I tried plenty of solutions on this Page, but nothing worked (Adjustbox, environ, scale,...) The first one is this: \begin{figure}[H] \...
user avatar
  • 103
4 votes
3 answers
256 views

tikz nesting trig funtions

I'm trying to make a tikz plot of 4*asin(sin(x)/1.33) - 2*x but I can't get it to work. I have the following: \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} ...
user avatar
  • 43
1 vote
1 answer
69 views

Illustrate ECC group

I'm trying to get a drawing like this in tikz, illustrating an Elliptic Curve group's binary operator. I get the curve equation with a single controlling parameter t as (x,y)=(t^2,t(t^2-a)) (here ...
user avatar
  • 179
3 votes
4 answers
174 views

TikZ foreach and relative node positioning

I want to use a foreach loop to position tikz nodes below each other. \documentclass[tikz]{standalone} \usetikzlibrary[positioning] \begin{document} \begin{tikzpicture} \node (n1){First}; \foreach ...
user avatar
  • 70.2k
1 vote
2 answers
65 views

Visualize a sequenze of images

I would like to display some images like this: The question is not about the arrows, it is about the frames. I want the figure to tell, that each of the images is a frame of one video. Thanks to FHZs ...
user avatar
  • 13
1 vote
1 answer
40 views

How to adjust standalone picture to the plot inside

This figure has represented a speedbag for training and some more nodes. However, when compiling the resulting PDF has a blank area at the bottom: \documentclass[border=2mm]{standalone} \usepackage ...
user avatar
  • 1,016
2 votes
2 answers
37 views

Line is drawn below x-axis

I want the line to be drawn above the x-axis. Now the line is drawn first and then the x-axis is plotted. I want to reverse it. \begin{center} \begin{tikzpicture} \begin{axis}[ ...
user avatar
4 votes
2 answers
137 views

Drawing this complex graph, picture or figure. Is there a package for this?

I want to draw this graph. First of all. Is there a package for graphs like this? Or should I interpret this as a figure (graphic (?) ) that I have to draw piece by piece in tikz or pgf? I do not ...
user avatar
0 votes
1 answer
70 views

Cross section on a surface

I have to make this graph I have only managed to make one part, the rest is very complicated to graph. The graph at the top is supposed to be a surface and I'm taking a small curved plate. Any idea ...
user avatar
  • 351
0 votes
1 answer
66 views

How to draw filled arcs in TiKZ?

I would like to create a figure like the one attached here. These curves are parabolic like and I would like to fill in colors in between. Any ideas in TiKZ?
user avatar
3 votes
2 answers
96 views

How to force x axis values for .dat files in pgfplots?

I'm trying to force my x axis definition. I have two .dat files that are defined in the x axis from 0 to 1, but they represent hours. 0 represents hour 0 and 1 represents 13 hours. How can I define my ...
user avatar
0 votes
1 answer
53 views

How to draw bipartite graph with weigthed edge?

\documentclass{book} \usepackage{tikz} \usetikzlibrary{positioning,chains,fit,shapes,calc} \usetikzlibrary{arrows, automata} \begin{document} \definecolor{myblue}{RGB}{80,80,160} \definecolor{...
user avatar
2 votes
1 answer
63 views

Tcolorbox without a toprule

Using tcolorbox I want to create a box that has now inner toprule. With the options below, there is still a line visible. Also the body block clashes with the frame. Do you know how to fix that? \...
user avatar
  • 35
6 votes
4 answers
452 views

Conditional statements in TikZ

I'm trying to use if in my TikZ picture. For example, I want to draw a point at the origin only if 1 < 2. I can do it, for example, like this: \begin{tikzpicture} if 1 < 2 then \fill ...
user avatar
1 vote
1 answer
23 views

Large error bar distorts axis

Overall, my error bars work. However, one error value is relatively high and results in additional space on the y-axis (below y=0). I would like my axis to also look like the one on the right: My ...
user avatar
1 vote
1 answer
32 views

Need help getting tikz command that dots a grid to compile and run

I am trying to write a command to create a grid, with each integer coordinate dotted by a small black dot. The 6 parameters represent the first x, y coordinates, the second x, y coordinates, the scale ...
user avatar
0 votes
1 answer
37 views

How can I connect nodes around a circle node?

I want to I connect nodes around a center node. Example could be seen as below: my approach: \documentclass[border={10pt}]{standalone} \usepackage{tikz} \usetikzlibrary{positioning,arrows} \begin{...
user avatar
  • 418
1 vote
1 answer
25 views

How can I encapsulate multiple commands of get width between two nodes into one command?

I am a newbie of LaTeX and TikZ. I have below TikZ commands \newdimen{\tempx} \newdimen{\tempy} \pgfextractx\tempx{\pgfpointanchor{node1}{west}}; \pgfextractx\tempy{\pgfpointanchor{node2}{east}}; \...
user avatar
2 votes
2 answers
67 views

Separation of sub figures in a+b+c whole squared

\documentclass{standalone} \usepackage {tikz} \usepackage {tkz-euclide} \begin{document} \newcommand{\length}{6} \newcommand{\Width}{6} \begin{tikzpicture} \coordinate (a) at (0,0); \coordinate ...
user avatar
8 votes
2 answers
147 views

tcolorbox calculation of the length of the title gets wrong for 10 and 100

I use tikz and tcolorbox to create boxes for theorems. I calculate the length of the title in order to cut the frame. Everything works until the counter gets to 10 or 100, the calculation of the ...
user avatar
  • 145
0 votes
0 answers
58 views

Optionally discarding contents of environment or saving it

I'm trying to set up an environment whose body is either written to an external file, verbatim, or ignored entirely, at the user's option. In either case, the body is to be replaced by an external ...
user avatar
0 votes
2 answers
60 views

Position footcite lower on slide in beamer

I'm having a problem with one of my citations. I have a footnote on a slide, but I want to push it further down on the slide so that I can make room for my TikZ figure. What can I do to move the ...
user avatar
0 votes
0 answers
37 views

How do I write the title? [duplicate]

How do I write the symbol in the title in latex?
user avatar
4 votes
1 answer
93 views

Drawing a Pyramid within a Rectangular with Arrows and Text

I want to draw a DIKW Hierarchy diagram exactly as is in the picture below: How can I do it with tikz?
user avatar
  • 61
0 votes
0 answers
28 views

includegraphics in tikz node disappears when compat=1.3 changes to compat=newest

I have a tikzpicture where I draw a plot and add two png files on top of the plot. I add the png files with \node at (400,90) {\includegraphics[width=4cm]{figures/time_series/texas.png}}; When the \...
user avatar
  • 101
0 votes
1 answer
50 views

multiple bar in horizontal bar chart in latex

I am trying to show a performance comparison of the different machine learning models by multiple bars in a horizontal bar chart in latex. I have tried the following code: \begin{figure*}[!tbp] ...
user avatar
0 votes
1 answer
52 views

How to fill a region between lines and a curve in tikz?

I browsed various questions but I cannot find what I need. I started using tikz yesterday, so I am very confused and my code is horrendous. I am drawing a Penrose Diagram. This is where I am at: \...
user avatar
  • 3
0 votes
1 answer
33 views

Add label function to graph

I'm trying to add the label $y=x^3$ to the graph of the function using node but instead of placing it "above right" it appears "below left" for a reason I don't understand \...
user avatar
2 votes
2 answers
108 views

How to draw a path alternating in background and foreground?

I would like to draw a spring which "wraps" arround a bar, meaning every alternating line should be drawn on the background. Is is possible to define a tikzstyle for this? \documentclass[...
user avatar
  • 1,661
5 votes
1 answer
178 views

Small position discrepancy in tikz

I was drawing a small diagram with tikz, and I noticed there is a small discrepancy on the position of the nodes according to how you define their position. Here's the MWE: \documentclass{article} \...
user avatar
  • 480
3 votes
3 answers
258 views

Make tikz matrix of nodes uniform

I want to create a diagram with a couple tables and arrows/braces to describe what changes between the table as different functions are applied to it. However, when creating a table with matrix of ...
user avatar
  • 163
0 votes
0 answers
45 views

After compiling the tikz figure shows overlapping

I am having trouble with the following tikz figure. Any help will be appreciated. Compiling the code below, the following erroneous figure comes: \pdfminorversion=4 \NeedsTeXFormat{LaTeX2e}[1994/12/...
user avatar
  • 101
2 votes
3 answers
150 views

How to draw a circle in 3D such that the plane containing the circle is orthogonal to a given vector?

How do I draw a circle in 3D space such that the plane containing the circle is orthogonal to a given vector?
user avatar
  • 344
4 votes
2 answers
411 views

Most common command to compile a LaTeX document?

I am not sure if the question makes sense; this is my attempt. I am writing a program that generates a String that is valid LaTeX and compiles it. It will generate a PDF for my users. In my computer I ...
user avatar
2 votes
1 answer
68 views

A finite number of arrows in an ODE solution

I was trying to edit this answer a bit, I wanted to put 5 or 6 arrows on the red and blue lines, I couldn't do it. The only thing I managed to do is this: (a lot of arrows come out and it's not what I ...
user avatar
  • 351
2 votes
1 answer
52 views

How to place braces below a tree in tikz using relative coordinates (as opposed to hard-coded lengths)?

I'd like to place curly braces below the branches of a tree. The example below does exactly that, but hard-coded values for the placement of the labels "Toss 1" and "Toss 2" are ...
user avatar
0 votes
0 answers
32 views

Subfiles with twocolumn book does not display two columns

I want to have tikz-figures in a two-column document with a subfile structure but I am running in circles. When I throw in multicols I have two columns but no tikz-figures and when I throw out ...
user avatar
0 votes
1 answer
50 views

TikZ: Why is a scalebox-ed picture not exactly centered even with the centering option?

My figure is somehow centered, but not exactly centered. Why? A more general question would be: If I have a TikZ picture with already-computed coordinates, that I can't easily re-compute, how can I ...
user avatar
  • 114
2 votes
1 answer
49 views

3D Matrix as Mark To market Cube for finance in TikzPicture

this isn't my first language), I am just starting out with the tikzpicture environment. Can anyone show me a better method to implement this I would also like to have the smaller arrow pointer and ...
user avatar
2 votes
1 answer
54 views

Nonlinear transformation applied on decorations along path with a custom pic

I am having a problem to apply a single nonlinear transformation to a path decorated with custom pics. A minimal example follows: \documentclass[margin=5pt]{standalone} \usepackage{tikz} \...
user avatar
3 votes
3 answers
159 views

Marking angles in a 3D trigonometric diagram

I am trying to draw the diagram below using TikZ. My attempt thus far is as follows. My attempt seems convoluted as it is a mix of 2D and 3D coordinates. I am trying to label and mark the angles of ...
user avatar

1
3 4
5
6 7
627