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

Scatter plot of 1-D bimodal data from sklearn make_blobs()

sklearn make_blobs() function can be used to Generate isotropic Gaussian blobs for clustering. I am trying to plot the data generated by make_blobs() function. import numpy as np from sklearn.datasets import make_blobs import matplotlib.pyplot as…
user10443608
1
vote
2 answers

Live scatter plot fetching data from firebase every 2 second

I have a mobile application which does some calculation and throws x,y coordinates and are updated on firebase every 2 seconds. Next i want those coordinates to be plotted on a floor plan live. For that i am using Scatter plot over the floor plan…
Keyur Kariya
  • 69
  • 2
  • 12
1
vote
0 answers

Scatter plot multiclass labels

I'm trying to implement SMOTE technic and thus I would like to visualize my labels. This technic helps me solve the data imbalance problem. I have, say, 1000 labels of 1, 2, and 3 and the counts are 100, 100, 800 respectively. After SMOTE, I will…
iso_9001_
  • 2,655
  • 6
  • 31
  • 47
1
vote
1 answer

How to draw a correlation line in a matplotlib scatter plot?

Below is the code for the scatter plot that I am trying to draw. I want to add a correlation line once the subplots are drawn. Although the code is running without an error, I can't see any line drawn in the plot. Any help will be much appreciated. …
Rohit Farmer
  • 319
  • 4
  • 15
1
vote
1 answer

Multiple Scatter Plots for different parameters - Python

I'm struggling to plot different scatter plots on one graph for a set of data in a data frame so that it'll show price versus area for different property types: Residential, Commercial and Industrial. The Dataframe currently looks like this:…
Renaldo Moon
  • 165
  • 3
  • 14
1
vote
1 answer

R: plot3D scatter3D, is there a coord_fixed() option?

I am doing the same scatter plots in 2D and 3D with ggplot2 and plot3d. I always like to do coord_fixed() in ggplot2 scatter plots when possible, for better readability. Is there a way to do the same in the scatter3D…
DaniCee
  • 2,397
  • 6
  • 36
  • 59
1
vote
1 answer

Faster way to provide rotation to scatter point plots in matplotlib?

Currently I use the following to plot a set of rotated lines (geologic strike indicators). However, this section of code takes a long time even with only a modest amount of strikes (5000). Each point has a unique rotation. Is there a way to give…
bart cubrich
  • 1,184
  • 1
  • 14
  • 41
1
vote
1 answer

Python scatterplot: how to use a colormap that has the same colors as the colorcycle

I am trying to color clusters in a scatter plot and I managed with two different methods. In the first I plot iteratively each cluster, in the second I plot all the data at once and colour the clusters according to their labels [0, 1, 2, 3 ,4]. I am…
CAPSLOCK
  • 6,243
  • 3
  • 33
  • 56
1
vote
2 answers

Bokeh plot regression lines on scatter plot

I generated two scatter plots in the same chart using Python and Bokeh, and added checkboxes to allow separate viewing of scatter plot. How can I add regression lines for the two scatter plots (with equations) using…
soulynn
  • 89
  • 1
  • 3
  • 13
1
vote
1 answer

How to plot a donut chart around a point on a scatterplot?

I have a scatterplot with a few points which I can plot easily enough. I want to add a donut chart around each of the points to indicate which classes make up the point. I saw the example of nested donut charts but I want to make a scatter/donut…
TomNash
  • 3,147
  • 2
  • 21
  • 57
1
vote
1 answer

Fixing axis spacing (ticks) in Bokeh scatter plots

I'm generating scatter plots with Bokeh with differing numbers Y values for each X value. When Bokeh generates the plot, it automatically pads the x-axis spacing based on the number of values plotted. I would like for all values on the x-axis to be…
JeremyD
  • 125
  • 1
  • 3
  • 8
1
vote
2 answers

Matplotlib: How to give color to scatterplot circles based on column values

I have data comprising of 3 columns: zone | pop1 | pop2 ---- ---- ---- 3 4500 3800 2 2800 3100 1 1350 1600 2 2100 1900 3 3450 3600 I would like to draw a scatter plot of pop1 and pop2, with the circles having…
SaadH
  • 1,158
  • 2
  • 23
  • 38
1
vote
1 answer

How to calculate scatter index in R statistics

I am trying to figure out how to calculate the scatter index of a scatter plot in R. While I have the formula, I am still very new to using R and coding and am unsure of how to write it in the programming language. The formula is: My data…
R.Rookie
  • 21
  • 5
1
vote
1 answer

update pixi.js scatterplot with new data

I'm trying to create my first animated scatterplot with pixi.js and I don't understand how to update it with new data on click-event (newdata is stored in "newDaraForUpdate" variable). I'm searching for something like d3 general update pattern that…
1
vote
1 answer

D3: Rescaling scatter plot elements with Update, without removing elements

I have some rookie question. I am trying to rescale scatter plot elements (circles along with X axis) based on button click - to create 'zoom in' activity. I am lowering X axis domain for that. It works very well with Xaxis, however its harder…
Darius
  • 596
  • 1
  • 6
  • 22