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
0answers
6 views

Pgfplots empty plot legend entry (the current plot has no coordinates (or all have been filtered away))

I am using pgfplots to automatically plot data of a csv file. The file always maintains the same structure, but some times (e.g. sensor not connected...) there are no coodinates to plot for a ...
1
vote
1answer
18 views

How do you name nodes/vertices with this type of code?

\begin{figure}[!h] \centering \begin{tikzpicture} \draw (0,0) \foreach \i in {5} \foreach \j in {1,...,\i}{ -- ++(360/\i*\j:2) }; \end{tikzpicture} \caption*{Note: Figure not drawn to scale.} \end{...
1
vote
1answer
21 views

Horizontal bar graph with pgfplot and equal sized ticks

When I use xbar and data to display a progress bar for some kind of data I could not find any information how it is possible to equal the space between each data line over more than one chart. My ...
1
vote
1answer
23 views

Split circle node vertically depending on text length

I am looking for solution that allow me split circle node vertically but the splitting line would be placed depending on text width. I think the nearest solution could be similar to this one. I am ...
1
vote
0answers
17 views

how to render figures in oblique projection with Tikz?

I would like to render the following figure with an oblique projection to preserve the initial form of the triangular base. \documentclass[border=10pt, multi, tikz]{standalone} \tikzset{pics/prismoid/...
0
votes
0answers
38 views

Stopping a line at a certain point in tikz

I have made the following figure in Tikzpicture: \newcommand{\yggDra}[3]{ \draw[ultra thick, xscale=#1, yscale=#2, rotate=#3] ({cos(-44.8)*3.92},{sin(-44.8)*3.92}) .. controls ({cos(-55)*4},{sin(-55)*...
0
votes
1answer
66 views

A decoration with LaTeX [closed]

English translation Hello, how can I produce this kind of curves, thanks. Original text Bonjour, comment faire des courbes comme ça, merci
1
vote
1answer
36 views

Text centered at top of circle path

I'm trying to get my text "HubsSpokes" to center at the top of a circular path. \path [postaction={decorate,decoration={text along path,text align=center,text={|\huge|HubsSpokes}}}] ($(current page ...
2
votes
1answer
45 views

Adaptive Control Block Diagram

I have done control block diagrams on LaTeX, and I am trying to figure out how to draw the model reference adaptive control block diagram: I don't know how to draw the slash across the controller to ...
1
vote
1answer
41 views

Unable to horizontal align diagrams

I have these 3 Feynman diagrams. I want them in a single horizontal line but I'm unable to do so. \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{siunitx, threeparttable} \...
1
vote
0answers
45 views

S-grid for eigenvalues map on tikz

I'm currently working with eigenvalues analysis and to that I don't use the normal grid, but the s-grid (grid of constant damping factors and natural frequencies). I use the function matlab2tikz to ...
1
vote
1answer
41 views

Drawing with tikz over an image in two columns mode

I would like to use the tikz package to draw over an image. I followed the instructions found here. \documentclass[twocolumn,10pt]{article} \usepackage{lipsum} \usepackage{tikz} \begin{document} \...
1
vote
1answer
46 views

Curvilinear surface with grid lines in tikz

I want to plot a cartesian coordinate system with a curvilinear surface having grid lines and unit vectors. The plot look like in the image attached.
0
votes
0answers
73 views

`tikzpicture` is not working parallel with `\begin{table}… \end{table}`

I am using tikz to draw a tikzpicture and it works properly. However, if I try to insert a table using the syntax \begin{table} ...\end{table} I get the error Too many }'s. \end{table} \begin{...
2
votes
1answer
107 views

Draw the polyhedra tessellation in the 3-dimensional-space

Consider a polyhedron composed by 24 vertices (4×6) 14 faces (contain 6 squares and 8 hexagons) 36 edges (4×6+6×82=36). This polyhedron can pack and tessellate the 3-dimensional-space like this. ...
1
vote
2answers
37 views

Adjacent large square brackets with text in tikzpicture

Call me thick but, how do you tweak the code in the answer here so that brackets are adjacent, e.g., one starts at, say, point (0,0) and ends at point (2,0) and the next one goes from (2.5, 0) to (3.5,...
2
votes
1answer
80 views

A bug with `cycle` and `rectangle` of TikZ?

In the code below, after drawing a rectangle, cycle does not come back to the initial point (-1,-1) of the path. Is it a bug? Let me be clear: first our pen at (-1,-1) the initial point \draw[red] (...
4
votes
1answer
427 views

Draw P and S waves illustration

I need some help with drawing similar figures. Don't care about colour. Thanks.
2
votes
2answers
81 views

Connecting points in a for loop with tikz

\documentclass{article} \usepackage{tikz} \begin{document} \begin{center} \begin{tikzpicture}[line width=0.5pt] \filldraw [fill=white] (0,0) circle [radius=3cm] \foreach \...
3
votes
2answers
62 views

Special table - rounded borders

Can you help me with creating this type of table in Latex ? Thank you
0
votes
1answer
41 views

Two heatmaps with unified colorbar

I have 2 heatmaps sharing the same colorbar in between. I would like to edit the number of colors, and have in the colorbar some additional ticks without numbers - so that there will be a tick between ...
2
votes
2answers
273 views

How to draw “clean and simple” vectors on a plane in LaTeX?

How can I draw vectors on a plane like the ones in the following image in LaTeX?
1
vote
1answer
38 views

Musical symbols from Lilyglyphs in Tikz

What do I need to work with tikz and lilyglyphs (and spanish babel)? Lilyglyphs doesn't work for me in this example. I use LuaTeX, Version 1.0.4 (TeX Live 2017 / Debian) Another problem in this code ...
2
votes
1answer
28 views

pgfplots - center ybars in the middle of the chart

I am using pgfplots for the first time and trying to generate bar charts for a paper. This is the source code that I have, but I want to center the two sets of the bars in the middle of the chart. Any ...
1
vote
1answer
34 views

Size of self pointing arrow and positioning

Consider the following code: \documentclass[tikz, border=1pt]{standalone} \usepackage{tikz} \usetikzlibrary{positioning}% To get more advances positioning options \usetikzlibrary{arrows}% To get more ...
-2
votes
1answer
67 views

How can I create the following graph in tikz? [closed]

Can I create a simple graph with different shapes? I am not sure how to do this image. .
0
votes
1answer
76 views

Gaussian Pulse? [closed]

I need to build Gaussian pulse in time and frequency domain, as depicted in the figure. I tried tikz library but could not.
3
votes
3answers
97 views

Variation table

I have installed the package tkz-tab to make sign and variation tables of a function. Signs are okay but when I try to make a variation table, for example like this: \documentclass[10pt,a4paper]{...
2
votes
0answers
57 views

Tikz: flow diagram with graph

I am experimenting with fully automatic placement of flowcharts. Without any coordinates and block names. The problem with blocks that have multiple outputs. I used the following trick: a -!- { [...
2
votes
1answer
55 views

Draw a square base pyramid easily modifiable

As part of a projet, I want to: draw a square pyramid easily modifiable by the variable "width", "height" and "depth", a bit like cuboïd creation. draw the back line densely dashed i | The tip of ...
1
vote
1answer
26 views

Nodes placed on tikz lines inherit manystyles but not “double”

Using tikz, When nodes are placed on styled lines, and drawn, they inherit that line's styles (dotted, dashed, color, thickness) but NOT the double style. \draw[green] (0,2) -- node[draw, fill=white]...
0
votes
0answers
35 views

Tikz and/or PGF: Basic collision avoidance with multipart shape nodes and nodes anchored/pinned to nodeparts?

I'm trying to create a tikzpicture that contains something like what is in the following sketch. I've tried numerous ways to use custom nodes within a graph drawing-driven layout, but even when "...
0
votes
1answer
30 views

Multiple parallel edges with with a knee point in tikz

Is there an easy way to draw multiple parallel edges from one node to another with an knee point (two 90 degree turns) and equally distributed distance between the edges (not really perfect in the ...
1
vote
1answer
41 views

Draw an horizontal line for a counterterm with TikZ-Feynmann

I'm trying to draw the counterterm of a propagator for a scalar theory. I want to represent it with a black square. However, when I use TikZ the line is not completely horizontal. It's a probably ...
0
votes
1answer
48 views

Voltmeter in Latex Tikz circuit diagram

I am working on a circuit using Tikz package in Latex. How do I get a symbol for a voltmeter like this picture: I am using \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{circuits.ee....
0
votes
1answer
35 views

How to put a tikzpicture with caption and a matrix with label next to each other?

I have two things I want to put side by side: A matrix given by \begin{align} \label{example} X = \quad \begin{blockarray}{ccccc} A & B & C & D \\ \begin{block}{(cccc)c} ...
2
votes
0answers
48 views

Math assignment

I want to make the following in latex. I have following two questions: How can I make the green boxes so I can write number of points. How can I write page number as shown in the picture. So on ...
1
vote
1answer
52 views

Drawing hyperbolic arrows between points

How do I change my grey arrows (linking my two axes) from linear to hyperbolic? \documentclass[float=false,crop=true,dvipsnames]{standalone} \usepackage{bm} \usepackage{tikz} \usetikzlibrary{calc,3d}...
0
votes
1answer
53 views

Colored rectangle under item

In a latex document I want to add points a question. I am using item to write question number. And on the next line I want to have a colored rectangle with points of a question.
1
vote
1answer
36 views

Re-using externalised tikzpicture always fails for no discernible reason

This MWE works, based on the answer to this question. However, attempting to achieve the same result in a real document always fails to generate the external image, usually with an error along the ...
2
votes
2answers
277 views

How to write the definition of each term in an equation with pointing arrows?

Can someone help me in writing equation as given below UTMThesis.sty is given here %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % The package UTMthesis.sty will produce the output % %...
2
votes
1answer
65 views

My paper was accepted with all tikz pics, but now editors say all pics need to be PNG/JPG etc

My paper was accepted with all tikz pics, but now editors say all pics need to be PNG/JPG etc. What is the best way to do it? These pictures are both in figures and picture equations. So there are a ...
0
votes
1answer
41 views

TikZ standalone document not rendering colour (Overleaf)

I moved my perfectly fine tikzpicture into an external file on its own. But rendering it as a standalone document seems to disregard the xcolor package, even though I included that as well. I'm ...
1
vote
0answers
30 views

Add square at the beginning of neural network, using neuralnetwork package

I am trying to draw a neural network like following, but I want to draw a square at the beginning, to be specific: My neural Network: \begin{figure}[h] \centering \label{fig:...
2
votes
1answer
149 views

How to draw a pH scale in latex

I am trying to display a pH scale in LaTeX but Im having trouble figuring it out. All the googling I have been able to do just brings up the pH levels of Latex the material. Can someone offer some ...
17
votes
7answers
849 views
+400

Flexure of a Grid

Hi I want to recreate the following picture but with a grid: To something like this: However, I'm finding the use of \pgfsetcurvilinearbeziercurve{} and even attempts with \...
1
vote
1answer
52 views

Why does if-else not work correctly when it detects that a given argument is empty?

Why does if-else not work correctly when it detects that a given argument is empty? Below is my code. I want change the action argument #1 depending on whether it is empty or not. If #1 is not empty, ...
1
vote
0answers
32 views

Strange scaling issue with circles in tikz/pgfplots [duplicate]

I am suddenly having a strange issue with circles within an axis environment. Any circles drawn inside an axis become weirdly stretched, as in the following example: \documentclass{standalone} \...
2
votes
2answers
52 views

Alternating *colour* command

I asked a simplified version of this question here, but unfortunately in constructing my MWE, some detail seems to have been lost. My actual goal is to create a command which alternates colours. I've ...
1
vote
2answers
62 views

tikzpicture bar graph with error bars (min, max)

I would like to add the minimum and maximum values to the plot shown below. Sofar I could not find the solution online. If possible I would like to write my data in a specific format. Thanks for any ...

1 2 3 4 5 498