Questions tagged [visualization]

Visualization is any technique for creating images, diagrams, or animations to communicate a message.

Computer visualization is an important technique for understanding and communicating complicated data and ideas.

Data visualization usually involves maps, charts, plots, or graphs, see for full details.

Idea visualization consists of representing an idea with one or more images, to aid in the comprehension of the idea, or certain aspects thereof. For example, an animation of an algorithm operating on a simple problem can greatly improve understanding of that algorithm.

6471 questions
440
votes
14 answers

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 the same scale. x <- rnorm(100) eps <-…
Christopher DuBois
  • 42,350
  • 23
  • 71
  • 93
182
votes
15 answers

Most underused data visualization

Histograms and scatterplots are great methods of visualizing data and the relationship between variables, but recently I have been wondering about what visualization techniques I am missing. What do you think is the most underused type of…
Ian Fellows
  • 17,228
  • 10
  • 49
  • 63
168
votes
5 answers

How to plot a histogram using Matplotlib in Python with a list of data?

How do I plot a histogram using matplotlib.pyplot.hist? I have a list of y-values that correspond to bar height, and a list of x-value strings. Related: matplotlib.pyplot.bar.
DataVizGuys
  • 1,689
  • 2
  • 10
  • 3
151
votes
20 answers

Good tool to visualise database schema?

Are there any good tools for visualising a pre-existing database schema? I'm using MySQL if it matters. I'm currently using MySQL Workbench to process an SQL create script dump, but it's clunky, slow and a manual process to drag all the tables about…
Mat
  • 82,161
  • 34
  • 89
  • 109
144
votes
4 answers

Create a matrix of scatterplots (pairs() equivalent) in ggplot2

Is it possible to plot a matrix of scatter plots with ggplot2, using ggplot's nice features like mapping additional factors to color, shape etc. and adding smoother? I am thinking about something similar to the base function pairs.
Karsten W.
  • 17,826
  • 11
  • 69
  • 103
143
votes
7 answers

How to add a title to Seaborn Facet Plot

How do I add a title to this Seaborne plot? Let's give it a title 'I AM A TITLE'. tips = sns.load_dataset("tips") g = sns.FacetGrid(tips, col="sex", row="smoker", margin_titles=True) g.map(sns.plt.scatter, "total_bill", "tip")
collarblind
  • 4,549
  • 13
  • 31
  • 49
140
votes
2 answers

Fixed stroke width in SVG

I would like to be able to set the stroke-width on an SVG element to be "pixel-aware", that is always be 1px wide regardless of the current scaling transformations applied. I am aware that this may well be impossible, since the whole point of SVG is…
wxs
  • 5,617
  • 5
  • 36
  • 51
99
votes
1 answer

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 = plt.subplots() fig.set_size_inches(3,…
qboomerang
  • 1,931
  • 3
  • 15
  • 20
97
votes
6 answers

How to make several plots on a single page using matplotlib?

I have written code that opens 16 figures at once. Currently, they all open as separate graphs. I'd like them to open all on the same page. Not the same graph. I want 16 separate graphs on a single page/window. Furthermore, for some reason, the…
FS.
  • 1,201
  • 1
  • 12
  • 11
92
votes
10 answers

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 below for sample code and data). Does anyone know…
Eric Fail
  • 8,191
  • 8
  • 72
  • 128
90
votes
5 answers

How can I create a correlation matrix in R?

I have 92 set of data of same type. I want to make a correlation matrix for any two combinations possible. i.e., I want a matrix of 92x92. such that element (ci,cj) should be correlation between ci and cj. How do I do that?
Swapnil 'Tux' Takle
  • 1,187
  • 2
  • 9
  • 9
89
votes
3 answers

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, patches = ax.hist(measurements, bins=50,…
victorhooi
  • 16,775
  • 22
  • 90
  • 113
84
votes
5 answers

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 image, which colors the full B circle red and…
BrainLikeADullPencil
  • 11,313
  • 24
  • 78
  • 134
77
votes
6 answers

Tree plotting in Python

I want to plot trees using Python. Decision trees, Organizational charts, etc. Any library that helps me with that?
Injeniero Barsa
  • 1,085
  • 2
  • 10
  • 12
75
votes
3 answers

Bitbucket activity graph

I would like to know if there is a solution in Bitbucket similar to Github's graphs. For example, here are the ones for Node.js: Contributions graph Commits graph I've done some research and I haven't found anything similar. Does anybody know if…
dgil
  • 2,318
  • 2
  • 23
  • 39
1
2 3
99 100