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
87
votes
6 answers

Is it possible to extract TikZ diagrams as image files?

I’m using TikZ to draw diagrams in LaTeX that I then want to isolate as image files to put online. I’m using TeXnicCenter to edit the sources. Is there is a way to extract these diagrams directly without having to extract them from the finished PDF…
Qiaochu Yuan
  • 973
  • 1
  • 7
  • 7
72
votes
5 answers

How to control font sizes in pgf/tikz graphics in latex?

I'm creating graphs in pgf/tikz. When I use these in my document they are scaled, several are in minipage/subfig like environments. When this happens the font sizes are scaled with the graphics making them very small or unreadable. I've been through…
Jay
  • 2,917
  • 3
  • 18
  • 13
28
votes
5 answers

How do PStricks and TikZ compare for ease of learning and for quality of API design?

My group uses Literate Programming for most of our source code---this means that internal documentation is written using LaTeX. We have been using PStricks for fancy technical diagrams of the system, but have recently been recommended to use TikZ. …
Norman Ramsey
  • 198,648
  • 61
  • 360
  • 533
27
votes
2 answers

How to change arrow tip in tikz

Is there a simple way to increase the size of an arrow tip using something like: \tikzset{myptr/.style=->, ????} without designing a new arrow style from scratch?
Tsf
  • 1,339
  • 5
  • 17
  • 29
26
votes
3 answers

How to get one component of a tikz/PGF coordinate?

I'm trying to draw a horizontal line across my diagram. The Y coordinate of the line should be halfway between points a and b (a is below b). The left and right endpoints of the line are on the bounding box of the tikzpicture. Here's how I'm doing…
uckelman
  • 25,298
  • 8
  • 64
  • 82
25
votes
2 answers

Does anyone know a non-TeX equivalent for TikZ?

Until now i have used Graphviz to programmatically create diagrams and graphs. Recently, I found out about TikZ and I started loving it. However, it would be overkill in some of my intended uses to have a dependency on TeX, LaTeX, etc. Thus, I want…
Mihai Maruseac
  • 20,967
  • 7
  • 57
  • 109
22
votes
2 answers

TikZ in R Markdown

R Markdown is a good tool for document authoring. It can use LaTeX statement in R Markdown directory. But when I try to insert a TikZ picture, I am lost about how to add preamble \usepackage{tikz} in it, so compile will fail. Example…
user4284784
19
votes
1 answer

Using tikz in html_document using RMarkdown

Question: Is there a way to use tikz notation within an Rmarkdown document without having to compile the document to a pdf? And (sort of in the same direction): Question: What is the best way to add mutiple tikz graphics in an RMarkdown document…
Manuel R
  • 3,976
  • 4
  • 28
  • 41
18
votes
6 answers

Latex: stretchable curly braces outside math

I am producing some latex beamer slides (but I think it is not a beamer specific question per se). I have the following: \begin{itemize} \item Issue1 \item Issue2 \item Issue3 \end{itemize} Now, I want to have a right curly brace (i.e. '}') behind…
cknoll
  • 2,130
  • 4
  • 18
  • 34
17
votes
1 answer

Using TikZ in a browser like MathJax

I'm guessing this has been done in a thread before, but I've just spent two hours reading various threads and cannot get my head around a very basic question. Long story short: I'm trying to create dynamic equations/diagrams in a web browser for a…
Alex Gold
  • 315
  • 2
  • 10
17
votes
2 answers

ggplot Donut chart

Hi I really have googled this a lot without any joy. Would be happy to get a reference to a website if it exists. I'm struggling to understand the Hadley documentation on polar coordinates and I know that pie/donut charts are considered inherently…
Tahnoon Pasha
  • 5,848
  • 14
  • 49
  • 75
15
votes
1 answer

Jupyter: how to make simple illustrations

I am learning to use Jupyter/IPython Notebook as an electronic notebook. Sometimes I need simple illustrations to go along with my calculations, e.g. arrows to represent vector quantities. That's the kind of illustration for which TikZ would be used…
bongbang
  • 1,610
  • 4
  • 18
  • 34
14
votes
3 answers

Compare floating point numbers in Latex

I am trying to use \ifthenelse to do a floating point comparison. This is the pgf/tikz code, which works if \y is integer only, but not otherwise: \foreach \y in {3,3.5,...,6} { ifthenelse{\y<3}{ ... }{ ... } }
Abhi
  • 1,117
  • 2
  • 10
  • 15
14
votes
1 answer

Designing multivariate density plot in R

I saw an appealing multivariate density plot using Tikz and was wondering if there was a way to replicate this plot with my own data within R. I am not familiar with Tikz, but I found this reference which seems to imply I may be able to use this…
rrbest
  • 1,619
  • 3
  • 14
  • 22
13
votes
1 answer

Tikz: horizontal centering of group of nodes

I need to align each row of the graph to the center. I am trying to do it with xshift. Here the code: \begin{tikzpicture}[node distance=1.5cm, auto, text centered] \tikzstyle{every node}=[draw,ball]; \begin{scope}[xshift=1.5cm] …
mindhex
  • 133
  • 1
  • 1
  • 6
1
2 3
31 32