Questions tagged [graphs]
Graphs are (1) graphs of functions or (2) sets of nodes and edges.
1,205 questions
5
votes
4
answers
292
views
Graph of a relation
First attempt to create a graph with TikZ. More precisely, I want to be able to create figures like the following one.
After much trial and error, I was able to get something close with the code ...
-1
votes
1
answer
111
views
Graph a piecewise defined function [closed]
$$
\begin{array}{c|c}
\hline
\text{t} & \text{C(t)} \\
\hline
0 \le t \le 3 & 7 \\
\hline
3 < t \le 8 & 7 + t \\
\hline
8 < t \le 28 & 18 \\
...
1
vote
0
answers
111
views
Help with drawing a smooth curve through given points in TikZ [closed]
I’m trying to draw a smooth curve that passes through a set of given points in TikZ.
I’ve experimented with several approaches, including plot[smooth], to[curve through={...}], and the hobby library, ...
6
votes
6
answers
642
views
How to draw the following graph in latex?
Here is what I want to draw, and it is color sensitive, also the vertices need not be very big:
Any help will be greatly appreciated!
EDIT:
This is what I have but then I need the coloration please?
\...
0
votes
0
answers
54
views
How can I include graphs within Anki flashcards?
I am attempting to make a set of Anki flashcards for a Calculus class but cannot figure out how to add graphs.
Is there a method to include a visual representation of functions within Anki?
For ...
3
votes
2
answers
195
views
Are there any packages for Gantt-like timelines?
I'm trying to create a horizontal timeline with lots of simultaneous events. Think of something like the American presidents, British monarchs, Catholic popes, and significant world events. I've ...
0
votes
1
answer
78
views
How do you calculate polynomials and draw therre graphs [closed]
Using the long division or synthetic division calculate p(x)=x^3+4x+7x+12 and d(x)= x+3
5
votes
1
answer
112
views
Pgfplots tick label values are incorrect
I have the x axis of my data in volts, but I want to show it in millivolts, therefore I want to multiply the tick label numbers by 1000 while positioning the labels correctly relative to my data. I ...
-1
votes
3
answers
88
views
How to make vertical/diagonal bars coming out of a word (similar to a trees)
How can I do this in latex so the spacing and format is nice?
{Some text}
/ | \
{text} {text} {text}
2
votes
1
answer
88
views
Labelling nodes outside with \graphs in TikZ
I am learning about TikZ and its extensive graph path commands. I want to have node labels outside the nodes, and to the left of them. Here is the MWE.
\usepackage{tikz}
\usepackage{pgfplots}
\...
3
votes
1
answer
181
views
I want to Draw Prim's and Dijkstra's algorithm for a technical Paper in Latex Using Tkiz package
I am very new to LaTeX and its surrounding infrastructure. I am trying to write a technical paper on LaTeX using the TikZ package. However, I am finding it difficult to draw the images in the format I ...
6
votes
2
answers
203
views
Fill area between hyperbola and line with pgfplots
This is my first time using TikZ and pgfplots, and I've been trying, to no avail, to color the area enclosed by the graphs of the functions x^2 - y^2 = 9 and y = 4x - 16.
My problem is that ...
0
votes
1
answer
121
views
Draw a directed double complete graph
I am trying to draw a double complete directed graph. Currently I can draw a complete graph as shown below.
\usepackage{tikz}
\usetikzlibrary{graphs,graphs.standard}
\documentclass{article}
\begin{...
0
votes
1
answer
94
views
Add a rectangle near the end of a edge [closed]
Is there a way to add a shape, such as a rectangle, near the end of an edge?
The image shows the red and blue rectangles near the end of an edge that I want to create.
Untill now I haven't found a way ...
0
votes
1
answer
52
views
how to list graphs using expex package?
I successfully used TikZ to create three graphs, but encountered difficulty with the expex package (which I use for linguistics examples) when trying to display the graphs side by side. The attached ...