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

10
votes
5answers
774 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
91 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
69 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
146 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
166 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
70 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
104 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 blocks/...
0
votes
3answers
222 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
505 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
102 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 issue,...
2
votes
4answers
98 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 ...
2
votes
0answers
92 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 I'...
0
votes
4answers
234 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
162 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
100 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 7.5]...
0
votes
0answers
52 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 ...
8
votes
4answers
518 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
330 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 grid,...
16
votes
1answer
205 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
96 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
100 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^* (0,-...
4
votes
4answers
204 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 if ...
3
votes
0answers
125 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
113 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
162 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
273 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
66 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
78 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
127 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
76 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 (even)...
3
votes
1answer
217 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
201 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\...
1
vote
0answers
59 views

Diagram for composite of a function in Latex [closed]

Can somebody help me generate a latex code for this pic.
0
votes
1answer
46 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
117 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
75 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
107 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, "acc"...
0
votes
1answer
61 views

What would be a good way to make a TikZ picture composed of lines, dots and cones?

I want to make a diagram like this: It features lines, dots and 3D cones. I'd also like it to feature a little "explosion" icon and text labels. I have seen some examples of how to make 3D cones (...
2
votes
1answer
43 views

Converting pictex to eps

I have a very old pictex code which I used more than 20 years ago with plain tex. Is there a sensible way to convert it to vector graphics (eps)? EDIT: the sample code \input pictex $$ \...
2
votes
2answers
254 views

How to make curved springs (coils) in tikz, for a mechanics problem

Is there anyway using say tikz (preferred, or pstricks would be OK too) to make curved coils? Essentially I want to make beads on a circular wire that are joined by springs. Here are the images I ...
2
votes
2answers
174 views

Square Edge and Horizontal Tree Diagramm with forest

I am basically trying to re-create the Aves Cladogram as illustrated in this wikipedia page. After trying to use Newicktree package for a while, I decided to migrate to forest. I am trying to make ...
2
votes
2answers
195 views

Draw a lightning bolt between two given points in tikz?

I need to draw a lightning bolt which starts at a point and its sharp edge ending at another point. For instance, let me define the points \documentclass[tikz,border=5mm]{standalone} \usetikzlibrary{...
3
votes
1answer
212 views

How can I draw an empty plot?

How can I draw an empty plot, so I can print it and draw the input manually? I just want the X and Y axes. I want a time on the X-axis (07:00-22:00) and an Integer (0-10) on the Y-axis, but all I ...
4
votes
1answer
116 views

Problem with vectors (tikz)

I have to draw these vectors, with the grid and also a grid (like the picture). I've searched online but I can't solve my problem. Can you help me? \documentclass[a4paper]{minimal} \usepackage[...
2
votes
1answer
108 views

Feynman diagrams with feynarts

I'm trying to draw Feynman diagrams with the feynarts.sty package for LaTex. The problem is that if I write the following code: \begin{feynartspicture}(150,150)(1,1) \FADiagram{} \FAProp(0.,10.)...
6
votes
2answers
165 views

TikZ: drawing balancing diagrams like SolveMe Mobiles

I want to draw a diagram like this: In general, the diagrams in SolveMe Mobiles (section Play) I suppose I can do with raw code, but I want to do with custom command like: "make horizontal line", "...
1
vote
2answers
142 views

creating diagrams with dots and connections in TikZ

I'm a newcomer to TikZ, but figure it's the easiest way to draw and include several of the following diagrams below in LaTeX. What code will generate the above diagrams? (Obviously not the text or ...
3
votes
1answer
59 views

Tex Add nodestyle

Is it possible to use different node styles with my "syntax" of defining the nodes (using [. ]). \documentclass[landscape]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[...