Stack Exchange Network

Stack Exchange network consists of 174 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
14 views

An error about tikzlibraryfeynman.code.tex

I am compiling a document with package 'tikz-feynman'. I have updated the latest TeXlive and TeXstudio, but error occurs. Here is my code: % !TeX program = luatex \documentclass{memoir} \usepackage[...
0
votes
1answer
32 views

How can I do these contour graphs using TikZ?

It would be very helpful for me if you could help me create these images with TikZ. With this I could make more than I have. Thank you
1
vote
2answers
22 views

Formatting text and tikzpicture

How can I bring the text and the tikzpicture appropriately placed so the the graph is slightly below the text title ? \documentclass{article} \usepackage{tikz} \usepackage{geometry} \begin{document} \...
1
vote
1answer
21 views

How to draw multiple curved arrows pointing to the same node in tikz?

How do I draw a node with multiple curved arrows pointing back to it, optionally paired with some text as in illustration?
1
vote
1answer
21 views

putting two things in background with background & TikZ

I am trying to put two lines of background text over each page. I currently use background with TikZ to put one line of text at the bottom, but I additionally need to put "Confidental" accross every ...
1
vote
0answers
30 views

foreach and intersection

what's wrong with my code? The usage of the foreach loop instead of the direct draw commands leads to an error that the path is not known. Do you have any suggestions? Thanks a lot in advance! ! ...
2
votes
1answer
37 views

Tikz mindmap customize nodes color, distance and size

the code below is almost perfect to me but if I chose LateX it is to get the perfection. There is 3 problems with the code below : 1) how can I modify the radius of the nodes (individually) ? 2) ...
2
votes
1answer
31 views

A Question about Loop in TikZ

Regarding the loop arrow associated with w1' node, I need to be perfectly circular with a specified radius .. how can I do this? thanks a lot ! \documentclass[a4paper,twoside,10pt]{memoir} \...
1
vote
1answer
38 views

Weird error when including tikz in a figure

I am trying to include a tikzpicture inside a figure. It had worked for other tikzpicture, but now I have a complicated 3D one here, that I have trouble integrating. Here is the overleaf MWE where ...
2
votes
1answer
36 views

Using a macro with TikZ style attributes in a draw command

