Tagged Questions

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)

0
votes
0answers
25 views

How can I fill the corner of a page with a wave like drawing in tikz?

I have made the following drawing using the original drawing on the tikzpgf manual's cover page (link). But now I want to have one of those wave like shapes to be expanded in the corner of my page ...
3
votes
3answers
36 views

How to use a macro to store the default pgfplot properties

I have some default settings for my pgfplots plots, such as xlabel, ylabel, width and so on. Since I have a large number of such plots and don't want to repeat all the properties, I want to store them ...
2
votes
0answers
19 views

Add legend to pgf plot results in \end{axis} error

I exported a Matlab figure to tikz, using matlab2tikz. It is a simple plot of some lines and I need to label them. matlab2tikz did not add the legend entries automatically for the first time, so I ...
4
votes
1answer
35 views

Moving a tick mark horizontally

I have asked about moving a tick mark from below the x-axis to above the x-axis. (I used the specification xticklabel shift=-16pt.) In the following graph, the tick mark is at a point where the ...
5
votes
1answer
39 views

How to use cycle list = black white properly

I am not getting the black white cycle list working. All three graphs are solid black lines. I want them to have different dash patterns though! \documentclass[11pt, a4paper]{article} ...
4
votes
1answer
76 views

Show only main part of Tikz diagram and outliers via extension

My diagram is too big. The problem is the red line, which is going below 50. In some old books I found a nice work around for this. Their the area between the main part and the outlier is left ...
2
votes
1answer
45 views

Problem compiling Tikz automaton library example

This doesn't compile for me (adapted from p.521 of the Tikz manual, v3.0.0): \documentclass{article} \usepackage{tikz} \usetikzlibrary{automata} \begin{document} \begin{tikzpicture}[shorten ...
3
votes
0answers
90 views

Illustration of Lagrange multipliers

I want to draw with pgfplots and/or tikz an illustration of Lagrange multipliers. For reminder, Lagrange multipliers are used to optimize thing like this: min_x f(x) such that g(x)=0 Basically, I ...
3
votes
1answer
59 views

Shifting graph in TikZ: centre not working

I am having trouble making a diagram align in tikzpicture. At the moment if I use '\centering', my network graph moves to the right of the pdf. If I don't, it is in the left of the pdf. How do I make ...
5
votes
0answers
78 views

Fonts Compatible with Laser Cutting

Pretty straightforward question: My friends and I have access to a laser cutter and we are making a word clock. Thus I was wondering if anyone knew of a LaTeX font compatible with laser cutting such ...
3
votes
0answers
52 views

Scale a tikz picture [duplicate]

Here was the original code, from here. I am trying to fit it to a specific page with the following margin. Note that I need to use \ref{} to some other content in the writing. So i cant't just ...
2
votes
3answers
152 views

Arrow between two cubes with TikZ

The idea is to create an arrow between the upper surface of the first cube and the upper face of the second cube indicating a multiplication by 2, and an arrow of the upper side of the second cube ...
4
votes
1answer
47 views

trend line in pgf plot

I have been trying to fit a trend line using pgf plot for my data and unfortunately can't seem to hit the right spot with the code. I have looked in the manual for examples of linear regression and ...
0
votes
0answers
28 views

Preview + tikz extraction no longer working (TL 2014)

I'm trying to regenerate an old document where I used to extract tikz figures using preview and I'm getting into a problem where preview extracts every page of the document rather than just the ...
2
votes
0answers
50 views

TikZ ER-Diagram double edge looks ugly

Drawing an ER-Diagram in TikZ and using double edges results in ugly connections of those edges into the nodes. What can be done to connect those edges nicely to other nodes? \documentclass{scrartcl} ...
6
votes
2answers
143 views

Programmatically styling tixz matrix nodes

I'm trying to write a macro that given some coordinates colors the corresponding cells in a matrix black. This is related to this question. I fail at adapting one of the answers from that question. ...
0
votes
0answers
53 views

How to change PGF from 2.1 to 3.0?

