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
1answer
10 views

Rectangle node problem

May I know, what is the problem to the arrow? How can I fix it? \documentclass {article} \usepackage {tikz} \usetikzlibrary {positioning} \definecolor {processblue}{cmyk}{0.96,0,0,0} \begin {...
1
vote
0answers
12 views

Implementing Moreland-balanced color maps in pgfplots

I'm trying to implement improved color maps to increase the data density in my plots and graphics (as described in Envisioning Information by Edward Tufte) and after much searching, found what I ...
1
vote
1answer
14 views

Is it possible to change line styles for pgfplots comb plots?

For example, can I adjust the line thickness, color, or transparency, without also changing the markers? MWE: \documentclass[margin=5pt]{standalone} \usepackage{tikz} \usepackage{pgfplots} \...
1
vote
0answers
26 views

How to disable Auto-Adjustment of Tikzpictures?

I've made a script which converts a latex code into an animation, but the thing that is rendered readjusts it's sizes for best fitting in the frame, I want to turn this off as the animation flickers ...
0
votes
0answers
20 views

Different horizontal and vertical spaces between subfigures with tikz text and inset

I am trying to insert a bunch of pictures of the same size (1416x1158). and inside of some subfigures, there is a zoomed-in picture. Also, I am adding captions using tikz node. But there is a problem, ...
2
votes
2answers
43 views

Unknown operator x or x^{2}

I am trying to generate the following pgfplot: Minimum working example \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} ...
1
vote
1answer
25 views

Using page dimentions in TikZ drawing

I have a simple question, but I do not know how to approach it. I would like to use page dimensions in drawing and positioning of TikZ figures, so that figures are located identically when I change ...
3
votes
2answers
99 views

need help in highlighting a row in a table

I am trying to highlight a rows MSE in the table but i am unable to do it and I am getting a small box at the end of the table. need help to draw a red box around the MSE row in the two tables ...
0
votes
0answers
12 views

How to use tikz spy to magnify part of a graph with different x and y-direction scaling?

I know the basic usage of tikz spy, but the magnification factor to x and y-direction is equal. How to magnify it along x and y-direction seperately?
0
votes
1answer
46 views

Economics graphs

How would you draw graphs used to answer optimal consumption bundle questions in economics?
1
vote
1answer
46 views

How can I draw the electric deviation?

I want to draw this figure using LaTeX, but I'm facing some problems concerning the path of the electron, how can I find such a function similar to the path of my particle, here's my approach, I wish ...
4
votes
1answer
73 views

Making the vertical bars at the endpoints of the arrowheads longer in a TikZ diagram

I would like to make the vertical bars in the \draw[|<->|] command a bit longer. Can I do that with little editing to the following code? \documentclass{amsart} \usepackage[dvipsnames]{xcolor} \...
0
votes
0answers
15 views

xlabel ylabel not on right place after scale tikzpicture

