# Tagged Questions

Graphs are (1) graphs of functions or (2) sets of nodes and edges.

2answers
337 views

### Vertically align nodes in tikz graph

I have taken to drawing automata in TikZ, as it will position the nodes for me, and generally requires very little post-processing in terms of options. I know I can force nodes to be in the same ...
1answer
73 views

### How can a style applied to a given node be inherited by all descendants of that node?

I'm using the graphs TikZ library to draw directed acyclic graphs. When I apply a particular style to a given node, I would like that style to be inherited by all descendants of the node in question. ...
0answers
149 views

### How can I programmatically draw a nonlinear writing system with automatic graph relaxation? [closed]

Alex Fink & I have a non-linear written language, UNLWS. Maintaining its grammar document in Google Docs is growing excessively cumbersome, however, because of how much time it takes to load each ...
1answer
79 views

I am trying to draw a signal flow graph with \psmatrix where each node is just a dot. However \ncline does not seem to work when mnode is set to dot $\psmatrix[colsep=1cm,rowsep=1cm,mnode=dot] ... 1answer 99 views ### How can I specify a minimum length for my graph's edges? I've just started to use the (new?) graphdrawing library (see section 27 of the TikZ & PGF 3.0.0). It's awesome! However, I can't seem to effect a minimum length for my graph's edges. That's ... 1answer 247 views ### Classroom Seating Chart in TikZ? I would like to make a random classroom seating chart starting from a numbered list of students. I would also like to specify the number of seats per row (as it varies in my classroom) and the number ... 0answers 123 views ### Fitting TikZ graphs into a small space I am trying to produce a graph of the kind at the end of Kanamori's textbook - "The Higher Infinite": It would be nice to have a method that extends to any graph of implications, so rather than put ... 1answer 61 views ### Axes in the foreground with PSTricks With the code shown below, the grid is on the foreground (one can see red lines on the labels...): \documentclass[11pt]{article} \usepackage[letterpaper, textwidth=7in, textheight=9.5in]{geometry} ... 0answers 300 views ### Organizational Chart / Family Tree using tikz drawing library [closed] Previous questions showed how this can be done with plain tikz. I wonder if it is possible to use tikz drawing library for this purpose. Here are two previous questions that do this without the use ... 3answers 281 views ### Parametric plot using pgfplots package I want to make a parametric plot using pgfplot in LaTex. My equations are \rho= K (sinh t-t) P= 1/3 K (sinh t - 8 sinh (1/2) t +3t) with K=1\pi I have written the LaTex code for equations , now ... 0answers 62 views ### Inserting graph from a software in Latex I made a graph with Desmos.com. Which I want to insert in my LaTeX code, on the right side of these equations: \documentclass[12pt,a4paper]{article} \usepackage[a4paper, total={6in, 8in}]{geometry} ... 2answers 355 views ### Plotting a directed graph using pgfplots I have a few files in the following format: x y 12 12 12 13 13 15 15 15 15 13 13 12 12 10 10 8 8 8 8 10 10 12 12 12 12 10 10 10 And I wanted to plot them as a directed graph in a ... 2answers 273 views ### How to highlight a path in Tikz with two different colours? I have a small graph drawn in Tikz with two paths through it highlighted in different colours. However, these paths are going to share an arrow. What I would like is to highlight this arrow with both ... 1answer 121 views ### Is there an easy way to generate weighted vertices in graphs? There are several ways to include edge weights in graphs, but what about node/vertex weights? I need each vertex to be labelled with a letter and weighted with a number; I cannot find code that does ... 1answer 2k views ### Drawing Graph of Markov Chain with “Patches” using Tikz First time using Tikz. Haven't found any documentation on drawing graphs like these, so I have been reading other examples and trying to modify their code to fit my example. I am trying to reproduce ... 1answer 224 views ### Draw graphical model with many nodes So I tried to follow the answer in http://stats.stackexchange.com/questions/16750/software-for-drawing-bayesian-networks-graphical-models with limited success. My problem is How do I incorporate ... 0answers 53 views ### How do I use fonts from TeX Live in Graphviz? So I need to set my fonts for dot the way the pt to be the same as in pdflatex - so I'm looking for a way to use the same fonts pdflatex uses. Note also, that I'm unsure whether cm-super or cm-unicode ... 2answers 609 views ### Why doesn't this code compile? Why doesn't this code compile? \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \GraphInit[vstyle=Classic] \SetGraphUnit{2} \Vertices{circle}{A,B,C,D} ... 0answers 231 views ### Flip x and y axis of ternary graph I am trying to reproduce the USDA Soil Triangle. To do so, I would need to flip the x and y axis of the default pgfplots-ternary. I understand, that I could switch my inputs (don't really want to do ... 0answers 37 views ### Want to run graph on Beamer class Before this, I run the program code about a graph in \documentclass{article}and it succeed. But, when I change it to \documentclass{beamer} and add \begin{frame} ...content... \end{frame} in the ... 1answer 189 views ### Subgraph node overlaps with regular - tikz I'd like to have beautiful state machine without any thinking of it's layout. I also need some node grouping with description of the group. So, I wrote the following: \documentclass{article} ... 1answer 265 views ### Close a cycle in a TikZ graph with a loop Consider the following simple flow diagram. I like using the graph drawing library in TikZ for its simplicity and semantics: \documentclass{standalone} \usepackage{tikz} ... 0answers 72 views ### eps files by originpro 8 do not show properly in LaTeX The images in my paper are in EPS format. When I execute the paper, the graphs won't appear correctly (either the axes titles, legends or some data is missing). The graphs appear properly in the .eps ... 1answer 243 views ### Automatic edge placement / avoid collisions in generated graph I have the following graph, whose labels are generated in a for-loop: \documentclass[tikz,margin=5mm]{standalone} \usetikzlibrary{graphs,graphs.standard,quotes} \usepackage{ifthen} \begin{document} ... 2answers 71 views ### Little graphs of groups [closed] I am writing a little document about graphs of groups, and I would like to illustrate the theory with the simple examples of graphs with only one edge: Unfortunately, I do not know how to write ... 3answers 284 views ### export graphics on excel with quality I want to export graphs on excel to latex. How I can do it ? Save graph as image ? 0answers 132 views ### Are there LaTeX packages able to plot Grace language files? EDIT The below output file as identified below in the comments (thank you) is in the Grace language for plotting. I was wondering if there are any packages capable of using the Grace language to ... 0answers 81 views ### How to draw RDF graphs in LaTeX? [duplicate] Is there any solution for drawing simple graphs in LaTeX like the following? I came across tikz but couldn't figure out how to do it. Are there also possibilities to extend such graphs without caring ... 1answer 117 views ### How to add edges to automatically generated graphs I have no background in drawing in LaTeX and I just came across the tkz-berge package. I want to draw a complete graph, a small-world graph and a random connected graph. The complete graph was easy ... 0answers 47 views ### .eps graph overlapped with caption I need your help desperately. I used latex to compile everything and used dvipdf to convert it to pdf. The graph (test) came out is overlapped with the caption. Can anyone point out what is the ... 1answer 52 views ### Vector PDF graph become blank after system reinstall I used illustrator to create vector graphs and saved them as PDF files and used in latex file. I compiled the .tex file with xelatex (I use MikTeX on Windows 7) and everything was OK. The vector ... 1answer 945 views ### Axis Environment Tick Labels as Text (Including a$)

