Questions tagged [data-visualization]

Data visualization is the study of the visual representation of data. Maps and charts are the most common types of data visualization, but there are many more.

Data visualization (or data visualisation) is the creation and study of the visual representation of data, and is closely related to information graphics, information visualization, scientific visualization, and statistical graphics.

In recent years, data visualization has become an active area of research, teaching and development.

There are different approaches on the scope of data visualization. One common focus is on information presentation. From a computer science perspective data visualization is comprised of:

  • Visualization algorithms and techniques
  • Volume visualization
  • Information visualization
  • Multiresolution methods
  • Modelling techniques
  • Interaction techniques and architectures
  • Infographics

There are several open source libraries that can be used to produce data visualizations including and for Python and for JavaScript.


Useful links


Related tags

7470 questions
2
votes
1 answer

Plotly: Change a contour plot into a 3-d surface

I would like to change the contour plot that I have below for a 2-D Gaussian distribution to a 3-D surface plot. I have my code below along with the plot. Not sure how to change it to the 3-D version. Does anyone have any tips? Note: I actually have…
AyeTown
  • 831
  • 1
  • 5
  • 20
2
votes
2 answers

Python: How to add a secondary x axis for a single trace?

I have a DataFrame (see 'Test Data' section below) and I would like to add a secondary x axis (at the top). But this axis has to be from 0 to 38.24(ms). This is the sum of all values in column 'Time'. It expresses the total time that the 4…
Aizzaac
  • 3,146
  • 8
  • 29
  • 61
2
votes
1 answer

How to apply different linear gradient for each bar in echarts bar series?

Right now i can apply same gradient to all bars but I need to apply linear gradient color to each bar based on a value. i.e first bar with gradient from color1 to color2 and second bar can be gradient from color1 to color3. I have gone through the…
Balaji S
  • 158
  • 1
  • 11
2
votes
1 answer

Advanced horizontal bar chart with Python?

I want to make a graph like the two below. How can I achieve that with python? I am sorry that I can´t provide any implementation because I don´t have any idea at all. I think my question is something different to…
2
votes
1 answer

Any workaround to make moving average time series line plot in matplotlib?

I want to understand how covid pandemic is affecting the supply chain industry such as meat processing plants. I retrieved NYT covid data by county level and statistical data from food agency, so I want to understand how covid cases are surging in…
kim
  • 556
  • 7
  • 28
2
votes
0 answers

Plotly Dash working on jupyter but not on terminal

I am new to dash and having an issue I can't find an answer for. I can run dash app successfully on jupyter notebook but it's not working when I run it via the terminal despite not giving an error. It just doesn't load my locahost. Below is my…
EAyeni
  • 23
  • 5
2
votes
1 answer

How can I transform this dataframe in order to print it with seaborn ( lineplot )?

I have a dataframe like the following: In [0]: df.head() Out[0]: airfield airplane_cabin airport_terminal alcove 0 0.0 0.00 0.00 0.0 1 0.0 0.00 0.01 0.0 2 0.02 …
2
votes
2 answers

How to create a network representing different clusters with other information?

I have a dataframe nodes with information that looks like below: dput(nodes) structure(list(Names = c("A4GALT", "AASS", "ABCA10", "ABCA7", "ABCD4", "ABHD4", "ABTB1", "AC006978.2", "AC009119.2"), type = c("typeA", "typeA", "typeC", "typeA",…
beginner
  • 1,059
  • 8
  • 23
2
votes
0 answers

Is there a way to show tooltips in ALL the sub charts of a faceted chart or concatenated charts, where sub charts are "joined" by selection?

Just like we can highlight point(s) in one of the charts of a concatenated chart or a faceted chart and the corresponding point(s) will also get highlighted in the other chart, I was wondering if the same can be done with a tooltip. I have been able…
jar
  • 2,646
  • 1
  • 22
  • 47
2
votes
1 answer

Plotly python: Fix one of the bars on the plot as reference for the others

I have a bar plot whose baselines I got from an article: from plotly import graph_objects as go data = { "original":[15, 23, 32, 10, 23], "model_1": [4, 8, 18, 6, 0], "model_2": [11, 18, 18, 0, 20], "labels": [ …
Catarina Nogueira
  • 1,024
  • 2
  • 12
  • 28
2
votes
2 answers

Building score plot using principal components

I'm trying to create score plots of the first two principal components. I begin by splitting the data into three data frames based on class. I then transform the data and perform PCA. My data is as follows: 14 1 82.0 12.80 7.60 1070 105…
Wyuw
  • 123
  • 5
2
votes
1 answer

How do I change the label font size using Matplotlib, Tinker, and SubplotHost?

Note that I am making a plot with nested axis labels. No matter what I try, the font size stays the same. Ideally, I would like to be able to give each set of axis labels their own color and font sizes. import numpy as np import matplotlib.pyplot as…
TimeWizud
  • 61
  • 2
2
votes
2 answers

Nasty pie chart arrows

Let's have the code following : pie_chart <- function(vec){ df <- as.data.frame(table(vec)) colnames(df)[1] <- 'group' df$label <- paste0(df$Freq,' (', percent(df$Freq / sum(df$Freq)),')') df$angle <- ((cumsum(df$Freq) - 0.5 * df$Freq) /…
John
  • 1,849
  • 2
  • 13
  • 23
2
votes
1 answer

Error when creating custom seaborn colormap

I'm trying to create my own colormap object for a seaborn heatmap. But when I type in: import seaborn as sns new_map = sns.diverging_palette(220, 10, as_cmap=True) I get the following error: TypeError: 'float' object cannot be interpreted as an…
user356
  • 303
  • 2
  • 10
2
votes
1 answer

Plotly.py: Force axis units to thousands (k) instead of millions (M)

Since the numbers on my x axis are somewhat large, they are showing in millions (i.e., 25.8512M). However, I would like to force the format to show in thousands instead (i.e., 25,851.2k). import plotly.graph_objects as go fig = go.Figure(data =…
Brunox13
  • 775
  • 1
  • 7
  • 21
1 2 3
99
100