Why is my xlabel and ylabel not on the right place when i scale the tikzpicture? \documentclass[a4paper,10pt]{book} \usepackage{pgfplots,tikz} \begin{document} \begin{center} \begin{tikzpicture}[...
1
vote
2answers
49 views

Tikz: curvy arrows

I would like to complete the below diagram like the figure I have attached here. However, I am unable to complete a few of its arrows. Please help me! \documentclass{article} \usepackage{tikz} \...
3
votes
3answers
342 views

Display bytewise memory layout

I want to graphically represent the memory layout of an eeprom. I'd like to have a similar graphic like this one: I especially need to write on top of an underlying table structure with differnt ...
1
vote
1answer
22 views

Annotate an images with arrow from a different column and text in the other column from a particular location

I have got a new challenge and eager to learn things regarding tikz. Now I need to refer to each section of a picture I was going through various codes. Below is the original code where I want to ...
0
votes
1answer
23 views

How can i load the stanli pack (of tikz) into lyx?

I'm an engineering student and I'm trying to use the "TikZ Library for Structural Analysis" in LyX but can't load it in (the pack). I have tried using: \usepackage{structuralanalysis}, and \...
0
votes
1answer
41 views

tikz rounded rectangle aspect ratio

The code below produces a node with a subtly curved right-hand edge, using rounded rectangle from the shapes.misc tikz library. Here's what it looks like: The height of the node is correct, but it's ...
1
vote
1answer
41 views

How to draw a rectangle around inline text which contains a circle?

I would like to draw a rectangle around a piece of text which itself contains subtext which is circles. How can this be achieved? The circle around text is achieved using the following preamble: \...
1
vote
4answers
67 views

text baseline in a rectangle split node in tikz

I am trying to put the text on the same baseline. The text under picture A is a little bit higher than the text under picture B although both are centered. I think it is because of letters like g, p ...
4
votes
1answer
32 views

Radius-Property doesn't work in \tikzset (Tikz)

Why doesn't the radius-property work in these case: \documentclass[tikz,border=3mm]{standalone} \usetikzlibrary{calc, shadings, shadows, shapes.arrows} \tikzset{my style/.style={fill=black!60,circle,...
2
votes
2answers
138 views

How to draw a circuit using quantikz?

How can one draw this complicated-looking circuit with quantikz? Edit: Here is my attempt: \documentclass[english]{revtex4} \usepackage{graphicx} \usepackage{amsmath} \usepackage{tikz} \...
0
votes
0answers
29 views

References for making histograms

I would like to produce a histogram as similar to the following as possible. The histogram itself is not too structured, so I guess it shouldn't be too hard a task, but I am kind of struggling to ...
0
votes
1answer
37 views

Drawing graphs of functions in Latex

I have drawn the following figure in Mathematica. It is plot of y <= 1/x But when I inserted it in latex using \begin{figure}, it was inserted there but I could not control its position in my ...
2
votes
0answers
22 views

Vertical alignment with prftree, tikz and beamer

If you compile the following code, you can notice that transitioning from slide 1 to slide 2 causes the pre-existing figure in slide 1 to slightly move upwards. I'd like to keep it fixed in place, ...
5
votes
3answers
101 views

TikZ rectangle split and ignoring empty parts problem

I'm having an odd problem with TikZ rectangle split horizontal and rectangle split ignore empty parts. The problem is that if you have empty parts (unused) then the last rectangle seems to have an ...
0
votes
1answer
45 views

Multiple Pointing arrows in a slide unable to find the location

I am new to tikz just able to draw some arrows but going to complex part unable to find the location and technique to do so. \documentclass[xcolor=dvipsnames, aspectratio=169, 11pt]{beamer} \...
1
vote
1answer
41 views

Shade intersection of two disks with tkz-euclide

Is it possible to shade the intersection of two disks using tkz-euclide? I am looking for something similar to the following simple example, but I need to shade only the intersection, while drawing ...
0
votes
2answers
72 views

Draw a sphere whose latitude is the base circle of a cone

I want to draw a sphere whose latitude is the circle of the base of a cone. This is my code \begin{tikzpicture}[scale=1, font=\footnotesize, line join=round, line cap=round, >=stealth] \def\a{1} \...
0
votes
0answers
41 views

Is there a package for translating incidence matrices to electric circuits?

Is there a way to take a given incidence matrix and translate it to an image of a an electrical circuit? For example in TikZ or some other package. For the background of this: I am working with an e-...
3
votes
2answers
467 views

How can I plot in LaTeX?

I want to plot the region of 0 < x2 - y2 <= 1. I have done it in WolframAlpha, and it shows like .... How can I plot the above in LaTeX?
4
votes
2answers
138 views

Colouring a region in LaTeX with TikZpicture

For a geometry question, I drew a diagram with the following code: \begin{figure}[htb!] \centering \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1cm,y=1cm] \draw [line ...
3
votes
2answers
140 views

Tikz, parametric fill color (Goal: half color wheel with different colors)

My goal is to create a half color wheel in tikz looking something like that: The code I used to produce the above picture is based on: \shade[shading=color wheel white center,opacity=.3] [even odd ...
0
votes
2answers
28 views

Two numbers in one node - binomial tree - matrix - tikz

In the binomial tree below I want two numbers, one on top of the other, at one node position. So in the 1st row, 5th column position, I would like 12.625 and then 0.183 below the 12.625. I want them ...
3
votes
1answer
32 views

Loop in disconnected diagram not showing with tikz-feynman

I am trying to make the following disconnected diagram using tikz-feynman My attempt: \documentclass{standalone} \usepackage[compat=1.1.0]{tikz-feynman} \begin{document} \begin{tikzpicture} ...
1
vote
1answer
48 views

Circuitikz schematic scaling issue

I am trying to draw a simple circuit with circuitikz, but in order to better suit my needs I had to modify the size of all components through /tikz/circuitikz/bipoles/length=0.9cm (default length ...
0
votes
2answers
52 views

How to plot different functions in a continuous manner?

I have a graph which has three different sections. Though I have managed to plot the first two sections in a continuous manner, I could not get the orientation of the third one correctly. The plot is ...
2
votes
1answer
66 views

Word associations with tikz

I would like to reproduce this figure: in tikz-pgf. Words and scores are the following: word score know 0.01 project 0.01 reduce 0.01 value 0.01 zero 0.01 report 0.03 water 0.03 future ...
4
votes
1answer
143 views

How to remove weird errors occurring while using tikz package?

I used the tikz package to make two flowcharts in an article. I was using Overleaf online Latex editor. The flowcharts were done without any problem. However, two errors are appearing after ...
0
votes
1answer
37 views

How to set default decorator options in e.g. a tikzset?

I am putting labels on top of photos. Some labels are curved, to follow features in the image. I am calling the labels from a tikzset, as I am using the same photo multiple times. The example below ...
1
vote
1answer
43 views

“pgf” and “pgfmorepages” cause varioref to be off by one page

I am trying to place a frame around several pages in a document I am creating. The frame works fine, "varioref" gets the page number wrong. \documentclass[10pt,letterpaper,notitlepage]{...
1
vote
1answer
25 views

Are certain standard math fonts not supported in Tikz Picture?

I was trying to insert a label into a node in the tikzpicture environment and I found that some math fonts are recognized while others are not. For example, node {$\mathcal{R}$} works fine but when I ...
2
votes
0answers
33 views

Extending dimensioning command \Cote to draw annotation to the side/margin in technical drawings

I'm trying to annotate a technical drawing made in tikz. Following the elegant work of Tarass, I needed to be able to annotate to the side like depicted below because my annotation text can be longer ...
6
votes
2answers
169 views

Tikz: even odd rule with intersecting shapes

I do not know how to use the even odd rule to fill intersecting shapes. This is the desired outcome: And this is my code. I'd appreciate an explanation of how to apply the even odd rule, when to use ...
0
votes
0answers
17 views

tikz input/includestandalone using axis mostly yields Missing/Extra {}

Im trying to include several graphics with \includestandalone (or \input if necessary). Neither my own simple tikzpicture as standalone with axis are able to compile nor the ones I create e.g. with ...
0
votes
1answer
27 views

Extending lines to reach to x-axis

I use the following code to draw 2 related lines from a defined node. Is it possible to modify this code to extend the lines, so that L and S points reach x-axis, without defining their lengths. \...
0
votes
3answers
45 views

Uneven positioning of arrow heads

I am trying to position arrowheads in the middle of my segments with draw[decoration={markings,mark=at position .5 with {\arrow{>}}},postaction={decorate}] (A)--(B); It seems to me that 0.5 refers ...
2
votes
2answers
46 views

How to save or define a TikZ path for spath3 without introducing artifacts?

On pg 19 and 20 of the spath3 documentation an arc is defined within \AtBeginDocument to allow its use as a joining path between two crossing paths, as in this MWE (here I've called the arc myarc to ...
1
vote
0answers
21 views

Externalizing tikz diagrams with arguments

Since my Latex document involves many tikz pictures, often similar, I defined a command with arguments which does a tikz drawing with "decorations" controlled by these arguments: \diag{<-}...
0
votes
1answer
39 views

Drawing a 3D diagram with individual traces

I am looking for a way to transfer the image on the bottom right into an image with a 3D effect (similar to the image on the top left: please excuse my poor drawing skills). At the moment I'm still ...

1
2 3 4 5
587