For use in a \foreach loop, I would like to have the style attributes for a rectangle stored in a macro. The style attributes would include the fill color, opacity, etcetera (but the attributes that ...
3
votes
1answer
92 views

Rotating in TikZ

I have the following code \documentclass{article} \usepackage{graphicx,tikz} \begin{document} \begin{tikzpicture} \draw[ultra thick] (-1,0) -- (1,0); \draw[ultra thick] (0,0) -- (0,2); \end{...
0
votes
1answer
35 views

Tikz picture correction

I need to correct the upper size of the figure (namely to make the rhombus symmetric and the arrow pointing the node s5 to be aligned with the arrows in the lower part of figure) - ignore the non ...
2
votes
1answer
99 views

Visually labelling coordinates in tikz

Sometime it is very useful to be able to see where the \coordinates that you are defining really are in a diagram. I am using what I think it's an hack to do it, defining a command and then change the ...
4
votes
1answer
44 views

How to retrieve regression line to plot normal distribution upon it

This is a continuation of this question. Below is my current output and problematic area is that brown curve. I am trying to plot pdf as a 2D graph standing upon the regression line (red). I am ...
1
vote
1answer
54 views

How to create a different ground symbol?

I have read this thread about creating a custom ground symbol. I don't still have the skills to edit the solution proposed on this question. I am trying to get a ground like the one one the following ...
2
votes
2answers
68 views

hide image with animate package

I am rotating a triangle, I want only the first and last triangle of the last two frames to appear. I want the triangles that are between the first and last triangle to be hidden. Attached latex ...
5
votes
2answers
338 views

Ignoring the tail of the letter “Q” in the node of a TikZ diagram

In the following TikZ diagram, $\triangle{ABC}$ is an acute triangle, and $\triangle{PQR}$ is inscribed in it. L is the point on the line through P and Q that is closest to A. I would like to typeset ...
4
votes
1answer
75 views

Adding Tips to Axis Lines

I am trying to add arrows pointing on the axis lines for the following graph: \documentclass{article} \usepackage{xcolor} \usepackage{pgfplots} \usepackage{amsmath} \begin{document} \begin{figure}[...
0
votes
0answers
32 views

\llbracket and \rrbracket Does not Work in TikZ

Why can’t I use \llbracket and \rrbracket in the following example? \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,shapes,graphs,graphs.standard,quotes} \usepackage{stmaryrd} \...
1
vote
1answer
67 views

Marks do not appear in 3D for 3D scatter plot

I am trying a 3d scatter plot as below, however marks are circles, appearing only in 2D always whichever view I choose. I want them to be flat on the X-Y plane. Please let me know how to do it. I ...
0
votes
1answer
26 views

TikZ: Labeling an angle does not work in my case

I'm trying to draw a simple coordinate system using TikZ. I've also got an angle which I want to label as phi (\varphi). The following code without the label works: \documentclass{standalone} \...
1
vote
1answer
11 views

Individually moving z labels gives error in pgfplots

If I add the vertical blue plane to this tikzpicture I lose the ability to individually move the z tick label, i.e. I get the error Undefined control sequence. <argument> (\tick ...
2
votes
1answer
57 views

Repeating a drawing and connecting them together to form one unit trial

in this question, I tried the following solution \documentclass{beamer} \setbeamertemplate{navigation symbols}{} \usepackage{tikz} \begin{document} \begin{minipage}{\textwidth} \begin{tikzpicture}[...
4
votes
2answers
130 views

Fill everything except a circle in the middle of the plot

I need to make several Plots to show convergence. One of those needs to be opaque with a white circle in the middle where alpha is not allowed. In the code you can see what i'm thinking about. The ...
2
votes
1answer
42 views

How drawing figure attache by tikz

How drawing attache figure by Tikz? \documentclass[a4paper]{book} \usepackage{tikz} \begin{document} \begin{tikzpicture}[line width = .6pt,font=\footnotesize] \draw[->] (-1,0) -- (6,0) node[right,...
1
vote
1answer
24 views

Repeating a drawing and connecting them together to form one unit

Using the following code which produces the following drawing as a part of a more complicated drawing. \documentclass{beamer} \setbeamertemplate{navigation symbols}{} \usepackage{tikz} \begin{...
8
votes
3answers
537 views

How to build a logical argument like this?

How to build a logical argument like this? with the color line
1
vote
1answer
33 views

Curve drawing in TIKZ - evenly spaced points

I have a certain number of points, using which I want to draw a spline/bezier curve "through" the points. When the curve is drawn, I want to automagically put along the curve p equally spaced points. (...
0
votes
0answers
29 views

Fill with pattern from vector file in Tikz

I have simple Latex code. It is a Tikz picture which intersection is filled with pattern from random_pattern.jpg file \documentclass[margin=3pt]{standalone} \usepackage{xcolor} \...
1
vote
1answer
23 views

Pgfplots surf with edge and normal vectors

Is it possible to plot an oriented surface with a thick oriented border? This is MWE: \documentclass{article} \usepackage{tikz, pgfplots} \pgfplotsset{compat=1.11} \usepgfplotslibrary{colormaps} \...
3
votes
1answer
56 views

Similar Triangles

I am looking to improve my programming skills with this question. I believe I am making a mistake placing a tikzpicture within a tikzpicture? Any suggestions how to make this better and more flexible ...
3
votes
2answers
63 views

Edges names of a flowchart

I would like to draw the following figure: (the shape of blocks are not important). I began by writing the code: \begin{tikzpicture}[node distance=5cm] \tikzstyle{place}=[circle,thick,draw=gray!75,...
1
vote
2answers
47 views

pgfmath: Function for strings and numbers?

Is there a pgfmath-function for something like ? \documentclass[]{article} \usepackage{tikz} \usepackage{array} \begin{document} \def\myarray{{1,0,"-1","a"}} \foreach \i in {0,...,3}{\pgfmathparse{\...
0
votes
1answer
21 views

is it possible to fix the height of a tikz box same?

My tags are follows: \documentclass{book} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \newcommand{\buttonfont}[1]{\textsf{\textbf{#1}}} \newcommand*{\btn}[1]{\begin{tikzpicture} \node (1) ...
4
votes
2answers
176 views

How draw this figure (spiral) in tikz?

I would like to draw this figure in tikz. This figure below is already in tikz, but I would like to develop the code.
3
votes
1answer
28 views

How to include a vertical space between two chemfig reaction schemes in a TikZ box

This is a continuation of my previous question. I am dealing with the following code to include chemical reactions into the shape of a cloud. \documentclass{article} \usepackage{chemfig} \usepackage{...
1
vote
0answers
38 views

Section Design for Poetry Book

After finishing my thesis I am starting to write a book with all my poems. Due to my thesis I am used to scrbook class and can handle koma script a bit. But I fail at adjusting the section headings. ...
3
votes
1answer
31 views

Label in data color don't work in tikz environment

I'm trying to get a colored label for my plot (I use \datavisualization command, not \begin{axis} environment) but with no good results: my label (sinx) still remain black but I wpuld like to have it ...
2
votes
1answer
21 views

How to put a reaction scheme from chemfig inside a TikZ picture?

I am trying to include a chemical reaction from the chemfig package into this picture of a cloud using the following code: \documentclass{amsart} \usepackage{chemfig} \usepackage{tikz} \...
-1
votes
0answers
44 views

Draw arrows to objects in latex code from tiks

Suppose one has something in latex, like a mathematical formula: $$f(x) = x^2 + 3x$$ Now, I want to be able to annotate things applied to objects in the above equation. I simply need to draw an ...
4
votes
4answers
201 views

Draw a shape with operation on parameters in Tikz

I want to draw a shape that I want to reuse. This shape is defined by geometrical input parameters (distances, radii) in a newcommand. Thus I want to perform some operations to define for example the ...
1
vote
0answers
32 views

Kotter Dual Operation Model

I'm trying to build Kotter's Dual Operation Model, consisting of a hierarchy on the left and a network on the right side. Actually I think it can be achieved using "forest" and "mindmap". Im not ...
0
votes
0answers
15 views

Using externalize library for pgfplots on Overleaf

To speed up the compilation of my files which contain several pgfplots, I want to use the externalize package. Also I have been using the subfiles package. Now, I have put : \usetikzlibrary{external} ...
10
votes
1answer
272 views

How to annotate matrix using tikz

so not really sure on how I can achieve this, I have tried to do it so far with tikznode and didn't get it to look like I wanted, granted not really sure of what I'm doing. This is the output I'm ...
1
vote
1answer
55 views

How to draw arrow flow lines around 2D circle?

I am drawing a tikz diagram of a circle with equally spaced field flow lines flowing around it, starting from below, up, around, then up. I was not able to find a post that was helpful for this one. I'...
0
votes
0answers
80 views

Compiling Tikz-PGF Manual

I am attempting to compile parts of the most to update version of the Tikz-PGF manual (3.0.1a) : Find the files here While trying to compile the first tutorial: A Picture for Karl's Students, I ran ...
3
votes
1answer
54 views

Embedding a simple tikz diagram within a tuple equation

I wanted to draw a simple tree using tikz, and embed that tree in an equation: \documentclass{article} \usepackage[a4paper,margin=25mm,showframe]{geometry} \usepackage{graphicx} % <--- For ...
1
vote
1answer
60 views

How do I draw an optionally colored circle/square/ellipse around a symbol

In this thread, @HenriMenke showed how to put a circle around a symbol. It's easy to modify his code to color the circle, see below, but I don't understand how to make the color an optional ...
3
votes
1answer
42 views

How to pass an array to function in pgfmathdeclarefunction

I am trying to plot below function as 3d surface plot, where $\theta_1,\theta_2$ are the x and y axes respectively. The Z axis is supposed to be $L(\theta_1,\theta_2)$. $$ L(\theta_1,\theta_2) = \...
1
vote
1answer
39 views

pgfplot with timestamp in microseconds

My example as below: \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{dateplot} \begin{filecontents*}{data.csv} (10-18-2018 16:50:27.871,0) (10-18-2018 16:50:27.888,8) (10-18-...