Questions tagged [scatter]

A scatter plot is a type of mathematical diagram using Cartesian coordinates to display values for two variables for a set of data.

A scatter plot is a type of mathematical diagram using Cartesian coordinates to display values for two variables for a set of data.

943 questions
14
votes
1 answer

MPI partition matrix into blocks

I want to partition matrix into blocks (not stripes) and then distribute this blocks using MPI_Scatter. I came up with solution which works, but I think it is far from "best practice". I have 8x8 matrix, filled with numbers from 0 to 63. Then I…
Andraz
  • 709
  • 2
  • 7
  • 16
11
votes
4 answers

How to combine scatter chart with line chart to show line of regression? JavaFX

I've created a scatter chart with two sets of data; the first set is the actual data (x = year and y = pence) and the second set produces the same points but for the line of regression. However the problem I'm having is that both sets of data are…
HassanTheGooner
  • 113
  • 1
  • 1
  • 4
11
votes
2 answers

Speeding up matplotlib scatter plots

I'm trying to make an interactive program which primarily uses matplotlib to make scatter plots of rather a lot of points (10k-100k or so). Right now it works, but changes take too long to render. Small numbers of points are ok, but once the…
george
  • 161
  • 1
  • 6
10
votes
3 answers

Make a Scatter Plot in matplotlib with dates on x axis and values on y

I am having trouble making a scatter plot that has from a date array and a bunch of PM 2.5 values. My lists would look like the following: dates = ['2015-12-20','2015-09-12'] PM_25 = [80, 55]
Ravmcgav
  • 183
  • 1
  • 1
  • 11
9
votes
3 answers

What is the most efficient way to plot 3d array in Python?

What is the most efficient way to plot 3d array in Python? For example: volume = np.random.rand(512, 512, 512) where array items represent grayscale color of each pixel. The following code works too slow: import matplotlib as mpl from…
Dmitry
  • 14,306
  • 23
  • 105
  • 189
9
votes
1 answer

Scatter plot label overlaps - matplotlib

I would like to draw a scatter plot with labeling. However, these labels are overlapping. How can I enhance its look so that I can see numbers better? Also, I have numbers in integer, but it shows label values in float. I am wondering why. Looking…
ejshin1
  • 1,107
  • 6
  • 17
  • 35
9
votes
1 answer

matplotlib scatter edge without specifying edgecolor

It seems that now the default scatter plot marker is a filled circle without an edge. I want a marker with an edge and with facecolor="none". But if facecolor="none" but edgecolor is not specified, then the plot is empty. I want markers be in…
Hoseung Choi
  • 1,017
  • 2
  • 12
  • 20
9
votes
4 answers

Updating a pyplot 3d scatter plot in a loop, grid lines overlap points

I am updating a 3d scatter plot with every iteration of a loop. When the plot is redrawn, the gridlines "go through" or "cover" the points, which makes my data more difficult to visualize. If I build a single 3d plot (no loop updating) this does not…
NLi10Me
  • 3,182
  • 2
  • 13
  • 15
9
votes
2 answers

d3.js: How to add labels to scatter points on graph

I am trying to add labels to the scatter points on this graph: http://bost.ocks.org/mike/d3/workshop/dot-chart.html I thought that modifying this code a little bit would work, but it didn't: svg.selectAll(".dot") .append("text") …
lanadelrey
  • 441
  • 1
  • 4
  • 10
8
votes
1 answer

axis range in scatter graphs

I have been using the code below to plot the time spent to run 4 functions. The x axis represents the number of executions whereas the y axis represents the time spent running a function. I was wondering if you could help me accomplish the…
Mark
  • 81
  • 1
  • 1
  • 2
8
votes
1 answer

How to DO NOT fill area under NaN in plotly

Ciao all, I am working with plotly. I need to draw a curve and fill the area under it. It could be some NaNs appear and it is very important that in that case area is not filled. Please notice that in my case 0 and NaN are different so that setting…
clarkmaio
  • 359
  • 2
  • 12
8
votes
1 answer

pandas scatter matrix display correlation coefficient

I've tried to find a way to display correlation coefficients in the lower or upper tri of a pandas scatter matrix - can someone point me in the right direction? Thank you.
Chuck
  • 135
  • 1
  • 3
  • 9
8
votes
1 answer

Updating the positions and colors of pyplot.scatter

I have been struggling with this for a while and can't get it to work. I am reading a file in chunks and scatter plotting data from it, and I would like to "animate" it by updating the scatter plot for each chunk in a for loop (and also adapt it to…
endolith
  • 25,479
  • 34
  • 128
  • 192
7
votes
4 answers

How can I get Google Charts to display multiple colors in a scatter chart?

I would like to display multiple colors (and potentially shapes and sizes) of data points in a Google Chart scatter chart. Does anyone have an example of how to do so?
Kent Beck
  • 5,011
  • 2
  • 28
  • 31
7
votes
2 answers

Seaborn scatterplot can't get hue_order to work

I have a Seaborn scatterplot and am trying to control the plotting order with 'hue_order', but it is not working as I would have expected (I can't get the blue dot to show on top of the gray). x = [1, 2, 3, 1, 2, 3] cat = ['N','Y','N','N','N'] test…
a11
  • 3,122
  • 4
  • 27
  • 66
1
2
3
62 63