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

Scatterplot with vertical histogram at every measurement ocassion

I'm trying to make a scatterplot with vertical histogram/plot of the distribution at every measurement occasion. I can make the Confidence interval lines. This is an example. How do I do this in R/ggplot2? This is a package request specifically if…
user11070108
1
vote
1 answer

matplotlib scatterplot - only a few labels are displayed on x axis

While plotting using scatterplot in matplotlib, I find some of the values from x-axis are missing in the labels. I want to have all the x-axis legends to be displayed in the graph. This might be related to tick spacing but I am not sure how to set…
priyanka
  • 33
  • 1
  • 7
1
vote
1 answer

Scatter plot colorbar based on datapoint cluster

I am trying to achieve a plot similar to this one: The color shows the clustering of the datapoints. My code so far: import pandas as pd import readTrc import matplotlib.pyplot as plt import numpy as np import os import gc trcpath =…
Artur Müller Romanov
  • 4,417
  • 10
  • 73
  • 132
1
vote
2 answers

Multiple scatter plot on same axis

I have 3 scatter plots, was wondering how I can combine these 3 into 1 big scatter plot. I can't seem to find a solution to this specific problem using only Matplotlib. x1 = np.random.randint(40, 100, 50) y1 = np.random.randint(40, 100, 50) x2 =…
1
vote
1 answer

How to change color of outliers in seaborn scatterplot?

I wanna identify the outliers by changing them into another colour from the rest, so that after removing the outliers, the change in scatterplot is clearer. # TotalBsmtSF: Total square feet of basement area fig = plt.figure(figsize=(16, 8)) ax1 =…
takahashi
  • 21
  • 1
  • 7
1
vote
1 answer

ECharts draw a polygon on the scatter chart

I've googled a lot, but couldn't find any information. Is it possible to draw a polygon on the scatter plot in the ECharts to achieve the same view as on the picture below?
Dmitry Maksakov
  • 1,591
  • 1
  • 16
  • 22
1
vote
1 answer

Assign different transparency and point sizes in scatterplot

Below is a code that works using the plot() function to run a 2D scatterplot of Height vs Weight where points are classed as “Good”, “Fair”, “Poor” based on whether the Class value is 1, 2 or 3, respectively. Points for "Good" are bright green,…
AlexP
  • 147
  • 2
  • 9
1
vote
1 answer

Scatter Plot between 2 images Google Earth Engine

I have 2 high-resolution images in Google Earth Engine. I want to plot a scatter between these 2 images. But I am getting some error Missing required arguments to function seriesByRegion(): reducer. I don't know how to correct this (or if this is…
Ep1c1aN
  • 683
  • 9
  • 25
1
vote
1 answer

How to make a contour/density plot of a large 2D scatter plot

I have an overcrowded scatter plot and I'm trying to create a contour or density plot to see if there is any distinct populations in my data. I have tried the following code but I get the error: too many values to unpack (expected 2) My code is: x…
1
vote
1 answer

Mapping between scatter plot points and image pixels

I started with a set of points from a laser scan which I plotted as a scatter plot using matplotlib. I then used plt.savefig to be able to open the plot as an image and use openCV to find contours around the points. Now, I want to be able to find…
ria
  • 13
  • 1
  • 5
1
vote
1 answer

Customise bubble sizes for plotly scatterplot in python

I suspect this is a simple coding issue, but I cannot figure out where I'm going wrong: I'm running plotly in a Jupyter notebook and want the bubbles of a scatter plot to correspond to one of the features. I include 5 features: Dimension A…
RandomForestRanger
  • 257
  • 1
  • 5
  • 16
1
vote
1 answer

How to use two different color ramps?

I have two datasets which I plot one above the other. I want to use different manual color ramps for them. However, scale_color_manual changes color for both data sets at the same time. set.seed(123) data1 <-…
Contemplavit
  • 115
  • 1
  • 1
  • 10
1
vote
3 answers

Multiple scatter plots in a single figure from multiple data frame in R using ggplot?

I want to generate a figure that display all the scatter plots on this single figure using data from the two data frame (i.e., regressing column-A of Data1 against Column-A of Data2). Each plot in the figure should show R-square and p-value. I am…
CForClimate
  • 335
  • 5
  • 19
1
vote
2 answers

Unable to plot scatter plot because of TypeError

I have a dataset, in which i will be using only a single column to apply kmeans clustering. However while plotting the graph, i am getting "numpy.ndarray". I tried converting to float, but still facing the same issue Dataframe: Brim 1234.5 345 …
anagha s
  • 323
  • 1
  • 4
  • 15
1
vote
1 answer

how to customize color legend when using for loop

I want to draw a 3D scatter, in which the data is colored by group. Here is the data sample: aa=pd.DataFrame({'a':[1,2,3,4,5], 'b':[2,3,4,5,6], 'c':[1,3,4,6,9], 'd':[0,0,1,2,3], …
Feng Chen
  • 2,139
  • 4
  • 33
  • 62