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
19 views

drawing hypotrochoid and epitrochoid in tikz

I am inexperienced in using TikZ.How can I draw an epitrochoid and hypotrochoid using TikZ. Here is a sample picture. Even one sample of the epitrochoid and hypotrochoid are enough. I'm sorry to abuse ...
0
votes
2answers
26 views

Compartmental diagrams in latex

I drew my compartmental diagram in Microsoft office word, used a snipping tool to capture the diagram and later transferred it to latex using using \includegraphics. However I have been instructed by ...
0
votes
0answers
21 views

Images on zooming show different colors and unwanted vertical and horizontal lines in latex (Overleaf)

I had a set of images (as shown in the image below) to be put in a document. The images are saved as png files. When I zoom the images at various different degrees of zoom I see different patterns of ...
-2
votes
0answers
40 views

How make template like this for Math in Latex? [closed]

How to make template like this image in Latex? for writing Math!!
1
vote
1answer
25 views

Binary tree layout removes duplicate branches

What I want to do is draw a tree that doubles in size on each layer, so I thought a binary tree would be the right solution, as of right now I have the following code: \documentclass[a4paper, 12pt]{...
1
vote
1answer
31 views

assign a name for pic in tikz

I have a /.pic in tikz, but I can not assign a name for that. I want to draw some block in the right of that pic. I have attached the figure which I want. Could you help me with how to solve that? ...
0
votes
0answers
22 views

pdflatex hangs when compiling some pdf files

I'm using TeXstudio an a Mac and have found that some pgf files (obtained from python's Matplotlib), cause the compilation to hang. Also, when I run pdflatex from the terminal, it hangs on: [13] (./...
0
votes
0answers
35 views

problem with a tikz image,maybe the preamble?

I wrote this code to draw a graph with some arrows and stuff in it: \documentclass[a4paper,12pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english,italian]{babel} \...
2
votes
0answers
37 views

positioning of the elements using Tikz (a big graph)

I'm using Tikz for first time and I'm trying to make this graph but... It's being kinda hard. 1. About positioning: I'm using relative positioning and I think that's not a good idea (look at orange ...
2
votes
1answer
63 views

How to draw 3D angle mark with line in spherical coordinates

In order to illustrate the substitution formula of a special double integral, I need to draw a graph of spherical coordinates. However, it is not convenient to add angle mark and shadow to the picture ...
0
votes
0answers
28 views

Intersection of Circles with TIKZ

I want to graph some Venn diagrams using Latex and highlight some intersection points, as shown on this website. I want to know if I could proceed with the TIKZ package, or if I need to download ...
0
votes
2answers
35 views

Block diagrams connection

I want to connect some diagrams from different size and to change the style of the line: The red-circled line I would like to make it a dotted line and to conect it from the side of both blocks, not ...
1
vote
0answers
26 views

2D lattice inside a coordinated plane? [duplicate]

I am trying to draw a lattice in a coordinated plane such as this but have no idea how to do it. I have searched for similar posts but cannot find anything similar to this.
0
votes
1answer
34 views

draw autoencoder in latex

I want to draw the figure which I have attached. I have added the following code from https://github.com/JamesAllingham/LaTeX-TikZ-Diagrams/blob/master/2019/Neural%20Networks/Autoencoder/main.tex . ...
0
votes
1answer
23 views

Connecting blocks in a block diagram

Is it possible to connect this diagram: like this diagram: Here is the code for the diagram: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usepackage{mathtools} \...
0
votes
1answer
14 views

Tikz - how to add labels to existing paths created by `graphs`

I am trying to add a few labels to paths but I cannot work out coordinates of the existing paths which has already been created using graphs and matrix. I found a workaround in which I hardcoded the ...
1
vote
2answers
52 views

TikZ, Missing number, treated as zero [closed]

I was looking for way to create custom table-ish diagram and found this old question: Creating a table with axes I am using fithesis package and template from my university and solution from one ...
1
vote
1answer
37 views

How to change a specific set of axis ticks to be “on top” without changing axis or grid lines (pgfplots)?

I have drawn a Cartesian coordinate plane with pgfplots, and added a line y = 1 in red. not zoomedexample of output zoomedexample of output The y-axis tick at y = 1 is covered up by the red line. I ...
0
votes
2answers
79 views

How to draw parametric curve in TikZ deltoid and astroid?

Without using MATLAB, Python or any vector graphic language, is it possible to draw the parametric curves deltoid (a/b = 3) and astroid (a/b = 4) using TikZ? \begin{tikzpicture} \draw (0,0) circle [...
2
votes
1answer
35 views

How to define specific styles for each tick?

I want to change the style (such as color, font, size and shape of tick mark) for each tick. In this example I want to change the color of the numbers (2,3,4) to something different and define a ...
1
vote
1answer
55 views

\foreach in beamer using tikz

in a frame, this code doesn't work. I know (because i have tried) this is the \foreach but i don't know why. I know too that is a problem with beamer (this code work in a an other document) : \...
0
votes
0answers
35 views

Undefined control sequence \thetkz

I'm using pdfLaTeX in MikTeX 2.9. I'm trying to create the hypercube in NamedGraphs.pdf (See https://tex.stackexchange.com/a/129972/200958): \documentclass{beamer} \usepackage{tkz-berge} \begin{...
0
votes
0answers
20 views

TikZ mindmap's child connectors seem discontinuous with white lines

I'm doing a mindmap with LaTeX Tikz, with the code below (sorry if it seems messy or the color names that I'm using are not correct): \documentclass[preview]{standalone} \usepackage{amsmath,amssymb} \...
0
votes
1answer
71 views

Generating a variety of magic circles

Magic circles are a visualization of ritual magic which includes symmetries, obscure symbols, circles, parallel lines and polygons. While such circles are probably laid out by hand, it should be ...
1
vote
0answers
47 views

Drawing an Arc in Tikz, WITHOUT Angles! (Only Two Points) [closed]

I'm curious how you can draw an arc in Tikz, with just an starting point and an ending point. A simple way to do it. No Bezier Curves, and nothing long, a simple command using \draw. Right now I am ...
4
votes
3answers
58 views

How to get consistent arrow tips in TikZ and pgfplots?

I want to get consistent arrow tips for Arrows in TikZ drawings pgfplots axes Arrows used to annotate features in plots produced with pgfplots My solution works only for 1 and 3, as demonstrated by ...
1
vote
1answer
28 views

How can one use named coordinates and still do the coordinate transformations (`shift`, `rotate` etc.)?

Consider this MWE: \documentclass[tikz]{standalone} \usepackage{mwe} \begin{document} \begin{tikzpicture} \draw [help lines, step=1cm] (0,0) grid (4,2); \coordinate[label={$X$}] (X) at (0,0); ...
3
votes
1answer
121 views

Dashed arrow on a chessboard

The Latex below draws a board with an arrow. How can I change the appearance of the arrow line, so that it is dashed? \documentclass{article} \usepackage{chessboard} \begin{document} \begin{frame} \...
0
votes
2answers
36 views

How to name the edges?

I have the following graph \begin{figure}[H] \centering \begin{tikzpicture} \node[shape=circle,draw=black] (0) at (0,0) {$0$}; \node[shape=circle,draw=black] (4) at (6,0) {$1$};...
1
vote
2answers
25 views

How to insert tikzpicture in thmtools environment?

\documentclass[12pt]{scrartcl} \usepackage{amsthm, thmtools} \usepackage{pgfplots} \usepackage{blindtext} \declaretheoremstyle[ headfont={\normalsize\bfseries}, bodyfont=\footnotesize, ...
1
vote
1answer
39 views

Rotate whole coordinate system

I'm kinda new in TikZ, so question may sound stupid. How can I rotate the whole coordinate system? This is what I have (simple 3D coordinate system): \begin{tikzpicture}[x=1cm, y=1cm, z=-0.6cm] % ...
1
vote
1answer
43 views

Why does TikZ arrow style not work in pgplots?

Based on this question, I defined my own arrow style in TikZ and expected it to work in pgfplots: \documentclass{standalone} \usepackage{pgfplots} \usetikzlibrary{arrows.meta} \pgfplotsset{compat=...
0
votes
1answer
54 views

What's wrong in my TikZ?

When I try to generate a PDF, my program give me errors. \begin{tikzpicture} \begin{axis}[ axis lines=middle, xlabel=$X$, ylabel=$Y$, domain=2.25:5.75, xmin=2.25, xmax=5.75, ymin=-1.5, ymax=1.5, ...
0
votes
0answers
32 views

How to add numbers to pictures in tikz environment?

I want to fill in numbers in an existing picture under tikz environment.The existing pictures are as follows The effects that need to be added are as follows How can I do that in tikz enviroment?Or ...
0
votes
0answers
39 views

Problems with position of vertical line

I struggle with the alignment of a vertical line, which should act as an x axis break. The MWE looks like this: \documentclass[border=5pt, tikz]{standalone} \usepackage{pgfplots} \usepackage{...
0
votes
0answers
28 views

Package Tikz Error at subsection

There are several errors like this in my whole report especially when a subsection is added. I'm unabble to figure whats wrong
0
votes
0answers
37 views

freehand drawing in xfig or tikz

I am trying to draw using freehand. However, I can not see how to do this in xfig. I can do this in xournalpp but I can not see how to save it as a tikz/tex document? Is it possible to do so in xfig, ...
3
votes
1answer
79 views

Code economy in a modular figure with tikz

I am trying to create with tikz a figure similar to the following capture, which I have made with a CAD program: This is a snippet of the tikz code: % Modular figure with tikz. By Jesús Álvarez Lobo ...
2
votes
1answer
27 views

Extracting a subpath from intersection

I am wondering if intersections can be used to extract a subpath from a circle/ellipse path. I have two ellipses, and I am trying to plot only the perimeter of the union. Considering the following ...
0
votes
0answers
19 views

hf-tikz: no shape found

I'm trying to have two separate frames, each highlighting only the rows or the columns in a matrix, using hf-tikz in beamer: \begin{frame} \frametitle{Matrices} \begin{equation*} \begin{...
0
votes
1answer
22 views

How to adjust domain values in pgfplots

I am trying to generate the slope field of dy/dx = (x-1)*(y+2)/3 to illustrate that along the lines x=1 and y=-2, the slope of the solutions curve is zero, indicated by horizontal lineal elements. ...
2
votes
3answers
88 views

little help in drawing a simple figure

I am a noob in latex, and I received a lot from you. Is there any chance someone can help me with this figure, I am totally stuck. So far I could only do this: \documentclass[a4paper,12pt]{book} \...
1
vote
1answer
25 views

How to change the spacing of the patterns in a filled region in PGF/TikZ

I am trying to change the spacing of dots/lines in patterns in a PGF\tikz image. At the default setting many of the patterns look the same (dots, crosshatch dots, north east lines) are pretty much ...
2
votes
1answer
91 views

A circle with parametric shading

How can I produce a circle with parametric color shading, such as in the following example? The parameter here is the angle $-\pi \le \theta \pi$ which varies through the rainbow colors.
8
votes
1answer
224 views

Drawing an epicycloid in TikZ

I am attempting to draw the plot of an epicycloid. The formula (which looks nicer compiled): x = (a+b)\cos{}\phi{}-b\cos{}\left(\frac{a+b}{b}\phi{}\right) y = (a+b)\sin{}\phi{}-b\sin{}\left(\frac{...
1
vote
2answers
77 views

I need to copy this function in my document. Sadly I do not know it's function, is there any way to copy it with pgfplots?

% I tried using cosinus because it shows what I need to show, but im really not getting anywhere at this point. \documentclass[a4paper,10pt]{article} \usepackage{tikz} \usepackage{pgfplots} \...
3
votes
1answer
54 views

Dashed area for a function

Good morning, Im trying to reproduce this photo. This is my code \begin{tikzpicture}[holdot/.style={circle,draw,fill=white,inner sep=1.5pt}] \draw[help lines, color=gray, dashed] (-4,-...
0
votes
0answers
41 views

Multidimensional Parallel Coordinates Plot in LaTex

I'm new to LaTex and trying to import Parallel Coordinates Plots which I created in Matlab. There are up to 16 variables and 1000 data entries. Also I need different plots with different variables. I ...
1
vote
1answer
32 views

pgf: “Dimension too large” in a function which fits into a graph, /pgf/fpu=true does not help

I want to plot a lognormal function: \documentclass{article} \usepackage{pgfplots} \begin{document} \pgfmathdeclarefunction{lognormal}{2}{% % \pgfkeys{/pgf/fpu=true} \pgfmathparse{1/(x*#2*sqrt(...
1
vote
0answers
19 views

Logo height equal to frametitle height in Beamer presentation gives error

This is with reference to the question Adjust logo height to match \frametitle box height This excellent solution works exactly in a way I want. However when I use the environment \begin{block} \end{...

1
2 3 4 5
564