{diagrams} is for general questions about vector graphics created programmatically inside a (La)TeX document. For questions about specific packages, use the appropriate tag, e.g. {tikz-pgf} or {pstricks}. For questions about inclusion of external graphic files, use {graphics} instead.

learn more… | top users | synonyms (1)

3
votes
1answer
22 views

Line up nested tikz enviroments or how to get rid of them

In my diagram I have a few components I reuse a lot, thus making "macros" in tikz for them. The current code I have is using nested tikzpicture environments and is not exactly working as expected. Do ...
1
vote
0answers
70 views

How to do these drawings?

I was reading a paper online when I saw some beautiful pictures. I wonder if it is done with tikz or if it is even LaTeX. What do you think? How can I do things of this sort?
1
vote
1answer
35 views

Grouping two blocks in a container horizontally within a diagram

How can I group C and D together horizontally instead of vertically as shown in the diagram below while still maintaining the center alignment of the container? \documentclass{article} ...
1
vote
1answer
30 views

TikZ/PGF error when using forest

I am trying to make a linguistics tree using the forest package, as in the second example in this thread. I was able to generate the tree for the most part, but I cannot draw the triangle for some ...
1
vote
1answer
30 views

Curved arrows between two circles

I'm wondering if it's possible to make this sort of diagram in Latex: This question seems like a good place to start, but I don't see how to replace the nodes with circles. Also, I couldn't find ...
1
vote
0answers
87 views

Making a timeline in Tikz?

I am working on my thesis and I would like to make a simple "technology timeline", probably something like this (although I prefer horizontal timelines): Are there useful packages that I can use? ...
2
votes
2answers
89 views

Simple Ramp Diagram with Ball

How would I make the following diagram and label the values? I would prefer it if instead of a box, there were a ball rolling down the ramp and the horizontal ground displacement were labeled as well. ...
0
votes
0answers
19 views

Pictures not showing after windows 10 upgrade

I have just upgraded my computer OS from Windows 8.1 to windows 10. My documents containing pictures which were compiling just fine no longer do so. Instead they just give the path ...
1
vote
0answers
39 views

Generating latex diagram from merise method

I am creating a MCD using Merise2 method. (see on image what a MCD look-like). There are tools that convert MCD into SQLfiles . I would like to know if there is a tool that convert MCD to latex ...
0
votes
1answer
77 views

How to draw a picture like this in Latex?

How to draw a daigram like this with colours. With label for time points as well as for the interval with limiting arrows. And with things in box like the ones on green. TIA
-1
votes
2answers
80 views

How can I reproduce this tree diagram?

I want to reproduce the tree diagram shown below. My major problem is how to put text (Yes/No/Exposure...) next to the lines.
2
votes
2answers
147 views

How to draw this diagram in Tex

I am trying to draw the attached diagram in Tex (the attached is from Microsoft Word). Happy to make some tweaks, but it needs to look something like this. Thank you very much! edit: could you give ...
2
votes
0answers
24 views

How to take out the File Path above my image [duplicate]

I've tried all the links nothing works. I'm using a mac. Packages I'm using are: \usepackage{graphicx} \usepackage{caption} Keeps coming out with the stupid Board.png on top how do I delete? ...
5
votes
2answers
798 views

How to draw a diagram like the one in this picture?

Is such a diagram called classification diagram? Is there any package in LaTeX which helps in drawing it directly like parent child diagrams?
2
votes
2answers
126 views

Area diagrams in Tikz

Introduction: I'm currently doing some research in the field of continuum percolation, and I need to create relevant diagrams according to the following specifications: The diagram consists of ...
1
vote
1answer
30 views

Tikzpicture: Strechting a specified interval (axis) of a diagram

In a collaboration I managed to create the following diagram. The last modification I need is ti emphazise that point B is located right to A (regarding the x-axis). Therefore I want to stretch the ...
2
votes
1answer
37 views

Tikzpicture changing axis label at a point

