Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
19 views

How to insert an imported standalone tikzpicture and its caption on the extra margin of the indented paragraph on a specified location

I have a standalone tikzpicture and I want to put it in the left extra margin (blank space) created by an indented paragraph satisfying all these conditions simultaneously as below: I do not want to ...
1
vote
1answer
15 views

Extra spaces when mixing beamercolorbox and tikzpicture

I am trying to create custom beamer blocks for a template using a tikzpicture for the title of the block and a beamercolorbox for the body. Here is a MCVE: \documentclass[t]{beamer} \usepackage{...
-1
votes
0answers
26 views

correct way to draw the diagram using circuitikz

can any one draw this circuit using circuitikz.
-1
votes
2answers
46 views

please, i want a similar code to draw this figure with tikz

please, i want a similar code to draw this figure with tikz
1
vote
1answer
50 views

How to put a figure on the left space of a large indented paragraph without breaking the paragraph?

I have a standalone document that creates a figure using tikz package as below: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) -- (1,1); \end{...
3
votes
1answer
48 views

How to plot two graphs, one with a magnifying glass using `tikzpicture` and PDFLaTeX

I am trying to draw this picture using tikzpicture and "LaTeX -> PS" mode: However, I am not able to graph a function from 12.802 to 12.806 because these numbers are too small for PGFPlots. As a ...
1
vote
1answer
26 views

Nodes: oblique pointing

I was able to plot the picture on the right(not the same fruits though): I have a problem. The arrow on the left is not correct in my plot. How can I make it oblique? \documentclass{article} \...
2
votes
1answer
41 views

Drawing: nodes and arrows

Hello fellows and folks! I need an extra help with the following picture: Since this picture has copyrights, I found similar free icons of copyrights. Could you give me a hand with the nodes and ...
5
votes
2answers
104 views

How to draw with Tikz a chord parallel to AC that passes through a point?

I've drawn the following diagram with Tikz: The code used: \documentclass{standalone} \usepackage{pgf,tikz} \usetikzlibrary{babel,calc,arrows,shapes.geometric,intersections,through,backgrounds} \...
0
votes
0answers
24 views

why this loop generate different output when inside tikzpicture vs. outside? [duplicate]

I wanted to debug some tikz code by printing some values inside a loop when I noticed the output is not coming out as expected. If the loop is inside a tikzpicture with nothing else added, the output ...
0
votes
0answers
21 views

Standard deviation Plot

I have a table with mean values of correctness and the standard deviation with respect to them. My hit ratio is represented as a percentage. The table is: My first question is: Is the standard ...
2
votes
3answers
112 views

tikz: 5 squares on a row, roman numbered 1 -> 5

Having never worked with tkiz before, I can't even begin to understand how to draw this simple thing. I hate to beg for a "can someone make this for me" but after trying to make this solution work ...
4
votes
3answers
129 views

Connecting circles clockwise in TikZ

I need this to work with any \n I decide to set in TikZ (because the diagram at this point is undetermined). I don't mind setting margin manually, but no arcs except the one from node 3 to 4 connect ...
1
vote
2answers
37 views

How to draw curved arrows in tikz

I need to draw this picture using tikz. I use tikz rarely so I find it difficult to accomplish this task. This is what I tried using some code from the internet but I can not find how to draw the ...
1
vote
1answer
27 views

Is it possible to put beamer blocks in tikz nodes?

I would like to use tikz to position beamer blocks in the frame. Here is my attempt, but it does not compile: \documentclass[beamer]{beamerswitch} \usetheme{metropolis} \usepackage{tikz} \...
2
votes
3answers
208 views

Reflect a graph in the line $y=x$

Finding the inverse for this graph seems to be challenging so I now want to reflect the red part of the graph in the line y=x. How would do this in latex? Thank you! \documentclass[]{article} \...
1
vote
1answer
38 views

Circling around some text

I would like to be able to draw a line around some expression. So far, I have found how to draw a circle around an expression, but I wonder if it is possible to draw a less restrictive shape (ellipse, ...
0
votes
1answer
25 views

Resizing two subfigures inside a figure

Hello folks and fellows! I need to resize these two tikZ plots which are created when I run the whole tex document, so I don't think that \includegraphics[width=.9\linewidth]{something.png} would ...
2
votes
1answer
50 views

Easier way to draw a filled ellipse with top edge dashed and bottom edge solid?

I wanted to draw an ellipse with top half dashed and bottom half solid but also filled. Is there a direct way to do this using the ellipse command from \usetikzlibrary{shapes}? What I do now, which ...
4
votes
1answer
51 views

How to make labels automatically scale in size to fit between 2 coordinates in tikz?

tikz newbie here. I want to make "template" drawing, which has part of it a line and then put different size labels on top of the line. The label is some latex code (equation). One of the problems ...
2
votes
0answers
30 views

“Dimension too large” error with too many tikzmarks

This is a follow up to the discussion here. Andrew provided a patch for the problem that when the page number go too large it created the problem (see his and Ulrike's answers in the linked question)....
0
votes
1answer
48 views

Is there a way to change the beamer strut and footer like the image below

\documentclass[12pt,dvipsnames,usenames,aspectratio=169]{beamer} \usetheme{default} \usebeamercolor{default} \usefonttheme{structurebold} \setbeamertemplate{navigation symbols}{} \definecolor{...
2
votes
1answer
29 views

pgfplots: How to draw mesh of 3D plot only in y direction (but not in x direction)?

Assumed we draw a simple 3D plot with pgfplots. Minimum Working Example (MWE): \documentclass{standalone} \usepackage{pgfplots,pgfplotstable} \usepackage{filecontents} \begin{filecontents}{testdata....
0
votes
1answer
38 views

Tikz \foreach to work with the aligned environment

I am trying to use the \foreach command to create something with the same effect as: \begin{align*} 1 \\ 2 \end{align*} The following code fails to work: \begin{align*} \foreach \x in {1,2} ...
2
votes
2answers
1k views

How to draw the following figure in Latex

\begin{center} \begin{tikzpicture}[scale=0.50, thick, acteur/.style={ circle, fill=black, thick, inner sep=2pt, minimum size=0.cm,scale=0.50 ...
3
votes
2answers
32 views

Pgfplot. Reduce intensity of an RGB color

I want to reduce the intensity of the fill in the graph. However, specifying !10 after the RGB color in the fill section, results in an error. I really need to use the RGB color, to be consistent with ...
0
votes
1answer
33 views

How to know the tikz working area coordinates in a beamer frame with header and footer?

In this example, slightly modified, the positionning of 'N' has been corrected with textheight to not be masked by the header: \documentclass[beamer]{beamerswitch} \usetheme{metropolis} \usepackage{...
4
votes
1answer
50 views

Curly braces along a circle arc

I have drawn the below given figure using tikzpicture. In this figure, I want to draw the curly brace in shape of a circular arc (bent) along the circle from -45° to 90°. This is needed to label the ...
3
votes
2answers
31 views

Problems placing tickzpictures below each other and centered

I have the following tickz pictures which are cuboids of different dimensions. \documentclass[tikz]{standalone}% \usepackage{pgf} \usetikzlibrary{arrows,automata,shapes.multipart,calc,decorations....
-2
votes
2answers
76 views

How can I draw a very simple diagram in Tikz?

I want to draw a diagram consisting of a dot and an arrow that start from above the dot, curls round in a loop and ends back to the right of the dot, like: However, I don't know Tikz well enough, and ...
0
votes
2answers
57 views

Using Tikz to draw PV cycles and diagrams?

I'm transcribing some physics notes and I was unsure how to transcribe this diagram of an Otto Cycle in Tikz. Any assistance would be greatly appreciated.
5
votes
2answers
627 views

Translating a shape 3 times: What is a smarter way to code?

The following code outputs a "C" shaped polyomino translated twice as shwon in the figure below. As can be seen from the code, I have written the same description for the polyomino 3 times. What I ...
1
vote
2answers
45 views

Commas in formatting: y-values

When I compile the following code with the whole Tex document, it prints comma. On the other hand, if I compile it in a new single document, it prints the periods. Do you know what may be causing ...
3
votes
1answer
36 views

Drawing two curves in the same plot with labels

Hello fellows and folks! I need to draw the following curve. Could you please give me a hand? I tried my best the other day but I had serious problems with the labels inside and outside the plot. ...
3
votes
1answer
62 views

How to use \ExplSyntaxOn and \ExplSyntaxOff inside tikzset?

If you place ExplSyntax on/off inside tikzset, code (that is expected to work) within ExplSyntax would generate errors. But if you bring ExplSyntax outside of tikzset (enclosing the tikzset), it makes ...
4
votes
1answer
60 views

Random Numbers and Variables in Latex

Below is my MWE. I understand the gist of tikz and foreachs, but when it comes to variables I don't understand most yet. I want an arrow pointing from each cell to a module, and them from the module ...
5
votes
2answers
131 views

Gaussian kernel density estimation with data from file

I am trying to draw a histogram next to a density function, both with data from a file. The histogram is already working: \documentclass[tikz,border=3.14mm]{standalone} \usepackage{pgfplots} \begin{...
1
vote
1answer
21 views

Use data points from table to generate an untirupted line pgfplot

I have this figure: The continuous line is the gauss function plotted. I want to replace the function with my data points (which is the the red-dotted line) and look the same. Meaning having a ...
-1
votes
1answer
72 views

How to draw these boxes and arrows?

Is there a simple code for me to draw these? I do not possess the ability to understand latex code. Something like p1=[0,5] p2=[0,10] ... draw.box(p1=p1,p2=p2,...) draw.box(...) draw.arrow(...)
1
vote
1answer
29 views

Including external tikzpicture with preamble

I am using the standalone package which is awesome but I have a problem: I'd like to have a tikzpicture in an external file but with custom colors or something but when I include it in the main file ...
2
votes
1answer
49 views

TeX capacity exceeded when externalizing

I have several large TikZ plots I want to externalize. Without externalization, everything works fine. Document: \documentclass{article} \usepackage{tikz} \usetikzlibrary{external} %\tikzexternalize ...
1
vote
1answer
33 views

Dimension too large error - tan graph

I have put a restriction on the y values but I still get a `dimension too large' error. Can anyone suggest how to prevent the error? \documentclass[12pt]{article} \usepackage{amsmath,amsthm,amssymb,...
2
votes
1answer
36 views

Clipped Circle Label In Triangle

I have a triangle which has a [clip] path that is used to create a circle that looks like a arc to show the angle. I need to label it with a node as $\theta$. How can I achieve this? The current code ...
5
votes
3answers
93 views

How can I fix the label locations on my tikzcd diagram?

I am having trouble with the label locations on my commutative diagram. Here is my code: \documentclass{article} \usepackage{tikz-cd} \begin{document} \begin{tikzcd}[ampersand replacement = \&...
-2
votes
2answers
71 views

Drawing straight line between the two points [duplicate]

How can I make this graph by latex,
4
votes
1answer
223 views

Pixelized Circle in Tikz

I'm trying to generate something like this in TikZ: Which can be generated for an arbitrary radius here, which uses this code. I know how to do it manually in TikZ but it is a real pain. Since I saw ...
1
vote
1answer
62 views

Drawing figure with perfect spacing

I'm trying to make a figure with a parabolic type curve that is equally spaced and looks uniform between the two axes. I made the following using Mathcha. \begin{figure}[h!] \centering \tikzset{...
3
votes
1answer
50 views

Fill inside a tikz path

I have a tikz path generated by svg2tikz. I would like to fill inside this path, but tikz just fills a portion of the curve. \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{...
3
votes
3answers
121 views

Aligning group plot titles horizontally

I'm trying to figure out why my plot titles are not horizontally aligned. I tried several sources but could not find an option to control title alignment. Below image is what I get. As you can see ...
1
vote
0answers
64 views

How to globally modify variable from externalized tikz picture?

Is it possible to update global variables from within externalized tikz picture? I would like for global modifiers(in this case \tl_gput_right:Nn) to outlast the scope of tikz picture. Here is the ...