Questions tagged [scatter-plot]

A scatter plot is a type of data visualization that reveals possible correlations between two variables. Data points are plotted on a two-dimensional plane using Cartesian coordinates. Use this tag if you have a programming question related to scatter plots, such as problems with computing or displaying the data. You should also tag which language or software libraries you are using.

A scatter plot is a type of mathematical diagram that reveals possible correlations between two variables. Data points are plotted on a two-dimensional plane using Cartesian coordinates. Series of points may be colorized to display additional data.

Link:

3562 questions
1
vote
1 answer

Having trouble making a bar chart bar onClick create changes to scatter chart points using D3

I am creating two charts side by side (a bar chart and scatter plot chart) with data points just in different chart forms. I am trying to manipulate the data so that when you click on one bar of the bar chart, some scatter plot points change opacity…
dan139
  • 47
  • 6
1
vote
1 answer

Colour Scatterplot according to Y value ggplot

My scatterplot I'm not the best with R, but I'm trying to introduce colour into this plot. SecondPlot <- ggplot(sur11, aes(x=standec, y=compnoanti)) + geom_point(col ="black", size = 0.5) + geom_text(label=sur11$concatena, hjust = 0, nudge_x = 0.3,…
Henry Cann
  • 101
  • 1
  • 10
1
vote
1 answer

python scatter plot legend border color refuses to change

This code might be useful to others struggling w/ scatter plots in matplotlib for python. It works except for this one problem. I have poured over many help topics on this site and elsewhere. As per comments in my code, there are different ways…
undercovertek
  • 148
  • 1
  • 11
1
vote
1 answer

Transposing data frame based on factor column

Let's assume I have a dataframe in the following format, obtained from a .csv file: Measurement Config Value --------------------------- _ Time A 10 | Object A 20 | Run 1 Nodes A …
Markus Weninger
  • 11,931
  • 7
  • 64
  • 137
1
vote
1 answer

Adjust matplotlib marker size in Bokeh?

I was looking at this matplotlib scatter plot example: https://matplotlib.org/examples/shapes_and_collections/scatter_demo.html """ Simple demo of a scatter plot. """ import numpy as np import matplotlib.pyplot as plt N = 50 x =…
tommy.carstensen
  • 8,962
  • 15
  • 65
  • 108
1
vote
0 answers

Matlab: Create fan-shaped scatter plots

Fan-shaped scatter plot: I need to generate fan-shaped scatter plots (like the one linked) with correlations between 0.1 and 0.9. So far, I've just added a cluster of dots at the right end of the plot, but this doesn't look that great and I cannot…
Lucy
  • 11
  • 2
1
vote
1 answer

Chart js scatter graph labels

I have a scatter graph using Chart.js and in the X axes I have time values (I use Moment.js). The problem is that I want the scale reversed (see the image) but it doesn't work with the scales: { xAxes: [{ type: 'time', …
Giovanni
  • 79
  • 8
1
vote
2 answers

ggplot axes have separate order for subsets of gathered data, can I combine them?

I have a dataset that shows median weekly earnings for people with different education levels over a 15 year period. I am trying to do a scatterplot of the values for each of two education levels, but for some reason my plot orders the y values of…
bbernicker
  • 158
  • 1
  • 14
1
vote
1 answer

Marker color showing the frequency of occurrences

I have 100 data points and a time series at each data points.I calculated the distance (dist in code) between every pair of points and the correlation coefficient (corr in code) between the corresponding time series. Now I need to have a scatter…
user30
  • 57
  • 9
1
vote
2 answers

Calculate and plot 95% range of data on scatter plot in Python

I wish to know, for a given predicted commute journey duration in minutes, the range of actual commute times I might expect. For example, if Google Maps predicts my commute to be 20 minutes, what is the minimum and maximum commute I should expect…
blokeley
  • 6,726
  • 9
  • 53
  • 75
1
vote
1 answer

ggplot: Correct ordering of x-axis for a geom_point with facet_grid

I am struggling to order my x axis correctly for a scatter plot where I would like the discrete x axis labels to be ordered in increasing size of a numeric factor of a particular group in second discrete factor. And for this to be separated by…
1
vote
1 answer

Pandas: scatterplot with points sized by unique values of one column against the corresponding values of another column

Given the following sample Dataframe: df = pd.DataFrame( { 'A' : [ 1, 1, 1, 2, 2, 2, 3, 3, 3 ], 'B' : [ 'x', 'y', 'z', 'x', 'y', 'y', 'x', 'x', 'x' ] } ) I want to generate a scatterplot of the unique values of B (with the…
linucks
  • 687
  • 1
  • 8
  • 14
1
vote
0 answers

Interactively annotating points in scatter plot using Bokeh

I'm trying to use Bokeh to build an interactive tool that allows a user to select a subset of points from a scatter plot and to subsequently label or annotate those points. Ideally, the user-provided input would update a "label" field for that…
Feynman27
  • 3,049
  • 6
  • 30
  • 39
1
vote
1 answer

How to adjust the zcolor scale in a scatter plot in Matlab?

I have a data set, contained in three vectors say xx, yy and zz. I want to plot yy vs xx with the marker color face according to zz, so I use the scatter function such as: scatter(xx,yy,50,zz,'s','filled') Unfortunately zz has some very extreme…
LeChat
  • 466
  • 3
  • 18
1
vote
2 answers

MATLAB - scatter plot of a vector by a matrix?

I'm very new to Matlab. I'm trying to plot X, where X is an 100x1 vector, against Y, which is an 100x10 matrix. I want the result to be X vs 10 different Y values all in the same graph, different colors for each column. The only way I can think of…
rb612
  • 5,280
  • 3
  • 30
  • 68
1 2 3
99
100