{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)

2
votes
1answer
46 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
44 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
42 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
91 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
110 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} ...
-1
votes
2answers
130 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
140 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
154 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
120 views

draw picture using LaTeX

I try to draw the following picture using LaTeX.
1
vote
2answers
110 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
640 views

Drawing a diagram of a three-cycle

How to draw this kind of circle on LaTeX?
10
votes
5answers
713 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
84 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
66 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
144 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
163 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
67 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
80 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
210 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
489 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
99 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
95 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
79 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
217 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
155 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?
2
votes
1answer
92 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
469 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
320 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
200 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
90 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
93 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
202 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
103 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, ...
1
vote
0answers
35 views

Issue with graphics and multicol

For my paper I'm using multicols{2} and i assume that this gives me some issue with including graphics. I use the following commands: \documentclass[12pt,twoside,a4paper,notitlepage]{article} ...
2
votes
1answer
103 views

Creating Rational Functions with Horizontal Asymptotes and More on Tikz

I recently asked a question about how to use Tikz to create phase line diagrams. However I had a follow up question. The question is how I would go by creating a rational function or other types of ...
5
votes
3answers
160 views

How to repeat a drawing

I want to repeat a drawing in certain distances horizontally to form a group; then move the whole group in certain distances vertically such as that on page 1 of the included ions.tex Is there a more ...
3
votes
2answers
252 views

Is it possible to graph and draw phase lines in LaTex?

I'm working with modeling infectious diseases with compartmental models using differential equations. I want to do some qualitative analysis for my rate of infected individuals. Now, I know that it is ...
2
votes
0answers
63 views

How should I label the differentials (arrows) in sseq for a spectral sequence?

I'm trying to typeset a spectral sequence using the sseq package, which provides a way to place objects on a grid and draw arrows between them. I'd like to put labels on the arrows, as one can do with ...
0
votes
0answers
57 views

truly orthogonal edges with dot2tex + TiKZ?

Has anyone been able to generate TiKZ diagrams with truly orthogonal edges using dot2tex? When processed with dot2tex -p -ftikz --prog fdp, the edges in the following graph are not completely ...
0
votes
2answers
105 views

How to draw below network in latex?

I am new to Latex, i have to draw above diagram in latex. Can any one please help me, How to draw above network diagram in Latex.
3
votes
0answers
66 views

Error using tikzexternalize when placing an image on the verso page

I am preparing a thesis in the same manner as detailed in this question. Namely, I am looking to write a thesis with the text appearing on the right (odd) page, and images appearing on the left ...
3
votes
1answer
194 views

How to place two boxes on the same line?

I need to place two different boxes on the same line with the word 'and' separating them, if anyone could help it would be much appreciated, thanks. Something like this:
1
vote
2answers
193 views

Can some one help to draw this graph?

I am pretty new to Latex graphics I would like to aks whether the Latex could draw this picture? The function I used is : $ f(x)=\left\{ \begin{array}{ll} (x-5)^3-3(x-5)^2-18(x-5)+40 & ...
1
vote
0answers
51 views

Diagram for composite of a function in Latex

Can somebody help me generate a latex code for this pic.
0
votes
1answer
44 views

Doing a diagram with tikz

I'm trying to do a diagram. In this code, the diagonal lines have a good size, but i don't know how to make the horizontal lines bigger. Thanks for your advices! \begin{tikzcd}[every arrow/.append ...
1
vote
0answers
111 views

How to define a graphic [closed]

I'm new in LaTex. I need to draw a graphic like the image and each rectangles of image must have the size shown in Figure. I drwan it by MS power point but I need to do by LaTex. Can you help me? ...
4
votes
1answer
74 views

Help with further TeXing

I wanted to recreate a diagram in LaTeX, so I did my best and created something with matrices. I am really content, but I still don't have the arrows with 'reële nulpunten' and 'complexe nulpunten' ...
3
votes
1answer
93 views

How do I use piechartmp to make pie charts with Metapost?

This is my MetaPost input file: prologues := 3 ; outputformat := "%j-%c.eps" ; input piechartmp; beginfig(1); SetupColors((0.7, 0.7), this, this) ; SetupPercent(this, "%") ; Segment(64, ...