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.

learn more… | top users | synonyms (3)

2
votes
0answers
446 views

pgf-Tikz code generator for Latex [duplicate]

LatexDraw is a PSTricks code generator for Latex. LatexDraw generates PSTricks codes of any fugure are drawn. Are there any such tools that will generate pgf-tikz code of any figure for latex? If ...
4
votes
1answer
1k views

Smart Art diagram in Tikz

I was trying the following code from the smartdiagram package, but I can't see the same result as in the manual. My code is \documentclass[12pt,a4paper]{article} \usepackage{smartdiagram} ...
7
votes
1answer
1k views

pgfplots: Using Sans Serif Fonts for Numbers and Text (not Variables) in Figures and Diagrams

I want to use a sans serif font in figures and diagrams. This also applies to tables (related question). The normal text should remain roman (with serif). Here is the normal way one would try to ...
1
vote
1answer
103 views

Align in nested node

I want to create nested node in tikz but meet difficult to align Here is the code \documentclass[12pt, a4paper, oneside]{standalone} \usepackage{algorithm2e} \usepackage{pdfpages} ...
0
votes
1answer
2k views

Another TeX capacity exceeded, sorry [input stack size=5000] [closed]

I got another error as below TeX capacity exceeded, sorry [input stack size=5000]. [...ial,right= of m0] (A1B1C1) {$A_1B_1C_1$};] Here is the code \documentclass[12pt, a4paper, oneside]{standalone} ...
4
votes
2answers
184 views

To label Question environment

