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

tikzDevice not working for basic example

Consider the following example: library(tikzDevice) tikz("test.tex") plot(1:10) dev.off() An error will be produced once the plot is created, with a lot of code but near the end the error appears: ("C:\ProgramError in…
cgmil
  • 410
  • 2
  • 18
0
votes
1 answer

include tikz commands via Sexpr

I want to use tikz to implement basic graphics in an automated report created by Sweave. Therefore, I created an R function, returning the tikz command, based on the data. My code looks similar to this: <>= y <- 20 code <-…
thomas
  • 43
  • 1
  • 6
0
votes
1 answer

Plotting a Gaussian Convolution Graph

I'm writing a research paper on the SIFT algorithm, and I want to create a graphic to help explain the concept of a Gaussian blur in the context of continuous functions before I describe the discrete process. The graphic I want to create is a graph…
Luca
  • 515
  • 5
  • 17
0
votes
0 answers

AppleScript pdfcrop

I need to implement an AppleScript code to crop plenty of images created through R and then transformed into TikZ images (LaTeX environment). Here the (Windows) code suggested me: rem CropRFig @echo…
0
votes
1 answer

Compile RMarkdown PDF with Waffle Chart and Glyphs FAILURE. MWE included

I am unable to compile PDF using RMarkdown, the waffle package, and glyphs It doesn't matter if I use the TIKZ device or PDF rendering. The document compiles without a problem to HTML. The only work around I can think of right now is to create SVG…
RTS
  • 882
  • 1
  • 8
  • 13
0
votes
0 answers

R does not generate the correct tex file for a 3d histogram plot

I'm trying to export a plot from R to tikz but every time I export it, the generated file is missing the \end keyword and is not complete. How should I fix it? Here is my code: setwd("~/Google…
Ash
  • 336
  • 4
  • 19
0
votes
1 answer

Tikzpicture: enlarge cuts off the other side of the plot

I would like to put some text labels above my bars in my bar chart. In order to make space for them, I try to use enlarge limits, but it looks like it shifts my whole plot, cutting off the bottom. How could I solve this? I attached the code, the…
Rolf
  • 331
  • 4
  • 13
0
votes
1 answer

How to write brakets on diagram arrows in tikz

I want to write equations on the arrows in my tikz digram. For example, this code: \begin{figure} \centering \begin{sequencediagram} \newinst{c}{client} \newinst[6]{s}{server} \mess[1]{c}{X=f(y)}{s} …
user2192774
  • 3,807
  • 17
  • 47
  • 62
0
votes
1 answer

Rounded corners in TikZ trees

When I use TikZ tree with nodes with rounded corners, the connecting lines do not touch the nodes (near corners) but end where would rectangle end. Is there an easy way around it?
Łukasz Lew
  • 48,526
  • 41
  • 139
  • 208
0
votes
1 answer

Improving a Tikz Diagram

I have just finished my first diagram in Tikz. It looks as I wanted it to, but am unhappy with how I have 'coded' it: \begin{tikzpicture} [node distance=14mm, item/.style={rounded corners,rectangle, thick, minimum width=20mm, minimum…
Freddie Witherden
  • 2,369
  • 1
  • 26
  • 41
0
votes
1 answer

Doxygen: include custom latex command

I want to generate some images using the tikz-uml package These images should be shown also in HTML format, like formulas. In a normal latex document in order to draw these images I…
Jepessen
  • 11,744
  • 14
  • 82
  • 149
0
votes
1 answer

Reading two column data from a text file and plot using tikz package

I want to export my data in two columns (x and y) and plot them using tikz package in LaTeX. Is there a way to it from a large number of rows? A code snippet would be sufficient.
Kostas
  • 270
  • 1
  • 3
  • 10
0
votes
1 answer

Bargraph Error in Tikzpicture

I don't know why the data on x-axis over leaping. I don't have any idea. \documentclass[varwidth=true, border=2pt]{standalone} \usepackage{pgfplots}\begin{document} \begin{tikzpicture} \begin{axis}[ symbolic x coords={Coke-Classic,Diet…
0
votes
1 answer

Tikz: Align Drop Line to left of box when single line of text is present in node

I am playing with the example from Tikz located here. When I change the text from "Defining nodes and arrow styles" to "Defining nodes" the line dropping to the children of this node shifts to the right. Is there a way to make the line always be…
The Guy
  • 658
  • 1
  • 7
  • 21
0
votes
0 answers

Latex runs out of memory when plotting tikz drawing from shapefile

I am using R and tikzdevice to export a ggplot2 drawing to a tikz drawing. The drawing consists of a raster layer for Germany and a shapefile for the country borders. The raster layer is saved as a png and linked to in the tikz file. As long as I…
telegott
  • 196
  • 1
  • 10