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.

1
vote
1answer
10 views

Drawing family tree with `genealogytree`

I'm trying to create a version of the image below using the genealogytree package: I've got most of the way there except for the fact that the "brother" and one of the "cousin" boxes overlap: Here's ...
0
votes
1answer
16 views

Command to combine 2D graphs to form a surface in pgfplot?

I have 2 graphs and I'm trying to show the integral between these two given there is a separation in the z plane. Basically, is there a command that draw a surface between two 2D graphs? Here is what ...
1
vote
1answer
22 views

Put angle symbol between segments

I'm not sure how to put the angle arc symbol between the segments 'pm' and 'pz' in this figure I'm making: \documentclass[tikz, border=5mm]{standalone} \usepackage[utf8]{inputenc} \usepackage[...
4
votes
1answer
53 views

TikZ: Transitioning from snakes to decorations

I'm trying to change a tikz-picture so it does not show a warning upon compilation. Minimal working example: \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{snakes} %\usetikzlibrary{...
4
votes
1answer
45 views

When I use tikz, it always creates a new page. Anybody could help?

I was trying to insert a tex file containing the code for a tikz graph into a main tex file. However, I got a problem. The graph always stands alone in an independent page. So any words before or ...
6
votes
1answer
59 views

How to stop overlap between different circles randomly generated

This question is similar to this question tikz: Distribute evenly and randomly circles (which is also where I got some of the code for this TiKz picture) but is different. I wish to draw multiple ...
4
votes
2answers
90 views

Drawing Grid Lines using \foreach

I am trying to draw gridlines inside a square. Here is my code: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.15} \begin{document} \begin{figure}[ht] \centering \begin{...
3
votes
2answers
78 views

How to properly align Tikz pictures in Latex fraction environment

How to properly align Tikz pictures in Latex environment to get the following picture? My trial code does not compile, \documentclass[preview]{standalone} \usepackage{tikz} \usepackage{amsmath} \...
2
votes
1answer
29 views

Filling rule and for pattern at border

Based on the solution provided at TikZ: How to draw a pattern at the border of a tikz path I was able to do all the graphics in my thesis, except for one shape. As you can see in the graphic the ...
1
vote
2answers
36 views

Place single glyph at a location on the page

I'm looking to use LaTeX to emulate something like the typographic art that people make with letterpress printing. For me, this means that I'd like to be able to position a glyph arbitrarily at some (...
1
vote
1answer
19 views

pgfgantt start on fractional unit (half month)

I'm building a Gantt chart with pgfgantt. I'm almost satified with the result but it seems that fractional values are not supported. For example the Today milestone is set on 2018-12-15 but it is ...
1
vote
1answer
36 views

Improving a decision tree drawn with TikZ / forest

I'm trying to create a decision tree in TeX, currently using the forest package, which uses TikZ under the hood. TikZ is black magic to me, and as a result so's the forest package, but I found a very ...
6
votes
1answer
54 views

Remove part of decoration drawn with “celtic” package

I have this decoration created with celtic package. \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{celtic} \parindent=0pt \begin{document} \definecolor{amber}{rgb}{1.0,0.49,0.0} \...
0
votes
0answers
25 views

Quantikz multiqubit gate (not) targeting some qubits

I have never used tikz before and wonder if there is an easy way to get the desired output . The idea is to represent quantum gates between specific qubits as shown above, where J13 does not affect ...
4
votes
3answers
90 views

How to get positions of tikz curve to lines

I am trying to draw the following figure, that is to get the positions of two separate lines (curve to line) and then draw a line between them. My code, \begin{tikzpicture} \def\L{1.5} \...
1
vote
2answers
63 views

how to use tikz plot coordinate axes and arrows?

A planner figure, any visual tools can help?
5
votes
3answers
87 views

How to increase curvature using tikz

I was trying to replicate an image of a book, but I don't know how to increase the curvature on the curves. I've been done this so far: \documentclass[tikz, border=2pt]{standalone} \usepackage[utf8]{...
1
vote
1answer
34 views

pgfplots line doesn't reach axis

Here is the code: \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ width=500, height=500, axis lines = center, ...
3
votes
3answers
80 views

Labelings with Tikzmark

I need some help placing labels appropriately. \documentclass{article} \usepackage{tikz} \usetikzlibrary{tikzmark} \usepackage{colortbl} %%% ALLOWS COLORING OF CELL IN TABULAR ENVIRONMENT \...
0
votes
1answer
38 views

drawing roc curve analysis

I tried to draw the roc curve with latex but i didn't find any solution. Can any one help please. My code doesn't work and i didn't find a curve like this figure. Could you help me please. Thank you ...
1
vote
1answer
25 views

Problem with foreach in \node with rectangle split

I am attempting to automate the use rectangle split parts with a foreach loop. In the following MWE, the manual use of \nodepart works as expected. The \foreach loop fails with ./makebox-mwe.tex:71: ...
3
votes
2answers
98 views

draw a technical instrument geophone

Could you help to draw the geophone? \documentclass[border=5mm,tikz]{standalone} \usetikzlibrary{decorations.pathmorphing,patterns} \begin{document} \begin{tikzpicture} \pgfmathsetmacro{\...
1
vote
1answer
26 views

border option of standalone doesn't work as expected

The following code \documentclass[border=1pt]{standalone} \usepackage{tikz} \usepackage{amsmath} \usepackage{xcolor} \usepackage{bm} \usetikzlibrary{automata,positioning} \begin{document} \...
2
votes
1answer
22 views

Pgfplot: remove tick elements on axis

I am trying to plot a graph using pgfplots. The plot is fine, my only concern is about the fact that I don't have, let's say, a linear x axis: I have the following elements: 1,2,4,5,7,8,9,10,12,13,14,...
3
votes
2answers
137 views

Add marks in a table of exam

Please I want modify the following code by adding a new command as \marks{7,6,4,3} to get \documentclass{article} \usepackage{amsmath} \usepackage{enumerate} \usepackage{graphics} \usepackage{tikz} ...
7
votes
5answers
281 views

TikZ: Alligning two Tikz pictures and align parentheses to nodes

I tried to draw two graphs with Tikz. How can I align them vertically to each other? I want the knots to form the center, such that all six nodes align vertically. Furthermore I want to align the ...
5
votes
1answer
100 views

Draw a curved path using [out, in]

Could you help to draw a curved path joining the (0,3) and (0,4)? I find the draw command with in and out options hard even after reading about it. \documentclass[border=5mm,tikz]{standalone} \...
3
votes
0answers
43 views

Incorrect positioning when using tikz overlay and remember picture

When I use chemfig in conjuction when \tikz[overlay,remember picture] the positioning does go in the correct position. I am using XeLaTeX and the yLaTeX class (see this link: https://github.com/...
2
votes
1answer
57 views

How to make such flow diagram in TikZ?

I am new to Latex. Can anyone help me to draw the diagram in the attached picture in TikZ? I am sorry for not adding a wml package but I tried TikZ package but I am not able to deal with it. Here ...
2
votes
1answer
26 views

tikz “Latex” arrowhead artifact on conversion to png using ImageMagick if opacity < 1

This is a specific problem, but I find it comes up often in my workflows: generate a standalone tikz diagram with: some transparent object(s) - i.e. opacity < 1 arrows, where I prefer the large ...
2
votes
1answer
58 views

Tikz flowchart overlapping

I am very new to Latex and am trying to create a flowchart. The two nodes of D1 are overlapping completely. The diagrams defined with custom commands are tikz pictures themselves. Another problem I am ...
0
votes
0answers
63 views

can someone explain me this function?

on my question, user Javi_gg1 send me an answer that's right for me. This answer have this code \draw[ultra thick, red] plot (\x, {sin(deg(exp(ln(\fmin)+\x/\xmax*(ln(\fmax)-ln(\fmin)))*\x))} ); I ...
2
votes
1answer
52 views

Framing a colored box with an image

I have a color box (made with tcolorbox) that holds text, and I want to frame it. Unfortunately, I'm copying a style so I can't use a normal border. The border I want is only on the sides of the box ...
0
votes
1answer
25 views

Package pgf error: unknown arrow tip kind

I have a problem when using \draw[thin, ->] I do not recognize the symbol "->". And I can not graph the arrows. It should be noted that if I use \draw[thin, ->] If I can graph the straight ...
4
votes
1answer
19 views

Problem with time format on x-as not displaying correctly

I've made a 24 hour graphic (with different y-axes). So far so good. But the x-axe is not displaying as I wanted. 1/ the time is not displayed correctly 05:59:00 instead of 06:00:00 2/ the x-axe ...
0
votes
0answers
28 views

How to get TikZ symbol in document? [duplicate]

An existing thread here explains how the command \LaTeX may be used to produce a stylished LaTeX symbol in a document. How to do the same for "TikZ"?
1
vote
1answer
53 views

Adjusting TikZ Figure

I use following script (see also here) below, to draw this figure: \documentclass{article} \usepackage{pgfplots} \usepackage{pgfplotstable} \usepackage{tikz} \usetikzlibrary{positioning} \begin{...
4
votes
1answer
49 views

conflict between tikz (was: todonotes) - tabularx - array - arydshln

There is a conflict between the four packages tikz, tabularx, array and arydshln. The MWE below compiles, if I do not load tikz ( tikz.sty 2015/08/07 v3.0.1a (rcs-revision 1.151)) (load todonotes ...
2
votes
1answer
26 views

Drawing dashed border matrix with tikz

I need to draw a matrix such that there is dashed line between each column and row. This is my code just to start, but the result is not good. As you see the second horizontal line is not direct and ...
8
votes
1answer
568 views

Why white transparent color becomes grey?

I'm trying to make a figure which use transparency in tikz. The figure consists in two overlapping rectangles. One which fading to the right and the other to the left. The rectangle fading to the ...
4
votes
1answer
37 views

Text in TikZ nodes: controlling the box variables of characters/string

I remember that there were different commands in TikZ that allow modifying how the characters in a node are placed but I'm not able to find all of them in TikZ manual. Probably I'm looking for the ...
1
vote
1answer
65 views

how to obtain a loop of wave

\documentclass[12pt]{article} \usepackage{tikz} \usepackage{pgfplots} \begin{document} \begin{axis}[hide axis,red,width=16cm,height=8cm,thick] \addplot[domain=20:300,samples=800, colormap=...
3
votes
1answer
73 views

Fill between breaks suddenly

I am trying to plot a function as shown below: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepgfplotslibrary{fillbetween} \begin{document} \...
3
votes
2answers
22 views

Reducing math font in tikz pgf plot

my tick numbers are overlapping, reducing the fontsize with '\tiny' just change the size of the x but the subindex keeps the same size. How can I reduce the size also of the subindexes in the tick ...
0
votes
2answers
64 views

Drawing the 2.4Ghz ISM band using Tikz

I am trying to make the figure below in Tikz. However, since I am relatively new to Tikz I cannot make an image myself without example code. I haven't seen another person asking for something similiar,...
1
vote
1answer
24 views

shading a region

I need to shade the region bounded by the curve, the tangent and the x axis. Could you help? \begin{tikzpicture}[scale=1.442515197749737655215] \draw[line width=1.42pt, ,smooth,samples=1300,domain=-....
0
votes
0answers
36 views

TikZ / calendar: Set the height of a monthly calendar

I want the calendar month to take up the entire text body in height and width. However, I can not do that at height: How can I get rid of these gaps? It seems the problem is in the setting ...
4
votes
2answers
191 views

Drawing a perspective ellipse with TikZ

I made the following ellipse in Inkscape But I would like to draw it within TikZ environment.My final goal is to put this ellipse inside a coordinate system. Using the image from Inkscape, here is ...
2
votes
5answers
84 views

Input words within a figure using tikz [duplicate]

I want to draw this using tikz package of latex. I already write down the code for that. But the problem is that how could I input the sentence Happing Now within the picture. My code is \begin{...
3
votes
1answer
38 views

Selectively ignoring some pgfkeys based on the existence of a tikz style

I want to be able to modify the style of some parts of a complex picture depending on a tag on nodes or pathes (precisely, I have a complex architecture schematic and I want to selectively highlight ...