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)

3
votes
1answer
14 views

PGFPlots axis label not moving

Could some body please explain why I can't move the y axis label to the end of the axis like the x. Using the following I get the below. \documentclass[a4paper]{article} \usepackage{pgfplots} ...
4
votes
1answer
291 views

How to create or where I can find a symbol of a fly?

I want to draw the following figure, a chessboard with a fly in the house on the left top. But I can't to dry a fly.
3
votes
1answer
95 views

Filling area of graph in TikZ

I have worked out how to make my graphs, and get them plotted. Now I am having trouble figuring out how to mark the triangle in the middle (right of the dashed line, between the two red lines). ...
4
votes
0answers
51 views

What is the preferred mechanism for reuse/encapsulation in TikZ?

I'm just starting out in TikZ, and I'm noticing a lot of friction around the issues of encapsulation and reuse, so I figure I must be missing some best practices. I want to create a multi-panel figure ...
4
votes
1answer
54 views

Can I turn a TikZ path into a hyperlink?

I'm writing a presentation for the Shannon Switching Game. In this game, players take turns picking edges from a graph. For fun, I decided to try to include an example game in the presentation. The ...
8
votes
1answer
118 views

How to save and restore the nodes between tikzpictures?

My English is not good enough so I beg you to excuse me if the question is long The next code is not very interesting but it may illustrate correctly my problem. I have a lot of macros and I need ...
0
votes
0answers
13 views

Included tikz picture doesn't render [duplicate]

I'm trying to include a tikz diagram, with its code in tikz/example.tikz to a tex document in the following way: \begin{figure} \include{tikz/example.tikz} \caption{Example} \label{fig:example} ...
1
vote
0answers
30 views

PGPlots xtick label from a table

I am trying to load data from a table which looks like below and use the 'label' column for xticklabels. idx,label,value 1,20040101_20050108.rotation.summary, 19.470949839091155 ...
3
votes
1answer
70 views

Vertex labelling in TikZ

I want to be able to label the vertices of a graph arbitrarily, i.e., not just by letters or numbers, but by whole formulas. For example, I can't be bothered to rename the vertices in the text, so I ...
5
votes
2answers
124 views

Tikz: failure to fill

I've just gotten into the tikz package, and am using tikzpicture to do some work with graphs and complexes on them. I want to be able to fill in certain areas of the graphs. I've found what I want, ...
-1
votes
0answers
31 views

How to create the diagram of an atom? [duplicate]

How can I create the diagram of an atom like the one in the picture. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \end{tikzpicture} \end{document}
3
votes
1answer
24 views

tikz - Multi-line text size

