Questions tagged [visualization]
Visualization is any technique for creating images, diagrams, or animations to communicate a message.
visualization
1,428
questions
450
votes
14
answers
694k
views
Side-by-side plots with ggplot2
I would like to place two plots side by side using the ggplot2 package, i.e. do the equivalent of par(mfrow=c(1,2)).
For example, I would like to have the following two plots show side-by-side with ...
950
votes
11
answers
1.4m
views
How to make IPython notebook matplotlib plot inline
I am trying to use IPython notebook on MacOS X with Python 2.7.2 and IPython 1.1.0.
I cannot get matplotlib graphics to show up inline.
import matplotlib
import numpy as np
import matplotlib.pyplot ...
92
votes
2
answers
186k
views
Construct a manual legend for a complicated plot
I cannot figure out how to manually set up a legend for this plot. All I really want is a simple legend to the right that uses the three colors and has a name next to each.
The current code looks ...
89
votes
5
answers
161k
views
sql joins as venn diagram
I've had trouble understanding joins in sql and came upon this image which I think might help me. The problem is that I don't fully understand it. For example, the join in the top right corner of the ...
22
votes
4
answers
33k
views
ggplot, facet, piechart: placing text in the middle of pie chart slices
I'm trying to produce a facetted pie-chart with ggplot and facing problems with placing text in the middle of each slice:
dat = read.table(text = "Channel Volume Cnt
AGENT ...
189
votes
14
answers
45k
views
Workflow for statistical analysis and report writing
Does anyone have any wisdom on workflows for data analysis related to custom report writing? The use-case is basically this:
Client commissions a report that uses data analysis, e.g. a population ...
28
votes
6
answers
43k
views
How to use GLUT/OpenGL to render to a file?
I have a program which simulates a physical system that changes over time. I want to, at predetermined intervals (say every 10 seconds) output a visualization of the state of the simulation to a file. ...
6
votes
1
answer
4k
views
Plotting volumetric data in MATLAB
I am working in Matlab and I have a 3d matrix with dimensions 384x512x160, which is made of 384x512 slices.
How can I plot data like that?
91
votes
3
answers
165k
views
Matplotlib - label each bin
I'm currently using Matplotlib to create a histogram:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as pyplot
...
fig = pyplot.figure()
ax = fig.add_subplot(1,1,1,)
n, bins, ...
106
votes
1
answer
200k
views
Relationship between dpi and figure size
I have created a figure using matplotlib but I have realized the plot axis and the drawn line gets zoomed out.
Reading this earlier discussion thread, it explains how to set the figure size.
fig, ax =...
373
votes
11
answers
916k
views
How do I convert a numpy array to (and display) an image?
I have created an array thusly:
import numpy as np
data = np.zeros( (512,512,3), dtype=np.uint8)
data[256,256] = [255,0,0]
What I want this to do is display a single red dot in the center of a ...
94
votes
10
answers
59k
views
Sankey Diagrams in R?
I am trying to visualize my data flow with a Sankey Diagram in R.
I found this blog post linking to an R script that produces a Sankey Diagram; unfortunately, it's quite raw and somewhat limited (see ...
70
votes
4
answers
55k
views
How can I bring a circle to the front with d3?
First of all, I am using d3.js to display different sized circles in arrays. On mouse over, I want the circle being moused over to become bigger, which I can do, but I have no idea how to bring it to ...
104
votes
3
answers
122k
views
Heatmap in matplotlib with pcolor?
I'd like to make a heatmap like this (shown on FlowingData):
The source data is here, but random data and labels would be fine to use, i.e.
import numpy
column_labels = list('ABCD')
row_labels = ...
77
votes
2
answers
66k
views
Fix Node Position in D3 Force Directed Layout
I want some of the nodes in my force-directed layout to ignore all forces and stay in fixed positions based on an attribute of the node, while still being able to be dragged and exert repulsion on ...