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

1
vote
0answers
83 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
224 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
160 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
97 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
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 ...
7
votes
4answers
493 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
326 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
201 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
95 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
98 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
117 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
107 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
161 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
265 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
65 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
62 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
115 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
71 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
210 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
198 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
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
116 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
97 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, ...
0
votes
0answers
74 views

Unable to insert PNG file [closed]

I'm trying to insert an imagine into my text document. What I've got so far is: \graphicspath{C:/Users/James/Documents/LaTeX} \begin{figure}[p] \includegraphics{Coil} \end{figure} But I can't ...
0
votes
1answer
60 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
42 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
231 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
155 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
184 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} ...
3
votes
1answer
197 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} ...
2
votes
1answer
98 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{} ...
6
votes
2answers
164 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
135 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} ...
1
vote
1answer
38 views

I want the text to continue right after the second figure

I am writing an organic lab report, and latex is preventing me from writing my results section right after my second figure. Instead, it starts the results section on the next page. Also, I would ...
5
votes
1answer
112 views

Adding elements on the surfaces of a cubic diagram

Thanks to this answer here; I can draw a nice cubic diagram as bellow: with the following code: \documentclass{standalone} \usepackage{tikz-cd} \begin{document} \begin{tikzcd}[ row ...
3
votes
1answer
140 views

Pretty printing DTDs (Document Type Declaration)

I want to include a didactic, compact view of a DTD (Document Type Declaration) in my texts. DTDs are used to define the set of tags and attributes of a XML/SGML document -- some sort of a grammar of ...
5
votes
1answer
292 views

Drawing Markov Decision Processes with Tikz

I thought this would be much easier. I am trying to recreate the standard MDP graph that is basically the same as a Markov Chain (I know a lot of posts about that) but with the addition of lines that ...
3
votes
1answer
92 views

The diagram in ConTeXt remains invisible

I found nice examples of Metapost, http://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html. When I use the example number 270, the pdf only contains a page number. Question: what I am doing ...
-1
votes
1answer
54 views

It is necessary to construct a vector diagram when a known angle relative to the horizontal axis and the length of the vector

Willing to construct a phasor diagram which consists of 2 vectors and one vector sum. An example is shown below.
1
vote
0answers
253 views

Want to Draw basic geometric figures in Latex [closed]

I have been learning latex for few month. In-fact beginners in latex. I want to draw some geometry figures for (examples given below) in latex. I came to know that it is possible by Tikz , pstricks ...
2
votes
1answer
104 views

Draw a curve in TikZ with hairs growing on one side

I would like to be able to draw tikz pictures that generalize the following one: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) to (1,0); \foreach \n ...
2
votes
1answer
146 views

3D view of 2D scatterplot

I have a scatter plot but I want to make a 3D plot where the points will be still in the XY plane but there will be a line over every point which will have different values for different (x,y) point. ...
-1
votes
2answers
175 views

Creating branch-and-bound

I want to create a graph like the one I give below! I think I should use forest package but it does not allow me (or I could not do it) to put explanations near each branch, like "solve as continuous ...
3
votes
1answer
94 views

Modify nodes near coords with \if

I would like to code something like this: if \thecitation is {This work} then nodes near coords={\thenumber{} [This work]} and plot color is Red else nodes near coords={\thenumber{} ...