I am using TexLive 2011. Although I have downloaded PGF 3.0 and put it into the folder texmf but the \ pgfversion always result in 2.1.How to change PGF from 2.1 to 3.0?
3
votes
1answer
43 views

How can I add offsets to coordinates in tikz?

I’m trying to add offsets to two coordinates with tikz like this: \draw[line width=4] (coorda) ++(0.3pt,0) -- (coordb) ++(-0.3pt,0); The first ++ instruction works just fine, but the second one has ...
1
vote
0answers
39 views

Error with TikZ figure that complie well before [duplicate]

I've got this diagram created with Tikz a year before: \documentclass[paper=letter,headings=big,bibliography=totoc,DIV=9]{scrbook} \KOMAoptions{headsepline=true,fontsize=10pt,draft=false} ...
2
votes
4answers
91 views

Size relative to line thickness/invariant under scaling

How to I realize a dot (here just drawn as a circle) which stays the same size no matter how I scale the image. Here is the example. \begin{tikzpicture}[scale=1] \draw[thick] (0,0)--(1,0); \fill ...
2
votes
1answer
56 views

mark interval over the line

I need make a picture like this, make a function interval over the line: I have no idea how to do this. Anyone know?
2
votes
2answers
117 views

2d arrows forming axis with text

The following output under tikz/pgfplots 3.0 is desired: I would further like: (i) Text (instead of the gradients) at the end of the arrow-tips (sufficient room for writing +/- 10-15 characters ...
5
votes
4answers
322 views

Drawing a Block Diagram using TikZ

I have to make the following block diagram in TikZ. As I am new to it, I can make a simple horizontal block diagram however, I am unable to connect blocks as shown in the picture below. Kindly can ...
3
votes
1answer
49 views

Diagonal upright text in tikz

I wish to label a diagonal line in Tikz so that the text runs diagonally yet is upright. My use case is just a row of small 1's for a triangular matrix, but something flexible is preferred. Something ...
6
votes
3answers
163 views

TikZ in/out angle vs. Bezier controls

In the figure below, I would like both segments to have the upward arrow that's currently in the left-hand segment, but I would also like both segments to have the nice round shape that's currently in ...
8
votes
1answer
88 views

Include PDF with OCGs

I want to avoid to recompile large tikz graphics and therefore I compile them as a standalone pdf file. This file contains some OCG layers which I want to use in the main file, but the OCG layer are ...
0
votes
1answer
86 views

drawing a 2D-plane

i need to draw this plane, but i don't know how can anyone help me? its important i need it in my master report. i try to use this from an old example to start with but it didn't work ...
2
votes
0answers
49 views

How can i make a tree with linked list on every node?

Im trying to make a tree where every node has a liked list. I know how to make each other, but i cant make them together. If someone can help me and give me some examle would be nice :)
0
votes
1answer
35 views

How to increase arrow size and the text size

\documentclass[tikz,border=10,a4paper]{standalone} \usepackage{tikz} \usetikzlibrary{arrows,shapes,positioning} \usetikzlibrary{decorations.markings} \tikzstyle arrowstyle=[scale=1] \tikzstyle ...
1
vote
1answer
70 views

Problem with outputting graphs using gnuplot and TikZ

I want to draw graph using gnuplot and TikZ with the source (this is MWE) shown below, but it didn't work for me. \documentclass[uplatex]{jsarticle} \usepackage{gnuplot-lua-tikz} \begin{document} ...
1
vote
0answers
32 views

Milestone aspect ratio in pgfgantt adjusted for units?

So: I have a Gantt chart created with pgfgantt where in order to fit my pages I have included x unit=1.4cm,y unit chart=6mm in its preamble. This means that milestone shapes are spread out ...
6
votes
3answers
267 views

flow chart drawing

The code that i have made for the following flow chart creates paths (arrows) which are shorter than the others. besides i don't know how to put the word department on top other box. here is my code ...
3
votes
1answer
61 views

Gantt chart using pgfgantt with years divided into quarters?

I'm preparing a Gantt chart for a two year project; at this stage the timeline is pretty rough, and I'd like to set up the chart with three rows at the top: the title, the years, and then the quarters ...
4
votes
1answer
55 views

