Questions tagged [graph]
This "graph" tag refers to a graphical data presentation, e.g. chart or diagram. For the mathematical concept use [graph-theory].
26,853
questions
2818votes
24answers
4.7mviews
How do you change the size of figures drawn with Matplotlib?
How do you change the size of figure drawn with Matplotlib?
1593votes
18answers
275kviews
Cycles in family tree software
I am the developer of some family tree software (written in C++ and Qt). I had no problems until one of my customers mailed me a bug report. The problem is that the customer has two children with ...
419votes
11answers
267kviews
Generating statistics from Git repository [closed]
I'm looking for some good tools/scripts that allow me to generate a few statistics from a git repository. I've seen this feature on some code hosting sites, and they contained information like...
...
383votes
8answers
251kviews
Python Graph Library [closed]
I'm writing a python application that will make heavy use of a graph data structure. Nothing horribly complex, but I'm thinking some sort of graph/graph-algorithms library would help me out. I've ...
341votes
5answers
562kviews
Plotting two variables as lines using ggplot2 on the same graph
A very newbish question, but say I have data like this:
test_data <-
data.frame(
var0 = 100 + c(0, cumsum(runif(49, -20, 20))),
var1 = 150 + c(0, cumsum(runif(49, -10, 10))),
date = ...
330votes
12answers
179kviews
Generating a PNG with matplotlib when DISPLAY is undefined
I am trying to use networkx with Python. When I run this program it get this error. Is there anything missing?
#!/usr/bin/env python
import networkx as nx
import matplotlib
import matplotlib.pyplot
...
237votes
18answers
212kviews
Good Java graph algorithm library? [closed]
Has anyone had good experiences with any Java libraries for Graph algorithms. I've tried JGraph and found it ok, and there are a lot of different ones in google. Are there any that people are actually ...
197votes
5answers
488kviews
Plotting time in Python with Matplotlib
I have an array of timestamps in the format (HH:MM:SS.mmmmmm) and another array of floating point numbers, each corresponding to a value in the timestamp array.
Can I plot time on the x axis and the ...
186votes
4answers
528kviews
Set Colorbar Range in matplotlib
I have the following code:
import matplotlib.pyplot as plt
cdict = {
'red' : ( (0.0, 0.25, .25), (0.02, .59, .59), (1., 1., 1.)),
'green': ( (0.0, 0.0, 0.0), (0.02, .45, .45), (1., .97, .97)),...
166votes
14answers
115kviews
Command-line Unix ASCII-based charting / plotting tool
Is there a good command-line UNIX charting / graphing / plotting tool out there? I'm looking for something that will plot xy points on an ASCII graph.
Just to clarify, I'm looking for something that ...
165votes
12answers
83kviews
How does Dijkstra's Algorithm and A-Star compare?
I was looking at what the guys in the Mario AI Competition have been doing and some of them have built some pretty neat Mario bots utilizing the A* (A-Star) Pathing Algorithm.
(Video of Mario A* ...
150votes
11answers
167kviews
What is better, adjacency lists or adjacency matrices for graph problems in C++?
What is better, adjacency lists or adjacency matrix, for graph problems in C++?
What are the advantages and disadvantages of each?
147votes
17answers
105kviews
Dependency graph of Visual Studio projects
I'm currently migrating a big solution (~70 projects) from VS 2005 + .NET 2.0 to VS 2008 + .NET 3.5. Currently I have VS 2008 + .NET 2.0.
The problem is that I need to move projects one by one to new ...
146votes
7answers
126kviews
Force R to stop plotting abbreviated axis labels - e.g. 1e+00 in ggplot2
In ggplot2 how can I stop axis labels being abbreviated - e.g. 1e+00, 1e+01 along the x axis once plotted? Ideally, I want to force R to display the actual values which in this case would be 1,10.
...
143votes
6answers
63kviews
Why use Dijkstra's Algorithm if Breadth First Search (BFS) can do the same thing faster?
Both can be used to find the shortest path from single source. BFS runs in O(E+V), while Dijkstra's runs in O((V+E)*log(V)).
Also, I've seen Dijkstra used a lot like in routing protocols.
Thus, why ...