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)

6
votes
1answer
85 views

How to rotate the box

How to rotate the box? How to change the above grid to the below shown grid I used this code to rotate \draw[step=1, red,thin,rotate=30] (-1cm,-1cm) grid (1cm,1cm); but i don't wan't to ...
2
votes
2answers
55 views

tikz: create a time-summary arrow with text

I have a doubt on the following request: I would like to obtain something like the picture attached. I tried a sort of "for" loop strategy, but it did not work. here is the code: \documentclass{...
1
vote
0answers
39 views

How to rotate grid only / prevent the rotation of grid

I am beginner in tikz. I am using the following code so that the grid also rotating how I prevent the rotation of grid / how I rotate grid by 0 . \begin{scope} [xshift=15 ,yshift=0, rotate=30] \...
6
votes
2answers
185 views

How to fill the space between two \draw lines

I am drawing two lines and I need to fill the space between them with a green color. How can I do that in tikz? \documentclass{standalone} \usepackage{pgfplots} \usetikzlibrary{patterns} \begin{...
1
vote
0answers
38 views

How can I make an implicit graph using pgfplots?

My function is $(0.8x)^2+(y-(0.8x)^\frac{2}{3})^2=0.64)$; After googling, I came up with the following codes, but they don't seem to work. \begin{tikzpicture} \begin{axis}[xmax=1,ymax=1, samples=...
5
votes
1answer
48 views

Some modification in TikZ: insert text/math right to the figure

Following the question and answer in this question I tried to modify the code for my needs. I was able to do so, although I still have a problem. My code is: \documentclass{beamer} \usepackage{tikz} ...
5
votes
1answer
201 views

How to draw a sloping grid?

Could you help me make the code to draw a sloped gride like the image below in TikZ?
2
votes
2answers
58 views

Tikz: insert text/math (itemized) right of the figure

I would like to insert some text and math right of the following tikz picture: can anyone help me? \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{shapes,arrows,chains,calc} \begin{document}...
2
votes
2answers
83 views

How to create certain picture with tikz

I'd like to create the attached picture using TikZ, or any other vector graphics package. However, I have no idea how to draw the arrows and align the text. Would really appreciate your help :)
1
vote
1answer
43 views

How to insert a number of column next to the post?

I think the question I'm going to do is very simple, but I had to do here because I researched about it all day and found nothing. Question: How is the code to make the graph below? I can not enter ...
2
votes
1answer
48 views

Beamer tikz uncovering with different fill colors

Consider the following slide: \documentclass{beamer} \mode<presentation> { \usetheme{Madrid} \usecolortheme[RGB={0,0,0}]{structure} } \usepackage{amsmath,amsfonts,graphicx} \usepackage{...
1
vote
1answer
24 views

How to aumatically center a dot2tex block within tikzpicture?

I have noticed that dot2tex-produced graphs are not center properly inside the tikz picure. This is particularly noticable in this example below: The graph should appear more or less between the ...
3
votes
2answers
64 views

Scaling tikz figures in beamer latex

I have the following example: \documentclass{beamer} \mode<presentation> { \usetheme{Madrid} \usecolortheme[RGB={0,0,0}]{structure} } \usepackage{amsmath,amsfonts,graphicx} \usepackage{...
3
votes
2answers
93 views

Horizontal tree in TikZ picture, LaTeX

This is what I have: 1) How to make sure that the words don't break and are on the same line? 2) How to highlight the lower right box "Sub-sub-sub-total2 80,000" by making the box bolder or ...
1
vote
0answers
54 views

Which journals allow for TikZ in submissions?

I'm aware of this question, where most answers point out how to externalise the TikZ parts in some way. I want to know which journals actually accept TikZ in submissions, and possibly which versions.
0
votes
0answers
28 views

Dynamically setting the fontsize with matlab2tikz

I'm using matlab2tikz to create a tikz file out of my Matlab plot. I'm using the following code: cleanfigure; matlab2tikz('test.tikz', 'height', '\figureheight', 'width', '\figurewidth', 'showInfo', ...
1
vote
2answers
62 views

Set fork and stop text overlapping

I'm having a bit of trouble with a diagram. I can't figure out how to get the fork from the second node to the 6th node at the same level and have the text not overlapping. \documentclass[a4paper,...
0
votes
0answers
33 views

Add Logo to each slide with option to remove on some slides [duplicate]

I am using an elegant solution to place a logo on each slide, however for some slides (e.g. a full-screen image slide) I want to remove it. I have searched across stack for a solution to this. Whilst ...
2
votes
0answers
41 views

Visible and non-visible lines in simple 3D drawings (cube - planes)

I want to make some simple 3D drawings, most of them in Cavalière perspective. I also want to see the difference between visible lines and the non-visible lines. The code I've made is: \...
3
votes
0answers
42 views

Submit to arXiv failed because compiler doesn't know “tikz/rotate around y”

I'm trying to submit an article written in tex to arxiv but the compilation fails whereas it works on my laptop. The error message is ! Package pgfkeys Error: I do not know the key '/tikz/rotate ...
7
votes
1answer
72 views

Position things in the middle between a node and an arrow tip

Say I want to draw something like a flow chart, that is nodes connected by arrows that sometimes merge. This would be a typical pattern: I used the following code to create this small example: \...
3
votes
1answer
45 views

Problem with ticks and caption when importing Matlab figures using matlab2tikz

I have created a nice plot in Matlab and converted it into tikz with the matlab2tikz library. It works great but there are two problems: The ticks of the axis are not good. Especially for the y-axis ...
5
votes
1answer
77 views

Graphic-Tikz in latex

I have the following code: \documentclass[]{article} \usepackage{pgfplots} \usepackage{tikz} \begin{document} \pgfmathdeclarefunction{gauss}{2}{\pgfmathparse{1/(#2*sqrt(2*pi))*exp(-((x-#1)^2)/(2*#2^2)...
1
vote
1answer
57 views

Plots are too small with two minipages

I have two plots, each one in a minipage, so they could be side by side. The left plot is significantly smaller than I would like it to be. How can I fix it? \begin{frame}[t,fragile]{CI construction -...
1
vote
0answers
60 views

Can a similar figure be drawn using Tikz?

How can a picture like this (not necessarily a kitten. Any simple figure would do) be drawn using Tikz? I don't have an MWE because I don't know where to start.
3
votes
2answers
46 views

Tikz Draw on Digraph without repeating each arc command with [->]?

The graph of Case 1 is the correct but repeating statements for arcs. In comparison, Case 2 is easier and faster to write without repeating the arcs statements. I have a feeling that there must be a ...
3
votes
1answer
113 views

How can I draw a vector in TikZ?

I have to represent this image in latex and have no idea how to do it, can someone help me with this?
2
votes
1answer
43 views

Matrices of nodes in Tikz alike to the ones in the amsmath package

I'm trying to work with matrices in Tikz. Specífically I would like to follow the amsmath package but I'm having a really hard time dealing with the overlay - remember picture thing. Here is the ...
4
votes
2answers
62 views

precisely position and crop images on beamer slide using polygonal contours

I would like to achieve slides like this: So far I have learned how to cut images using polygonal paths and how to create frames without any margin. However I could not manage to combine the two in ...
3
votes
1answer
54 views

setting a tikzset which has draw inside as style of a \node

I need to get different color edges for my rectangular nodes. I found this question How do I set only one side of a tikz node's border color? The \tikzset mentioned in the answer has input ...
0
votes
0answers
33 views

Underbracing an equation with tikz in a sub document, which is thereafter included in a main document

Notice, that for the following I have a master (.tex) document which includes the several parts/chapters (.tex). In one of the included chapters, I have an equation (with a square root) that I need ...
2
votes
3answers
66 views

Adding an image and an address on every page - no new packages [duplicate]

I am producing a LaTeX template for our corporate branding. This requires the university logo on the top right of every page, and the address on the bottom right of every page except the title page. ...
3
votes
1answer
24 views

Pgfplots: Scope inside axis environment - follow up

This is a follow-up question to this question: I still want to place an external figure inside a pgfplots plot. Additionally, I want to put some labels inside the external figure to mark the position....
4
votes
2answers
135 views

Two chain graph with tikz

This is what I'm trying to draw: I was able to draw this graph (code below): But I am not able to create another change above the first one, nor "labeling" the nodes with other nodes. Any ideas? ...
1
vote
1answer
29 views

Latex PGFplots Standalone including option build scales

As asked here I set up a template for plots that can be used with standalone and included into the main document. 1 remaining problems is that the cropping does not crop enough of the whitespace ...
2
votes
3answers
78 views

decimal comma in bchart, tikzpicture etc

Is there any way how to redefine decimal separator in environments like bchart, tikzpicture and so on? I need to typeset decimal comma, not decimal point. Minimal example: \documentclass{article} \...
4
votes
1answer
55 views

TikZ: “Clipping problem”

I have the following code \documentclass{report} \usepackage{tikz} \usetikzlibrary{intersections} \begin{document} bla bla bla \begin{tikzpicture} \def\r{1}; % radius \def\a{80}; % 1st angle \def\b{...
0
votes
1answer
38 views

Colorful undirected graphs in Tikz to demonstrate equivalence classes?

I would like to learn to create this kind of pictures as below with colored vertices in Tikz. The vertex sizes can be the same. This is a graph demonstration (CC BY-SA 3.0) for equivalence classes ...
3
votes
2answers
104 views

Creating large star graph

I'm trying to create a star graph in Latex. My graph may have an arbitrary large number of vertices, so I'm trying to incorporate this fact in the drawing. This is what I have done so far: %My Macros:...
1
vote
1answer
32 views

Creating Intervals graphs

I'm trying to create the following figures using tikz: Can anyone point me to the right way to do it? This what I have done so far: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} ...
5
votes
5answers
487 views

Small circle to be overwritten by text

How would I define a command that draws a small circle, centered at that position in the text, by which it is then overwritten. I would wish to produce something resembling the following image by a ...
4
votes
1answer
81 views

I want to draw isotherms of Andrews

I want to draw the isotherms of Andrews that similar to this: Important point is that I could "mark" the zones I, II, III and IV with a color or pattern. I've already tried two things with this ...
3
votes
2answers
120 views

How to use Tikz/Pgfplots to plot an algebraic curve on a restricted domain?

I want to plot for example equation y^2 x + x^3-3y^2-2x^2+x=0. But at the same time I need to gray out some parts of the plane (see shaded area). Is there a way to do this?
1
vote
1answer
92 views

fill polygon with image / crop image by polygon

I would like to have an arbitrary polygon filled with an image (jpg, png, pdf, ...) for it to be included in a beamer frame. I was thinking this may be possible using tikz, but I couldn't figure it ...
3
votes
1answer
106 views

How to draw an arrow from one block to two blocks with Tikz

I want to draw a diagram like below, but I don't know how to draw an arrow that from one block to two blocks, like the one to source1/source2 and how to draw an arrow from two blocks to one block, ...
2
votes
1answer
63 views

Tikz flow chart coloring

Is there a way I can get a nice solid colored line (e.g., in green) around one of the boxes (e.g., the Raw signal box) to give it some visual emphasis relative to the others? LaTeX code courtesy ...
2
votes
2answers
30 views

Strange effect when combining cycle and bend left option in TikZ

I'm trying to draw a water droplet in TikZ. Here's my code so far: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[ left color=blue!50, right color=...
2
votes
1answer
70 views

Simple Animation Help

I am just starting to try animating tikz pictures in beamer. As a test, I want to have a ball move to the right. Here is the code. Any suggestions would be greatly appreciated. \documentclass{beamer} ...
5
votes
2answers
125 views

Tikz fill color

At the moment I'm using this command in the preamble to fill the color of the specified row with grey: row 2/.style={ nodes={fill=gray!10} } Unfortunately I have to write this ...
6
votes
1answer
53 views

\IfEqCase not working inside tikzpicture

I'm working on the following LaTeX code: \documentclass[a4paper,13pt]{scrartcl} \usepackage{tikz} \usepackage{xstring} \newcommand{\swcase}[1]{ \IfEqCase{#1}{{a}{1}{b}{2}} } \begin{document} ...