I have a graph like this: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm] \draw[->,color=black] ...
3
votes
1answer
21 views

Creating multiline labels in xy-pics, xy-matrix or similar

I would like to make a diagram that shows the order in which i used some models. I normally make diagrams with xy-matrix, but some of the model names would look clumsy if kept on a single line, so I'd ...
3
votes
1answer
87 views

Bar diagram strange behaviour

My code is: \documentclass[border=10pt]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[title = some title, xbar, y axis line style = { opacity = 0 }, ...
5
votes
1answer
78 views

Tikzpicture: Add slope angles to straight line

I am trying to add some angles between the x-axis and the red and blue line which indicate their slope. \documentclass[15pt,a4paper,headinclude, totoc]{scrartcl} ...
-2
votes
2answers
118 views

How can i draw this figure and table?

Does anybody know how I can DRAW This figures in my WinEdt 9.0 ?? Thank you very much dear my friends. Best "Saeed"
3
votes
2answers
114 views

How to draw over minipage in tikz?

I've got a code snippet, that I'd like to annotate with arrows, boxes, and bubbles pointing to the various parts of the code. Right now, I've got the code in a minted environment, inside a minipage, ...
3
votes
3answers
106 views

Multilevel hierachical tree/taxonomy with linebreaks and “empty items” in Tikz

I would like to include graphics like the following in my document. Since this is just one example and there will be different models, I can't just include it, but will rather need to be able to build ...
-1
votes
1answer
112 views

draw picture using LaTeX

I try to draw the following picture using LaTeX.
1
vote
2answers
88 views

How to draw vector/matrix diagram [image attached]

How can I draw the following which depicts certain vector and matrix operations. Update: I modified @rpapa 's solution a bit and to get the following. \documentclass{standalone} \usepackage{tikz} ...
7
votes
5answers
559 views

Drawing a diagram of a three-cycle

How to draw this kind of circle on LaTeX?
10
votes
5answers
645 views

How to color randomly drawn dots within a circle?

I'd like to create the following plot (illustrating a population and a random sample) with tikz where the dots are created/placed randomly; all dots inside the circle, however, are supposed to be ...
2
votes
2answers
77 views

How can I bound a block of text with a pair of vertical lines using TikZ?

MWE: \begin{center} \begin{tikzpicture}[draw=DarkBlue,line width=1.0pt,inner sep=12pt,inner ysep=6pt] \node at (0,0) [rectangle,draw,fill=LightBlue]{ % \begin{minipage}[t]{118mm} % A wide block of ...
0
votes
1answer
63 views

Reproducing a picture (fuel assembly) using Tikz

I am trying to write the code to draw the picture below in TikZ. My code is necessarily long with lots of \foreach loops. Could you please give guidance on how to reproduce this picture in TikZ.
0
votes
2answers
131 views

picture using LaTeX

I try to draw the following picture using LaTeX.
0
votes
0answers
20 views

Centering a diagram! [duplicate]

My diagrams tend to much on the right side of the page, although I used \centering. Can someone tell me how to center it?
3
votes
2answers
155 views

How to make the arrows meet at same place?

I found a model diagram online and I modified it, so now the code is: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes.geometric, ...
1
vote
0answers
57 views

Drawing callouts on top of text?

I'm putting together a presentation. My presentation style, however, often involves bright red callouts to the most important points of the text, especially when said text consists of code samples or ...
3
votes
1answer
51 views

Aligning node with respect to two other nodes in tikz block diagram

I use left of and below of arguments to horizontally and vertically align blocks/nodes in Tikz. How do I align a node/block both vertically and horizontally with respect to two already defined ...
0
votes
3answers
201 views

How to draw 75-60-45 triangle?

I am preparing thesis about Euler Lines and Schiffler Point; at the end of thesis I need to give example and I chose 75-60-45 triangle. First I need to draw triangle and I must put incentre(I)and draw ...
2
votes
7answers
461 views

How to graph piece wise function. f(x)={-x for -l<x≤0 & 0 otherwise}

f(x)={-x for -l<x≤0 & 0 otherwise} How to graph the above equation. pls help. also explain
6
votes
1answer
96 views

How can I define a key that adds a coloured border inside a closed path, but plays nice with \fill?

I want to draw polygons that have a fixed width shading or border on the inside. Here is an image made in mspaint illustrating the kind of thing I'd like to draw: This question addresses this ...
2
votes
4answers
89 views

How to fit x-axis and y-axis to show a domain?

I try to draw this spiral by Matlab t=[0:0.001:4*pi]; x=(1/2)*(exp(exp(-t))+exp(exp(-t-2*pi))).*cos(t); y=(1/2)*(exp(exp(-t))+exp(exp(-t-2*pi))).*sin(t); plot(x,y); but I want to show the domain ...
1
vote
0answers
61 views

Drawing 3D surfaces with triangles (to show curvature effects)

I'm looking for a way to draw 3D surfaces in LaTeX with triangles on them to show the sum of angles being >, =, or < 180 degrees, exactly as in this photo . I'd just like to do it myself, but ...
0
votes
4answers
183 views

Plot Graph with axis

Lower curve is given by function y=$\left\lfloor {\frac{x+2}{2}} \right\rfloor$ and Upper curve is given by formula y=4 for x=2,3 while y=$2 \left\lceil {\frac{x}{3}} \right\rceil$
2
votes
2answers
133 views

How to create a probability space diagram?

I would like to create graphs similar to the one shown below using LaTeX. Is it possible to create such a graph? If so, which tools / libraries / techniques can I use to be able to do it?
1
vote
1answer
64 views

Problems with bode diagram (representing an image)

I need help to represent this image (I needed this because I must represent the bode diagram): I know how to represent bode diagram, for example if we have the transfer function H = tf([1 0.1 ...
0
votes
0answers
51 views

How to write this in LaTex [duplicate]

I'm new in LateX and even a simple thing, like the letter in attachment, drove me crazy.. I haven't been able to put the image in the top of the first page, put the subject and the title in the same ...
7
votes
4answers
413 views

Drawing non-trivial mathematical diagrams?

I am trying to draw the following mathematical diagram (see attached). If all the elements were in an array style figure I would be fine with the usual \begin{array} etc. However the arrows from the ...
4
votes
2answers
303 views

How can I draw a tree structure graph?

I already draw the directed graph but it shows some error. MWE: \begin{document} \begin{figure} \begin{tikzpicture}[>=stealth',shorten >=1pt,node distance=3cm,% on ...
16
votes
1answer
176 views

Generate wordcloud of LaTeX document symbols

Is there an automated way to generate either a wordcloud or at the very least a list of all symbols used in all math environments in a LaTeX document? I'd like to generate a symbol-only wordcloud, ...
5
votes
1answer
77 views

How do I connect the vertices of a regular polygon?

I have a diagram that is just the 4 vertices of a square, all colored. I want to connect the vertices so that the square has edges. How do I do this? My code currently looks like this: ...
5
votes
1answer
82 views

tikzpicture dynamically calculate points

I'm learning how to draw diagrams with tikzpicture and I am looking for some help to dynamically calculate some points. I've made the diagram below, but I am struggling to calculate the point U^* ...
4
votes
4answers
194 views

With which package will I create, in the shortest code, two points with horizontal error bars with overlap region dashed?

Pgfplots? Metapost? Tikz? As I can't make it right now with any of them, I have to choose one of them to study. Which of them? Which has shortest code? Which has best image quality? I don't mind ...
3
votes
0answers
60 views

Change cubes in 3d plot pgfplot to bars

I am plotting a 3d diagram using cubes to represent the data. Works fine so far. Basically, this is what I started with: http://pgfplots.net/tikz/examples/scatter-cube-plot/ Now what I want to do, ...