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
3
votes
1 answer

Order of \pause in beamer with tikz

I reduced my problem to the following simple example: \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame} \frametitle{Example:} \pause \begin{tikzpicture} \draw (0,0) rectangle (2,2); \pause \draw (1,1) circle…
Tsf
  • 1,339
  • 5
  • 17
  • 29
3
votes
1 answer

Tikz: drawing a taxonomy/classification figure

I'm using TikZ for the first time and I don't know how to draw this taxonomy figure. I only managed to draw 2 columns, with the following…
Pedram
  • 31
  • 4
3
votes
1 answer

R tikzdevice: How to use sans serif font

I'm using ggplot in R to create plots, tikzdevice to save them and then latex to compile them in a larger document. when I create a very simple plot, e.g. require(ggplot2) require(tikzDevice) tikz("test.tikz", height = 4, width = 4) ggplot(data =…
Jonas
  • 1,639
  • 1
  • 18
  • 29
3
votes
2 answers

Modular arithmetic on node names in TikZ?

Say I want to construct a circulant graph in TikZ, with a variable number of nodes, labelled v0, v1, ..., v_n-1 for some n of my choice (say, 5). I'd like to be able to use the \foreach command in TikZ to iteratively (1) define the nodes, and (2)…
3
votes
1 answer

ggplot2: Degree Celsius Symbol in labeller with dev="tikz" option in knitr

I want to put degree Celsius symbol in ggplot2 labeller. MWE is given below with its output: library(ggplot2) ggplot(data=mtcars, mapping = aes(x=drat, y=mpg)) + geom_point() + facet_wrap(facets = ~cyl, labeller = as_labeller(c(`4` = "4 °C",`6` =…
MYaseen208
  • 22,666
  • 37
  • 165
  • 309
3
votes
3 answers

Too much white space between caption and figure produced by tikzDevice and ggplot2 in LaTeX

I'm currently using R's ggplot2 and tikzDevice packages to produce graphics and introduce them in LaTeX documents, but I'm struggling with the resulting big white spaces between the figures and the captions, as you can see if you compare the images…
3
votes
0 answers

tikzplotlib adds extra lines to plot that do not exist

When using tikzplotlib, some random lines that don't exist in my plot appear. This is consistently a thing. Original as seen in Python using matplotlib.pyplot Output after compiling from tikzplotlib into LaTeX Ignore the sizing difference as one…
The Guy
  • 658
  • 1
  • 7
  • 21
3
votes
1 answer

Tikz: How to encapsulate shade in node?

I have this shaded circle: \shade [ball color=black!80!white] (0,0) circle (1); Is it possible to encapsulate it with node style? (Including fixing circle radius?)
Łukasz Lew
  • 48,526
  • 41
  • 139
  • 208
3
votes
1 answer

Latex - Try to muster a Bode plot

I'm trying to set up a plot with two y-axis, a Bode plot with amplitude and phase in the same diagram. I use the tikzpicture package with \begin{axis} and \addplot to overlay two graphs. Well, at least that's the idea... The issue I have is that it…
Überfuzz
  • 53
  • 6
3
votes
1 answer

tikz in ipython notebook: no drawing created. Instead, get message "No image generated."

I have installed tikzmagic.py (https://github.com/mkrphys/ipython-tikzmagic/tikzmagic.py) in ~/.ipython/extensions on a mac os x 10.10.4 laptop with Anaconda (python 2.7.10), ipython/jupyter 4.0, and TexLive-2015. In a jupyter notebook when I…
alwaysCurious
  • 523
  • 5
  • 14
3
votes
1 answer

How to Find Intersections with Ellipses in PGF/TikZ

I am trying to display a sphere in PGF/TikZ to illustrate the idea of great circles. The code for my current result is: \begin{tikzpicture} \tikzfading[name=fade right, left color=transparent!20, right color=transparent!90] \tikzfading[name=fade…
user327684
  • 163
  • 2
  • 6
3
votes
1 answer

Tikzpicture - Arrow next to/under plot label

I am looking for a help with Latex. I'm new here so unfortunately I'm not allowed to post pictures yet. I have a tikzpicture plot with labeled axes (x and y). Now I would like to add an arrow below the x-axis to indicate the direction of the…
Fabian
  • 31
  • 1
  • 2
3
votes
2 answers

Minimizing whitespace around plots when using tikzDevice in R

I use tikzDevice in R to write tikz code to place plots in LaTeX documents. I have found that the whitespace around the plots, i.e. the margins, is usually excessive. Here is a minimal example of exporting a R plot as tikz code : x <- seq(30,…
mjandrews
  • 2,392
  • 4
  • 22
  • 39
3
votes
2 answers

Drawing database schema or state machine figure within RestructuredText

What is a technique or a tool that I can use to draw schema figures within RestructuredText? I do not want to import png, jpeg,.. for simple stuff. What I am looking is, a RestructuredText equivalent for TikZ in Latex to draw, e.g., state machine.…
Skarab
  • 6,981
  • 13
  • 48
  • 86
3
votes
1 answer

knitr with xelatex and tikz: Ghostscript error on minimal example

I am trying to use XeLaTeX, knitr and tikz - and failing with a ghostscript error. I have tried many different approaches and the situation is as follows: XeLaTeX with knitr: works PDFLaTeX with knitr: works PDFLaTeX with knitr and tikz:…
fsmunoz
  • 75
  • 1
  • 5