I am using this command: \newcommand{\orgnode}[2]{\node[shape=rectangle,draw=black,align=center] at (#2) {\Large #1};} to make basic ORG chart nodes. I want the text size Large. This works with one ...
4
votes
1answer
36 views

How can I determine the size of an array containing macros with optional parameters?

I am using my solution from How can I determine the size of an array? to count the number of entries. However, the \foreach/\IfStrEq in \SetArrayLength seems to have a problem when an entry is macro ...
4
votes
1answer
43 views

Adding nodes near coordinates to bar plot but from different series

I would like to annotate a bar plot with some markers or numbers to indicate the significance of some results. The significance is given in a different column from the main value. Just to give an ...
1
vote
1answer
31 views

tikz \draw vertex color or highlight with relative angle coordinates, and translate to rectangular coordinates

the following is a good example. let's say I want to draw an SSD-like box. eight points, not identified by grid coordinates, but by relative angles. \documentclass[border=3mm,12pt]{standalone} ...
4
votes
1answer
42 views

Graph shifts position when adding plot

If I compile this code without the Gaussian function at the end everything is allright, but if I try with it the whole figure shifts to the right. In this example it is not a very big problem, but ...
3
votes
3answers
77 views

Reconstructing the following bias-variance diagram

I would appreciate if anyone that is more familiar with the tikz-package could replicate the following picture in LaTeX: The design does not necessary has to be the same. I'm more interested in an ...
3
votes
1answer
54 views

improvement of a complex contour

By adapting the codes in an answer to the question How to draw these (closed contours) diagrams using TikZ or PSTricks?, I get the following picture. Would anybody help me to make the following ...
2
votes
1answer
57 views

Komascript chapter title position

I'm trying to format the Chapter title (I'm using Ubuntu which has komascript 3.12) using Tikz to add a minitoc. I can format the number and chapter prefix but the chapter title does not change ...
4
votes
1answer
40 views

Best way to scale a tikzpicture with matrices

I had the following figure in a document that I am looking to put in some beamer slides. The figure in question is to wide to fit in the slides, so I am looking to scale everything, by say, a factor ...
3
votes
1answer
93 views

Drawing with Tikz (Physical System)

I want to draw the following in Tikz (Tikz is the way to go here right?) As I am new to Tikz, I tried do draw it by hand to see if someone here can help me. If possible, it would be nice for it to ...
5
votes
1answer
103 views

tikz workflow tools?

How are you initiating tikz graphs? I tried a whole variety of approaches. I tried to draw my first sketches on a glassboard and photograph and autotrace this, but no auto-tracing software that I ...
1
vote
0answers
32 views

Trouble labeling an angle within a picture

My tikz does not want to label the angle within the figure. Whenever I try to use the command "$\alpha$" inside the pic arguments tikz ignores it. I do not know how to proceed. Any suggestions for the ...
3
votes
1answer
34 views

Assigning xlabels to symbolic x coords

I am using the below code to generate the shown bar graph. However, I cant find anything with which I can label each of the individual bars for both sets of my data. i.e say the bar marked 0.67 I want ...
15
votes
4answers
494 views

Regular Polygon with tip on the bottom

I have a set of three regular polygons with six sides which I create using regular polygon from the shapes tikz package. However this always creates the polygon with the flat side on the bottom. How ...
0
votes
0answers
37 views

How to make this state diagram?

I am trying to make this state diagram: Is there a package in TikZ that can facilitate this?
2
votes
1answer
82 views

How to flip certain pixels of a QR code?

I would like to modify the data (black square or white square) in a QR code so that to display any graphic feature of my own choice in the code at the expense of sacrificing a certain amount of its ...
4
votes
1answer
519 views

What is wrong with this bar graph?

I try to create a bar graph based on an example I found. I do some modification to origin, but it doesn't work. \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \begin{document} ...
2
votes
2answers
52 views

Vertex Label in tikz picture

I have drawn several graphs using tikz. Right now I am getting the vertex label inside the vertex. But I want the labels of vertices outside it. Also I want to draw two tickz pictures in one line. ...
1
vote
2answers
43 views

tikz /.pic with double rotate?

dear tikzperts: how would I keep the orientation of the text in the box, so that the rotate inside the .pic will be additive to the one in the main text. \documentclass[border=3mm,12pt]{standalone} ...
4
votes
1answer
56 views

Cayley graph attempt

I tried modifying the latex code from a previous Cayley graph post on this site, but the arrows are not connecting correctly. The image looks ok for the first five nodes, then it falls apart. I'm ...
1
vote
0answers
64 views

Animation with sinusoidally moving arrows

I am trying to create an animation using animateinline and it's my first. This is the frame layout: http://i67.tinypic.com/bfj7s2.jpg Below is my code so far. I can't figure out how to get the sine ...
3
votes
0answers
26 views

Is there any way to reposition/shift the node text in tikz, without creating extra nodes?

I don't like the default positioning of the labels Q1 and Q2 below; is there a way to move or shift them relative to the circuit symbols? I know I could do \node[nigbt,label={something}] but it seems ...
-2
votes
0answers
53 views

A Cayley graph in Latex [duplicate]

I know that questions like these are usually not well-received, but I need to make the following picture in latex. I don't know how to code with tikz, and if someone has any code for a similar ...
1
vote
1answer
36 views

Connecting nodes of a duplicated graph

How can an edged be created between two copies of the same graph structure? The following is an example of the desired output (the labels don't need to be rotated with the object). Specifically I ...
3
votes
1answer
54 views

tikz .pic scaling with text

I am learning more about tikz .pic while experimenting with boxes with text inside them and then trying to rescale them. (for this example, I could create one png file and then includegraphics it, ...
2
votes
1answer
25 views

tikz: relocatable rotatable colorable objects with example (but no fill)

I admit that I am posting this partly because tikz is so cool. Experimentation with the .pic feature shows how one can define a simple object, and place it anywhere in the plot, scaled, rotated, etc. ...
3
votes
2answers
120 views

Making an image out of a picture of a Cayley diagram

I'm trying to convert this picture of a Cayley graph into latex, but I'm not sure how to create my own image. Is there any easy-to-use software that allows users to make Cayley diagrams in latex? ...
2
votes
1answer
56 views

Diverging arrows, tikz/pgf - flowchart

I've spent hours trying to draw the picture below in tikz. I can't figure out how to draw the diverging arrows, would be very grateful for any advices on the matter! Thank you in advance!
3
votes
1answer
77 views

Pgfplot how to make scientific number format with “e” exponent style

The normal scientific coordinate is something like 10^2, how do I change it to 1e+2 style ? For example: \documentclass[border=4mm]{standalone} \usepackage{pgfplots} \begin{document} ...
4
votes
1answer
62 views

Using intersecting coordinates in tikz with the current coordinate

I've learned these tricks: \draw (X) -- ++(1,1); % relative positioning \draw (X) -- (P1 |- P2); % intersecting coordinates: the x-coordinate of P1 and the y-coordinate of P2 Is there ...
1
vote
0answers
43 views

tikz block diagram widgets for computers, disks, switches, chips, interfaces, etc.

is there a widget library for hardware sketches? I don't mean just block diagrams for circuits (which exists), but for more ordinary diagrams for computer items like speakers, SATA input and output ...
1
vote
2answers
26 views

How do I align the circuit junctions with the op-amp inputs? (and be smaller)

Simple drawing... but I can't figure out how to align the circuit junctions with the op-amp inputs, unless I fudge it by adjusting manually. Is there a way to do so automatically? (and make the ...
2
votes
2answers
47 views

Expanding, adapting pst-labo

I want to make this I've tried to work with pst-labo, but the only thing I could make was (with or without bouchon): With this code: \documentclass[11pt]{article} \usepackage{tkz-euclide} ...
3
votes
2answers
41 views

Vertical alignment & line

I have a trouble in drawing a simple diagram with tikz. What I want is a diagram that lines are drawn between left aligned nodes. But the vertical alignment make the line tilted/slanted which looks ...
2
votes
1answer
34 views

How can I bend an edge into a self-referencing circle?

I want to model the behaviour described by something like the following arrow using draw: \draw[->] (zero.north) .. controls +(left:7mm) and +(up:15mm) .. (zero.north); But since I need ...
2
votes
0answers
29 views

Tikz bar chart example without power [duplicate]

I want to use Tikz bar chart, but want to avoid showing it as 1.8*10^5. How can i do it? % Bar charts % Author: Stefan Kottwitz % https://www.packtpub.com/hardware-and-creative/latex-cookbook ...
0
votes
0answers
26 views

Using a blank row to create multiple plots

I have a csv file with 300~ rows of x and y data formatted with the intent to use a blank row as a reference for separation, but I'm unsure as to how to code it in LaTeX. For example 0 1 1 2 2 3 3 4 ...
3
votes
5answers
238 views

tikz: Draw rectangle with rounded corners only north/south?

I'm trying to draw two rectangles (using \fill and a cycle) where only the north/south corners are rounded. I want the blue rectangle below to have rounded corners only on the top, and I want the red ...
0
votes
0answers
23 views

TeExample: Spherical and cartesian grids does not work anymore [duplicate]

I'm using Texlive 2015, with PGF version 3.0.1a. The following example doesn't seem to work anymore (meridian and paralles don't show up). Does anyone know how to fix it? ...