Questions tagged [tikz]

TikZ is a set of higher-level TeX macros for producing vector graphics that use PGF (Portable Graphics Format)

TikZ is a set of higher-level TeX macros for producing vector graphics that use PGF (Portable Graphics Format)

470 questions
0
votes
1 answer

tikz explain/annotate equation in LaTeX using straight arrows with right angles

Thanks to this excellent answer, I can get an equation as in this figure: with bent arrows. But what I really want is as in this figure: with right-angled arrows. To simply write the code, you may start by modifying the code from here.
0
votes
1 answer

voucher budget constraint tikz

I've taken the following code from the super helpful guide (from this link) and am running it in TeXstudio. [domain=0:5,range=4:5,scale=1,thick] \usetikzlibrary{calc}%all %Definelinearparametersforsupplyanddemand …
spar31415
  • 21
  • 1
  • 5
0
votes
1 answer

Latex Column chart

Trying to create a latex column chart with single values in 3 different columns having 3 colors. \begin{tikzpicture} \begin{axis}[ x tick label style={ /pgf/number format/1000 sep=}, ylabel=Accuracy, enlargelimits=0.05, legend…
Amandeep Singh
  • 305
  • 2
  • 11
0
votes
1 answer

How to put a border around a tikz figure with tcbox?

The following code produces the figure I want but only when I remove the \tcbox. I'd like a border around the figure. What I have done below works with other tikz figures. The problem seems to be with the table data. Can anyone please…
ThomasC
  • 861
  • 6
  • 12
0
votes
1 answer

Latex Plot wrong Graph

You guys have an idea why latex plots the wrong function? This is my function: \draw [scale=0.5,domain=-3:3,smooth,variable=\x] plot (\x,0.5*\x^4 - 3*\x^2+ 4) node[right] {$f(x)=0.5*x^4 - 3*x^2 + 4$}; and this is the result: Latex Graph But is…
zwerg4
  • 320
  • 3
  • 5
  • 12
0
votes
1 answer

Latex: elements are superimposed in fault tree

I have the following code but element 31 is superimposed over element 27. How can I fix this…
John
  • 25
  • 5
0
votes
0 answers

Changing the colour of amssymb symbols inside a matplotlib legend

I would like to use LaTeX (don't want unicode, as I need LaTeX for other purposes as well) in order to include coloured amssymb symbols (the same as the markers in my main plot) in the text of the legend to the inset of my plot. I tired two…
ThunderBiggi
  • 239
  • 3
  • 11
0
votes
1 answer

Prevent expanding tikz picture to wrap text around

I am new to Tikz and can not figure out why relarivly small tikzpictures expand thier width to the entire page ones. Since I want my texts floating around such figures, it would be very usefull to know how to prevent them from expanding. Here are…
the_mario
  • 460
  • 1
  • 10
  • 19
0
votes
1 answer

Dimension too large error with small number

I get a "Dimension too large" error because of \tmp but I don't understand why, because the result is not that large (around 1). \begin{tikzpicture}[y=0.80pt, x=0.80pt, yscale=-0.10000, xscale=0.10000, inner sep=0pt, outer…
kipgon
  • 131
  • 14
0
votes
1 answer

How to make this figure using tikz in latex

I use latex for various projects (teaching and research). I try to find a example to make a similar figure equal this example of PSO but not found. Anyone have a idea how to make using tikz and LaTeX?
0
votes
1 answer

tikzDevice error with knitr

I'm trying to reproduce knitr-minimal.Rnw with dev='tikz' option which produces the following error: tikzDevice: R Graphics Output in LaTeX Format (v0.6.2-92-0ad2792) LaTeX found in the PATH using the command: pdflatex XeLaTeX found in the PATH…
MYaseen208
  • 22,666
  • 37
  • 165
  • 309
0
votes
1 answer

Latex tikz flowchart: how to move the label to blank spaces

I'm currently using Latex to make flowcharts and I found that the arrow goes through the label like this: Surely with the codes: %!TEX program = xelatex…
Yingqiang Gao
  • 939
  • 4
  • 16
  • 29
0
votes
0 answers

Insert external pictures in tikz, but cannot find the picture

I try to insert an external picture into tikz editor, and the code is: \node at (0,0) {\includegraphics[width=\textwidth]{IC.png}}; However, it is reported that the picture cannot be found. I was wondering how to specify the path of this picture.…
Xin Zhang
  • 251
  • 1
  • 4
  • 11
0
votes
0 answers

R tikzdevice relative directories

I have also asked this on tex.stackexchange.com: This is a problem which I face with many many plots. Lets say I create a ggplot2 plot, with a colourbar: sample = ggplot(data=data.frame(x=runif(10),y=runif(10)),aes(x,y)) + …
Nicholas Hamilton
  • 10,044
  • 6
  • 57
  • 88
0
votes
2 answers

R tikzDevice multiline title with maths expression

It is possible to input multiline math expression in the title of a graphic using tikzDevice? I tried to add the amsmath package and used the following code but it didn't work out. options(tikzLatexPackages= …
DJJ
  • 2,481
  • 2
  • 28
  • 53