I am attempting to use the axis environment to build a simple plot line. Is it possible for tick labels to be renamed as text? Instead of numbers I would like the month on the x-axis, and in ...
4answers
3k views

### How do I develop a complex time line?

I currently have a resume I've made in Illustrator with a time line of my work with academics on the lower part and jobs on the upper section: The trouble with it being in Illustrator of course, is ...
0answers
37 views

### Colored vertices on a directed graph with sets of Euler cycles [duplicate]

Is there a way to make the vertices on the following directed graph with a set Euler cycles colored? Provide the TeX code as well as explain how to color vertices!
0answers
125 views

### Fork down edge style with Tikz 3.0 tree graph

When node/child style is used, it is possible to achieve fork down edge style picured here: What would be the syntax for the similar edge style, but using graph? The below MWE produces sloped ...
1answer
154 views

### Are the line breaks allowed in the PGF 3.0 tree graph nodes?

The node/child layout of the trees allows to break node text into multiple lines. I tried the same with graph but luaLatex compilation never completed (using Texmaker) and I had to stop it, which ...
3answers
198 views

### Draw a graph using xymatrix. Is there another way?

I am using the package xy to draw simple Graphs or Networks. It allows oriented and non oriented edges and even weights on the edges, but the code is very complicated and it is very difficult to build ...
1answer
262 views

