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

Tikz: Align text in nested nodes

The following code: \documentclass[tikz, border=1mm]{standalone} \usepackage{tikz} \usetikzlibrary{backgrounds, positioning, fit} \begin{document} \newcommand{\boxdist}{3cm} \newcommand{\textwdh}{...
3
votes
2answers
71 views

BlochSphere package : draw black axis

I need to draw the x,y,z axis of my bloch sphere in black (with an arrow at the end of them). I tried this code which doesn't work (my axis are light grey). How to fix it ? I am not sure to ...
0
votes
0answers
19 views

Enlarging area or scaling the plot

I have made my plotting setup using tikz. It displays some characteristics in dependence on the time. It works fine, all test passed. However, with longer time spans, I am running out from the valid ...
1
vote
1answer
22 views

Removing vertical grid lines from graph

I am trying to remove the highlighted vertical grid lines from my graph. How would I achieve this? The following is the code I have written: \documentclass[]{article} \usepackage[margin=0.5in]{...
0
votes
0answers
12 views

tikz/fit around node with label above // refer to node.label [duplicate]

I want tikz to draw an automatic fitting outer node around an inner node combined with its above-label, i. e. the size of the outer node should be computed by tikz basing on the inner-node-size and ...
2
votes
2answers
93 views

How to remove one of the sides and show the inside of a cuboid

I would like to remove the top side of the following cuboid, \documentclass[border=3mm,tikz]{standalone} \usepackage{tikz} \newif\ifcuboidshade \newif\ifcuboidemphedge \tikzset{ cuboid/.is family, ...
3
votes
1answer
46 views

Dual y-axis plot

Want to do a dual axis plot and I am stuck with some details - maybe someone can point me in the right direction? The main problem is that both bar plots overlap! \documentclass[border=5mm]{...
3
votes
1answer
40 views

PGFPlot vector field has uneven display

I have a simple 2D vector, however the points are aligned such that the vectors at the top pointing upwards are not include in the plot. I was wondering if there's a way to make the vector field more ...
5
votes
1answer
46 views

Restore TikZ settings after {pgfonlayer}

This is kind of a follow up question of Bug in TikZ? Line width on layers. When using a {pgfonlayer} two problem occure: a) inside of the background scope settings from e.g. every picture are missing....
1
vote
1answer
20 views

How modifying the width of xticks line in a barplot?

I have the following plot The code for obtaining it is \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \usepackage{tikz} \usepackage{pgfplots,pgfplotstable} \pgfplotsset{compat=1....
9
votes
2answers
386 views

Drawing Shapes on Graphs

I am trying to draw a regular pentagon on a graph (I need to add more stuff to it, so having the axis is desirable), but when I try to draw the two together they do not line up. Here is my code: \...
2
votes
1answer
43 views

Advanced Fraction with several Level

I would like to ask, how could I use LaTex to create following tools refer to the uploaded graph. Do you have some idea to mock such tool in following graph? Some descriptions: The Tool is for ...
2
votes
0answers
24 views

`imshow` like diplay of image with colormap

I would like to show an originally gray scale image with a specific colormap like matlabs/matplotlibs imshow. Original: % python import matplotlib.pyplot as plt import matplotlib.image as mpimg ...
2
votes
1answer
23 views

How to vertically center nodes' text for nodes positioned via above

I have 2 nodes of different height. They are positioned relative to the nodes below them, b1 and b2, which are the same height and have the same y value. I want b1, b2 to have the same horizontal ...
2
votes
1answer
44 views

How to align eso-pic & tikz coordinates

I have a grid on my beamer slides generated by: \usepackage[texcoord,grid,gridunit=mm,gridcolor=black!30,subgridcolor=gray!10]{eso-pic} I'd like to draw a rectangle in tikz with: \draw [textpos,...
1
vote
0answers
35 views

gantt package progress bar

I would like to know if it is possible to provide the progression for each taskbar by partially filling with a completion percentage. The picture below clarifies the idea that I had in mind. gantt ...
1
vote
1answer
33 views

Fit a circuit figure in beamer presentation

I am trying to fit this circuit in beamer presentation. \documentclass[aspectratio=169]{beamer} \usepackage{tikz} \usepackage{circuitikz} \begin{document} \begin{frame}{Lets unfold the box} \begin{...
4
votes
3answers
226 views

Naming intersection points of a grid

Is it possible to automatically give names to all intersection points of a grid, so that I can draw from a specific intersection to another. In my example, I manually gave names to the coordinates of ...
5
votes
2answers
150 views

Inaccurate Calculations By pgfplots

In graphing a certain function using pgfplots (link here) I noticed a distortion in the curve that at first I assumed must have been a point of inflexion - but on investigating the maths, found that ...
2
votes
1answer
73 views

How do I draw a labeled diagram like following

I believe there is help to draw the nodes and edges using Tex, but how do I draw the text on top of the edges?
0
votes
1answer
33 views

Table, Tikz picture in the left, text in the right: how to vertically align?

I would like a table with tikzpictures in the left column and explanatory notes in the right column. What can I do improve the vertical alignment of the row contents in the following example? ...
1
vote
1answer
13 views

Title, section headings disappears when I use \usepackage{forest} with IEEE Access template

When I include a \usepackage{forest} all colored text title, section headings disappears with IEEE Access journal template How can I tackle this problem?
0
votes
1answer
30 views

Tikzscale - Unscalable Picture

I would like to use the package tikzscale to scale my picture. I use the following code \usepackage{graphicx} \usepackage{ifthen} \usepackage{tikz-cd} \usepackage{tikz} \usepackage{tikzscale} \...
0
votes
0answers
69 views

An error in pgf libraries after an update

I made an update in my miktex system today on windows 8.1, without saving the old one (which is a very bad idea, I know !). When I com[ile the following document: \documentclass[12pt]{book} \...
2
votes
1answer
45 views

Rendering problem with TikZ Feynman

I would like to draw feynman diagrams with Tikz Feynman but I have some rendring problem : Here the file with the first exemple of the documentation \documentclass[11pt,french,letterpaper]{article} \...
5
votes
1answer
66 views

tikzpicture won't render 'usable' PS code

I use tikz (and tikzpicture) a fair bit, but files that used to compile fine before the latest slew of updates to pgf, and pstricks, no longer seem to do so (at least, on my MikTeX installation). The ...
1
vote
0answers
44 views

tcolorbox, tikz [duplicate]

Please help us below code that right side of arrow not spanned based on height and and help us how to set auto width: \documentclass{book} \usepackage{tikz} \usepackage{tcolorbox} \makeatletter \...
4
votes
3answers
132 views

Part of the standalone tikzpicture gets scaled when pasting it in a document

I created this nice Polygon using the following code \documentclass[margin=0pt]{standalone} %---------------------------- Tikz Libraries ------------------------------% \usepackage{ifthen} \...
-5
votes
3answers
80 views

Tikz simple mechanical scheme

Could you help me with drawing of the transformer (see below)? I haven't enough experience with tikz to achieve this alone.
0
votes
1answer
60 views

Help writing a diagram with tikz

Could someone explain to me how I could draw, using tikz, the following picture? I have tried for many hours, but I have not achieved anything. Thanks for your help an time, I really appreciate it!
1
vote
1answer
37 views

Cone in Latex with right angles and Label

I am new LaTex user and I have hard time plot the following shape in LaTex. I started the shape but I can't find way to finish it if you can help me please Here is my code \documentclass{article} \...
3
votes
3answers
86 views

How to line up adjacent nodes in tikz that share a border

Here is how I'm drawing it currently: \documentclass{article} \usepackage{tikz} \usepackage[paperwidth=15cm]{geometry} \begin{document} \noindent \begin{tikzpicture} \node[draw,rectangle,text width=...
2
votes
1answer
73 views

pgfplots fill between broken in TeXLive 2018?

I recently upgraded to TeXLive 2018 and found that the behavior of the addplot fill between behaves differently now. What I'm trying to do is to fill the area between a straight line and a parabola. ...
4
votes
1answer
73 views

Improving typesetting of striking out terms in equations

I need to strike out terms in equations. Based on the answers to this question, I've tried the cancel package, but the appearance of the resulting output does not convince me. Consider this example: ...
2
votes
2answers
200 views

Launcher icon using latex

Is there a package that compiles a latex image to an icon of Launcher for Android while maintaining screen densities? For this in Android Studio there is Image Asset Studio, but no I manage to ...
3
votes
1answer
57 views

Piecewise function is not correct plotted with tikz

I am trying to plot a piecewise function using the code below. The problem is, that the right piece is not plotted correct. It should (obviously) be constant zero, for values bigger than pi/2, but it ...
1
vote
1answer
38 views

Help Modifying Sunburst Chart Code for Genealogy Purposes

I took code previously posted here: Is there a way to make "sunburst charts" (multi-level pie charts) in LaTeX? And I wanted to modify this for genealogy purposes. I have the setup I would ...
9
votes
3answers
194 views

Different dimensions with shift and xshift

I discovered that there is a different default dimension in shift and xshift. Consider the following mwe \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node (a) at ...
4
votes
1answer
44 views

Gantt chart - how to change months to years

I am kinda new to LaTeX. I wanted to implement a Gantt chart that corresponds to years 2012 - 2019. I looked for references at this code that uses tikz, manage to configure it pretty much as I needed,...
17
votes
2answers
515 views

Reproducing a figure in tikz with text and arrows flowing round in a circle

I want to reproduce the following figure with tikz (because there is a typo in the text in this figure). My tikz code is (borrowed from here) \documentclass[tikz,border=10pt]{standalone} \...
1
vote
0answers
31 views

Error : Inkscape 0.92 Export to TikZ path [on hold]

I am using INKSCAPE 0.92 on Ubuntu 18.04 LTS and getting the following error. Any help will be highly appreciated. Thanks Extensions > Export > Export to TikZ path ... Traceback (most recent call ...
9
votes
4answers
561 views

How to change \foreach to omit a certain multiple

I hope the solution to my problem is not too complicated or tedious. I am drawing a diagram which has one nuisance in it: Every time the sine curve touches the axis TiKz tries to draw a line of 0 ...
1
vote
0answers
95 views

Advantages of using Sketch? [closed]

I was wondering what the advantage of using Sketch is over TiKz or PStricks other than projection planes and transparency effects? I feel as though TiKz can do all the features that Sketch provides ...
0
votes
0answers
40 views

Is there a good and complete materials to learn tikz? [duplicate]

I have always found tikz difficult to learn. But now, I want to write my thesis and I need a good software for drawing. I am a complete beginner. Do you know good materials to learn tikz?
2
votes
2answers
42 views

put a label inside loop made by path

I am completely new to tikz so excuse me if it seems easy. I am going to put a label inside the closed path I have written(mostly taken from here): \begin{tikzpicture}[->,>=stealth',shorten >...
4
votes
2answers
116 views

Parallel arrows along a curve with tikz

I want to draw parallel arrows (for example 10 arrows) from a line to a curve. It is not good idea that dividing the line and curve to 10 parts and then join them to each other because of mathematical ...
2
votes
1answer
77 views

LTSpice - PGF/TikZ

I am a newcomer to LaTeX and came across PGF/TikZ by chance. Currently I try to draw the function graphs f(x) in PGF/TikZ, but with no success. Can anyone help me to read the data file from LTSpice ...
3
votes
1answer
51 views

Node label switching on condition

I try to create a dynamic graph where a node move along the axis line. When a condition on x is filled (X>1.8), I need the labels to be translated as i tried to do it in the following MWE \...
-2
votes
0answers
47 views

my question this how do you writting graph? error when arrows change directions [duplicate]

\begin{tikzcd} \bullet & & & \bullet & & & \\ \arrow[ur]\arrow[dr] & \bullet \end{tikzcd} help me question? couldn't write 3 shapes side by side
2
votes
1answer
30 views

tikz customize file archive shape

I wish to use pgfdeclareshape draw a file archive shape. \documentclass[border=2pt]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \makeatletter \pgfdeclareshape{mrects}{ \...