labeling edges in tikz using boxes

I'm creating labels for edges by manually creating a node and placing it in the center of the edge. Is there a cleaner way to do it? Also I would like to have the edge invisible inside the label. ...
4
votes
1answer
51 views

Filter tikz node text through macro

I would like to make a node style that "filters" the node's label (text) through a command, i.e. replace the node text with a macro, with the original node text passed as an argument to that macro. ...
5
votes
1answer
85 views

How can I prevent overdraw with tikz arrows?

I’m creating a diagram and there are several arrows which exit from the same node. The problem is that in many PDF viewers the arrows get slighly blurred at some zoom levels so that the lines appear ...
1
vote
4answers
237 views

How can I draw the following diagram?

Please, How can I draw these diagrams using TiKZ ? r = r_{0} e^{bt}, \theta= bt x= R cos wt, y=R sin wt, z=hwt
1
vote
1answer
30 views

Configure newenvironment with xkeyval

I am having trouble getting xkeyval to work with \newenvironment. If I define the whole thing as a command instead, it works perfectly. So my guess is that the problem is not how I use xkeyval, but ...
0
votes
0answers
34 views

The specification “font=\footnotesize” is ignored in a node command

I have code that labels a function, a horizontal line, and a point with the node command. (Is this called a "command"?) I use the specification "font=\footnotesize" in the node command each time to ...
2
votes
1answer
90 views

Labeled Petersen graph with new tikz graph library

Following up on Petersen graph with new tikz graph library, I tried to label the vertices with something different than numbers. I thought the following would work: \documentclass{standalone} ...
3
votes
2answers
131 views

How do I add beautiful borders to the title page

I want to add an attractive border to the title page alone. Please explain how I can do this?
3
votes
2answers
53 views

Meshed Tree and horizontal orientation

I want to implement a tree like shown in the pictucre in tikz: I found the forrest package, but wasn't able to achieve neither the 'half-horizontal' shape nor the 'meshed' shape yet. I would ...
2
votes
1answer
96 views

Trimming TikZ grid

I have the following picture: obtained from: \begin{tikzpicture} \draw (0,0) grid (4,4); \draw[invmidarrow=0.5] (0,0) to[out=110,in=250] (0,2) (0,2) to[out=70,in=190] (1,4) (1,4) to[out=10,in=170] ...
3
votes
1answer
115 views

Make a Sequence of Pictures with TikZ

Recently, I often want to illustrate graph algorithms through a sequence of pictures as in My current method to do this is to create a chain, and then place a nested tikzpicture in each node. As ...
1
vote
1answer
48 views

How to add a text label to a line in a block diagram

I'm very new to LATEX and I'm trying to set a block diagram and at the same time format it exactly as I'd like, please see my block diagram below: https://www.writelatex.com/1492096yphfwt#/3712155/ ...
6
votes
10answers
644 views

How might I typeset the Fano plane in LaTeX?

I'm sorry if this is a duplicate in any way or is otherwise a lousy question. How might I typeset the Fano plane in LaTeX? In particular, I need a vector graphic of it and I would prefer to use the ...
2
votes
1answer
76 views

Euler diagram missing a part

Claudio Fiandrino provided a good answer to my question on Complex Venn Diagramm (actually a Euler diagram). I did alter the code somewhat to make the figure more resemble my previous Venn diagram ...
1
vote
0answers
23 views

Nested environments to scale tikzpicture [duplicate]

I found this nice solution to scale a TikZ picture to \textwidth and wanted to use it within an own defined environment. \documentclass{article} \usepackage{tikz} \usepackage{environ} \makeatletter ...
1
vote
1answer
48 views

How to re-center a “standalone” TikZ image to be converted to png

I’m trying to construct png icons following the method explained here. Below is an example file that needs to be adjusted because part of the border is eaten up (all the upper part and the very end ...
3
votes
0answers
42 views

Is xelatex compatible with pgf masks?

When making my presentation with beamer I use xelatex to get nice fonts or I use pgf package to make images with transparent backgrounds. Unfortunately, I cannot use both at once as xelatex ignores ...