### How can I easily draw gene regulation pathways in Latex?

It is very common in biology to draw diagrams like the one below to show regulatory interactions between genes: You can see that this is essentially a graph, with 3 key elements: Nodes, which can ...
2answers
1k views

### How can I draw nomograms in LaTeX?

What is a nomogram “A nomogram, also called a nomograph, alignment chart or abaque, is a graphical calculating device, a two-dimensional diagram designed to allow the approximate graphical ...
3answers
451 views

### Mendelian Inheritence Chart

I would like to be able to create a simple chart that depicts Mendelian Inheritence, like this one: I'm not too picky about how it looks, as long as it depicts it accurately. Thanks!
2answers
130 views

### title in graphic with pgfplots

I have the following code: \documentclass[12pt,a4paper]{article} \newcounter{conto} \setcounter{conto}{\time} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
0answers
126 views

### How to draw a graph on a sphere using tikz [closed]

I'm trying to make some TiKz graphics for a project I am working on and I am a little stuck. What I am looking for is to be able to draw some planar graphs on a sphere's surface? Any help would be ...
2answers
355 views

### Use “layered layout” with user-specified node ordering (i.e., without crossing minimization)

If and when someone answers this question in a way that demonstrates lua programming for TikZ graph algorithms, I will guarantee a 500-point bounty to that person. According to the PGF 3.0 manual, ...
7answers
994 views

### Simplest way to create a grid with colored squares and labels

I am trying to create a grid with colored squares, multi-line labels within the squares, and labels on the axes. Is there a simple and easy way to achieve this? This question is the closest I could ...
2answers
1k views

### Why does PGF/TikZ 3.0 draw my simple layered graph as non-planar by default?

I have two questions: If I’m reading §30.4 “Crossing Minimization” of the PGF/TikZ 3.0 manual correctly, the layered graph drawing algorithm should have crossing minimization enabled by default. So ...
0answers
150 views

### PgfPlots bar with missing data causes columns to be “misplaced” [closed]

I looked for a similar problem here in SE but I couldn't find it. It's just driving me crazy :| Here is a MWE: \documentclass[xcolor=dvipsnames, 10pt, pdflatex]{beamer} \usepackage[utf8x]{inputenc} ...
2answers
1k views

### pgfplots: Grid Lines below Filling

I want to fill the area between two curves and have the grid lines below the filling. Is this possible? (From Showing grid on top of plot fill with PGFplots? I thought axis on bottom might work, but ...
1answer
131 views

### pgfplots: how to add a label to a graph with the option clip=true?

Question I would like to add a label to my graph, on the right of it or at any other place, for instance somewhere above my graph. Is it possible? I want to use the option clip=true, because of the ...
2answers
505 views

### how to draw a cut through a graph in latex

I want to draw a cut through the graph, like a line passing through the edges from the source to gamma, source to alpha and source to omega. I am doing that to demonstrate a minimum cut in a network ...
1answer
360 views

### draw side by side graphs and make them more clear

I have two problems and sincerely I am trying to resolve them, but unfortunately I am not able...That is why I will appreciate very much your help. 1) My article architecture consists of two columns ...