My minimum code \documentclass{article} \usepackage[framemethod=tikz]{mdframed} \mdfdefinestyle{ans}{ linecolor=cyan, backgroundcolor=yellow!20, frametitlebackgroundcolor=green!40, ...
2
votes
3answers
786 views

Beamer overlays: changing font between slides

I am creating slides with overlays in Beamer, using TiKZ to create a figure consisting mainly of text nodes. The idea is that different parts of the figure are highlighted on each slide. Initially ...
4
votes
0answers
2k views

Want to add more column on the left side? [closed]

Want to add more column on the left side? \documentclass{article} \usepackage{pgfgantt} \usepackage{rotating} \usepackage[graphicx]{realboxes} \newganttchartelement*{mymilestone}{ ...
1
vote
2answers
427 views

Placing text, includegraphics or a table above and below Tikz picture in standalone

The documents I am working with produce very large Tikz pictures (using Forest package) that span multiple horizontal and vertical pages in PDF. These pictures need to have titles, compbined of text, ...
1
vote
1answer
289 views

How can I add a shaded, thick arrow to a Tikz picture?

I have created a directed graph and want to add a thick, shaded arrow to indicate change over time. The problem: It should go from one edge to another (from initial state to result state), not from ...
9
votes
2answers
963 views

How to add a shadow to a tikz line?

I have the following tikz picture. \documentclass{standalone} \usepackage{tikz} \usepackage{xcolor} \begin{document} \begin{tikzpicture}[ arr/.style={->, blue, very thick}, ...
11
votes
2answers
472 views

Double Smithchart with pgfplot

I'm trying to plot a smithchart, which has negative impedances, too. This is how far i got till now: \documentclass[]{standalone} \usepackage{tikz} \usepackage{pgfplots} ...
11
votes
2answers
529 views

How to create a color wheel shading with other colors?

In the pgf manual one can get a circle with a jet-colormap color-wheel-shading with: \tikz \shade[shading=color wheel] (0,0) circle (1.5); How can I get the same but with another colormap? This ...
3
votes
2answers
2k views

y minor ticks not showing with pgfplots

I want some minor ticks on the y axis, but it doesn't work. I already tried minor y ticks num but it didn't help. Thank you in advance. \documentclass[11pt,a4paper,oneside ]{article} ...
3
votes
1answer
1k views

Horizontal Probability Tree with Level Labels

I'm trying to create a Horizontal Probability Tree with Level Labels using tikz. (Not tikz-qtree). Right now, I have a horizontal tree. The labels are NOT aligned to the top of the diagram. I would ...
3
votes
1answer
616 views

Axis tick options, ticks and labels inside axis area

I know the title can be misleading, but I don't know how to put it better. I will correct it when I get better proposals. I try drawing plots from external tables with pgfplots. Alas, the template I ...
1
vote
2answers
211 views

How to create an instance in pgf-umlsd?

I'm using Modelio but I want to do everything on my paper with LaTeX, so I chose pgf-umlsd to do my sequence diagram. The trouble I have is that I don't know how to create an message to create a ...
1
vote
0answers
277 views

How to include a .gif inside TikZ mindmap? [closed]

I know that TikZ provides a mindmapping library. I am wondering if it is possible to insert a *.gif picture instead of writing text inside each child (circle). Any help will be appreciated in ...
1
vote
2answers
138 views

How to make the following matrices?

I follow the following code for the Matrices but it's not working so need some guidance to reproduce the code. I want to make the following Matrices (image)? I follow the following code but it's not ...
2
votes
2answers
664 views

doing 3x3 subplots with the colorbar located northside

I wanted to have my nine (2d) matlab plots shown as 3x3 subplots in latex with the colorbar located northside. I have no idea how to do this especially that I have the colorbar saved separately from ...
2
votes
0answers
309 views

Controlling the orientation of a Tikz decoration markings arrow?

I thought that my woes in Decoration marking arrow style ignored in custom node shape? were temporarily solved, but alas: if I do a dimension line (A) -- (B), then all is fine; but if I do (B) -- (A), ...
3
votes
0answers
123 views

TikZ: Printing press cannot print document due to RGB colors, layers and transparency

The place I print my thesis needs the PDF file to conform to certain demands. Demands I was not aware of prior to sending them the document. So, here is the challenge: Using PGF/TikZ how can I bulk ...
10
votes
1answer
559 views

Bend 3D cylindrical object

I am trying to draw the following image with TIKZ. My question is that, is it possible to bend 3D objects in TIKZ. I would like to bend the cylinder object in the code that I have given below and ...
38
votes
1answer
1k views

Poisson disc sampling implemented in luatex

In this answer by @Jake to the question Filling specified area by random dots in TikZ I learned about the poisson disc sampling technique to generate nice looking random patterns. Jake's answer ...
2
votes
1answer
116 views

Is there other brace type rather than regular?

As title, I use this code \draw [thick,decoration={brace,mirror,raise=0.5mm},decorate] this like } but I want [ I don't want to only use the same in my picture, is there other type brace? I guess ...
2
votes
1answer
235 views

Decoration marking arrow style ignored in custom node shape?

I have this dimension line macro which I've put together from examples here; and as it should be visible from the MWE (below) output: ... it works just dandy fine when called from "regular" \draw ...
3
votes
2answers
90 views

Enumeration on the top of figure

I am trying to itemize a figure, but if I do the following, I end up getting Circle on the bottom of the figure \documentclass{book} \begin{document} \begin{description} \item[Circle] ...
5
votes
1answer
116 views

Accessing node name within node text braces

I am wishing for writing $\n$ as node text, where \n has the node's name. Working example: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} [node distance=2em] ...
1
vote
2answers
325 views

Want to make the colorful table in LaTeX

I make this Table MS Word. But I am interest to make this Table in LaTeX % Table generated by Excel2LaTeX from sheet 'Sheet2' \begin{table}[htbp] \centering \caption{Add caption} ...
5
votes
1answer
657 views

Problem combining tikzexternalize, tikzscale and external graphics

I have a problem when trying to scale and externalize a tikzpicture that includes an external graphics file. Using the following code will result in an output of the document but the figure is not ...
4
votes
1answer
231 views

A nice example with `name prefix ..`

TiKZ pics include a new key called name prefix ... TiKZ documentation defines it with /tikz/name prefix .. This key is available only inside the code of a pic. There, it (locally) ...
15
votes
1answer
643 views

Anchoring TiKZ pics

Is it possible to anchor a TiKZ-pic on an internal anchor? I know (more or less) how to use TiKZ pics and know that they are draw arround their origin. What I would like to be sure is that it's not ...
1
vote
0answers
24 views

Draw node below two others nodes from the first node west to the second node east [duplicate]

I have this MWE : \documentclass[tikz]{standalone} \usepackage[utf8]{inputenc} \usetikzlibrary{shapes.geometric,arrows,positioning,fit,calc,backgrounds} \begin{tikzpicture} \node[draw, rectangle] ...
3
votes
1answer
244 views

Problem compiling TikZ diagram using template

This is my first input here. I have a problem compiling this document, where particularly the TikZ graph comes messed up (no graphics at all and labels superimposed). I am using TeXstudio with MiKTex ...
3
votes
1answer
331 views

Workaround for “dimension too large” for short, custom decorated, arcs?

I have already seen Avoiding `Dimension too large' and `ill-formatted floating point' errors in tikz, and probably there is no answer, but let's see... I have this MWE, with a custom ...
1
vote
0answers
246 views

Archimedean spiral in TikZ? [closed]

I am fairly new to LaTeX and have not actually worked with TikZ yet. Is ist possible to draw an Archimedean spiral starting at the coordinate origin? I have read the TikZ description but did not find ...
8
votes
1answer
418 views

Reading - and effect - of (default) tikz/pgf keys?

Consider the following MWE: \documentclass[varwidth,tightpage,border=1bp]{standalone} \usepackage{tikz} \pagecolor{yellow!15} % ignored with preview, but not w/ varwidth \begin{document} ...
6
votes
1answer
383 views

Conditionally transparent surface in PGFPLOTS

I am plotting 3D bars using PGFPLOTS, following the example and using the script given by Anton in his answer (the second one) to this question: 3-dimensional histogram in pgfplots. My code is the ...
15
votes
1answer
814 views

TikZ, arrow, looking for ++++++> style

I'm wondering if it's possible to draw, by \tikzstyle, this style of arrow : +++++>. Thanks, Simon
0
votes
1answer
82 views

Positioning nodes in Tikz

I am trying to construct a bordered 4 x 2 array of numbers in Tikz using the following code. \documentclass{article} \usepackage{tikz} \newcommand{\octada}[8]{ \begin{tikzpicture} \draw (0,1.05) -- ...
4
votes
1answer
263 views

Deformed drawings in loglogaxis

I constructed a graph by means of a loglogaxis with xmin=5e0, xmax=1e4, ymin=1e-16, ymax=1e0 and am trying to make an annotation by means of a circle. For this, I use \draw[color=red] (axis ...
4
votes
3answers
467 views

Gnuplot and TiKZ: centering plots?

I'm trying to plot an implicit function in a LaTeX document, and I'm using TiKZ for all my diagrams. For the implicit function, I'm calling gnuplot, and I've found that the best solution, which seems ...
8
votes
1answer
452 views

TikZ: scope fading doesn't work with \includegraphics

In this example, the included PNG (the large rectangle in the middle) should fade from left an right due to the scope fading on a previous path. Why doesn't it? Edit: I genuinely need a fade as I am ...
9
votes
1answer
214 views

Dashed loop in TikZ

How can I draw a dashed loop in TikZ? I tried \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node (X) [circle, draw] {X}; \draw (X) to [in=60, out=120, dashed, ...
8
votes
3answers
810 views

How can I represent the curved shape of a surface?

How can I give third dimension to the green surface, with shadings of color or light effects, using tikz or pgfplots? The matter is that the green surface looks (is) flat as the red one, while I ...
13
votes
3answers
895 views

How to have a real random pattern?

How to have a new recalculated random pattern? This one is the same translated everywhere. Edit I perfectly understand that the pattern is calculated once and drawn several times after. My question ...
1
vote
1answer
266 views

Rotating (and mirroring) draw lines in a custom node tikz shape?

Consider the following MWE: \documentclass{standalone} \usepackage{tikz} \makeatletter \pgfdeclareshape{circtest}{ % \inheritsavedanchors[from={rectangle}] % ...
3
votes
1answer
95 views

! Argument of \pgfmathrnd@@ has an extra }

The followin code gives this error : ! Argument of \pgfmathrnd@@ has an extra }. <inserted text> \par l.12 } ? ! Emergency stop. <inserted text> ...
4
votes
1answer
266 views

tikz: Saving repeatedly drawn parts of pictures to increase compilation speed

I'm drawing a number of very similar images using tikz, like this: Code (and motivation) are given at Making cards for Magic: The Gathering and similar card games. Compilation is slow. I've ...
32
votes
1answer
999 views

Making cards for Magic: The Gathering and similar card games

I'm creating cards for a card game. They will be similar to cards in Magic: The Gathering (left-hand image below). What I have is in the right-hand image below. The problem is that the code ...