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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

get scatterplot and figimage to work together [duplicate]

I am trying to add custom markers using 'figimage'. I first used scatterplot to add the data and was then going to overlay the images using a for loop. I have my marker image in a numpy array im fig, ...
SrSbSd's user avatar
  • 219
1 vote
1 answer
42 views

Applying a different color to X and Y data for a scatter-plot using GGplot

I'm creating scatter-plots using 2 variables (Tarsus Lengths) for several species. However, i have already separated them by their gender. What I want to do is assign a color and/or shape to the whole ...
RogelioSNT's user avatar
2 votes
1 answer
49 views

How to create a scatter plot with normalized marker transparencies

I have this dataframe : import pandas as pd import matplotlib.pyplot as plt rng = np.random.default_rng(seed=111) rints = rng.integers(low=0, high=1000, size=(5,5)) df = pd.DataFrame(rints) 0 ...
VERBOSE's user avatar
  • 227
0 votes
0 answers
20 views

How to explain these scatterplot relationship? [closed]

How can i describe the relationships between these 4 variables and their relation I cant seem to figure it out I only see linear relation with lstat and tax on first image. crim: per capita crime rate ...
MikeGator's user avatar
0 votes
0 answers
12 views

Plotly: Displaying intermediate data between points on a hover

I encountered this problem when displaying data on the hover when I used hovermode="x unified". Since my data for three curves contains different values (months), the on hover we can see ...
Alexandr Ignatyk's user avatar
0 votes
1 answer
25 views

Why does the tooltip show up on the wrong point in Plotly.js scatter plot?

I posted this question over at the Plotly community here: https://community.plotly.com/t/why-does-the-tooltip-show-on-the-wrong-point-in-scatter-plot/78835. I'm posting it again here to get more ...
gib65's user avatar
  • 1,727
0 votes
0 answers
10 views

logy axis using plotly.graph_objects

I'm trying to draw a curve using plotly.graph_objects on a figure that already has a scatter plot that is animated. Everything is fine, except that I can't make the y axis logarithmic. This is one ...
m0bina's user avatar
  • 1
1 vote
2 answers
135 views

How to plot NaN values as gaps in a scatter plot

I have a figure with six subplot control charts from a Pandas dataframe, currently plotted by index and I'd like to plot them against a datetime value. The raw data (from an XML file) contains blank ...
ChemEnger's user avatar
  • 149
1 vote
0 answers
19 views

Combine ApexChart horizontal box plot with scatter point, with categories as xaxis

Trying to plot some data on a box plot and outliers as scatter points in a nuxt3 app. I have two main issues Is it possible to combine horizontal box plot with scatter points. If its not possible with ...
Soufiane Ezzine's user avatar
0 votes
0 answers
20 views

How to add a icon on deck.gl Scatterplot map?

I am new to Superset. I have already developed a map using Deck.gl Scatterplot. I used my database to plot locations on Mapbox, which currently displays each location as dots with default colors. Now, ...
Nihara Bamunusinghe's user avatar
1 vote
1 answer
25 views

How do I apply same color palette to dendrogram and scatterplot in ggplot2?

I am making a dendrogram plot and a scatterplot from the same data, both plotted with ggplot2. I use as.dendrogram() to convert the hclust() object into a form suitable for ggplot(), then set branch ...
Michael S Taylor's user avatar
0 votes
0 answers
8 views

How to plot a regression line in a scatterplot using statsmodels

i have a csv file wherein there are two variable x and y, i was able to plot x and y on a scatter plot but i also need to include the regression (OLS) line using statsmodels. just cannot get the right ...
rahul's user avatar
  • 1
0 votes
0 answers
29 views

Matplotlib figure subplots do not look alike

Hey I would like to have the second plot (significant/unsignificant)to look like the first one but I don't know how I get it to that. import numpy as np import matplotlib.pyplot as plt # Create a ...
Vilerala's user avatar
0 votes
1 answer
32 views

creating a scatter legend size with range 0-100 no matter what the range of the data

I am having trouble with creating a matplotlib scatter plot with a legend showing the size diameter of points. The problem is with the scatter_plot.legend_elements function. The problem is I want to ...
aindap's user avatar
  • 71
0 votes
1 answer
18 views

Basic Scatterplot in d3.Js (issue with Scales)

First off all I am very new to d3.js. So any solution please explain in very simple terms :) I am trying to replicate this scatter plot using d3.js from https://www.kaggle.com/code/alexisbcook/scatter-...
Ahmad Mobin's user avatar
2 votes
1 answer
34 views

How would I create a scatter plot in R like the one below in excel? (See picture and my attempt at using R)

I am interested in creating a scatter plot with the following data using R: Minutes Group 1 Group 2 1 199 176 2 188 157 3 169 144 See screenshot for more info: https://joshuawkelly.notion.site/...
Joshua W. Kelly's user avatar
0 votes
1 answer
57 views

How to customize the color scatterplot legend handle [duplicate]

I have a seaborn scatterplot with datapoints distinguished by (1) color and (2) marker. This is the minimal code that generates the plot: d = {'x': [1, 2, 3, 4], 'y': [2,4,6,8], 'Set': ["Set 1&...
innakigc's user avatar
0 votes
1 answer
21 views

Adding a Custom Plane to a 3-Dimensional 'plotly' Plot in R

Using the plotly package, I have the following plot. library (plotly) Data_Frame <- iris Plot_1 <- plotly::plot_ly(Data_Frame, x = ~Sepal.Length, y = ~Petal.Length, z = ~Petal.Width) Plot_1 I'd ...
David Moore's user avatar
0 votes
0 answers
16 views

How do I order my plot by the values of my outcomes rather than sorting in alphabetical order? [duplicate]

Here's an example of what I am getting: library(ggplot2) df <- data.frame(x = c("David", "Bob", "Sue", "Mary"), y = c(1, 7, 8, 5)) ggplot(...
Dan W's user avatar
  • 19
0 votes
1 answer
30 views

Hexbin with multiple groups in one plot

I have a dataframe with millions of observation and thus need to display the results as a hexbin chart using geom_hex() or variant. My plot is already faceted by outcome~predicor, so I would like the ...
CyG's user avatar
  • 384
0 votes
0 answers
19 views

Draw a curve defining the bounds of a scatter plot to detect anomalous (sparse or low density) points in MATLAB

I have thousands of x,y data paris of observed and theoretical temperatures in a given region, where I need to identify some anomalous (for the purpose of my work) data points. I have tried PCA ...
Simone Aveni's user avatar
1 vote
1 answer
22 views

How to only show portion of x-axis spine on scatterplot

I don't want the x-axis spine between (0,0) and (0,4) to display on the scatterplot below. I still want the distance on the chart, I just don't want the spine to display between those coordinates. ...
Programming_Learner_DK's user avatar
0 votes
0 answers
19 views

How to create a scatter plot with 4 quadrants in Spotfire

How can I create in Spotfire a scatter plot that has four quadrants, and the origin (0,0) is in the center of the visualization? I am new to Spotfire
user2192101's user avatar
0 votes
1 answer
32 views

Outliers detection. Curve fitting (i.e., LOWESS,LOESS, etc. with confidence intervals) or any other applicable approach in MATLAB

I am trying to automatically detect some data point in my x,y scatterplots. I have thousands of them, so I need to implement an approach that has a good trade-off between accuracy and sensitivity. ...
Simone Aveni's user avatar
0 votes
0 answers
55 views

AutoSize Excel Chart DataLabel to fit Height of Text in VBA

I have a scatter chart created using VBA which displays perfectly except for I'm trying to find a work with the text of the data label to accomplish two things: Wrap the data label text to multiple ...
bensmith87's user avatar
1 vote
1 answer
36 views

In R, how do I make flat slope graph/scatter graph with multiple values per row?

I am trying to make a chart that looks like this: Except instead of the different media organisations on each row, you would have each individual survey participant (there are 47, I know this is ...
fourteen14's user avatar
-1 votes
0 answers
38 views

Different colors for dots depending on values

I have a column which gives me the count for the number of newspapers a community has. It ranges from 0 to 4. I also have a column which gives me the vote share for the party for every community in a ...
Bantha Hunter's user avatar
0 votes
2 answers
77 views

How to fix the legend of plotly 3D scatter plots in Python?

I am trying to create some 3D scatter plots using plotly in Python. I have a data frame with some personality traits and cluster labels, and I want to plot the TSNE embeddings for each trait using ...
DavidS's user avatar
  • 47
0 votes
0 answers
9 views

In Scatter Plot Python data plot is shifting from x axis marking

If there is x axis with marking , plot appears at next grid point , for example My X axis is showing marking 2021, a dot which I wanted above 2021 , appears in the marking of 2022, I am using Google ...
Narendra's user avatar
0 votes
0 answers
58 views

X Y (Scatter) graph in VB.NET

I am trying to create a XY scatter graph in VB.NET Is There another style that I am needing to use to get the closest representation to that of Excel X Y (Scatter)? When I use the same information in ...
Nathaniel Turner's user avatar
1 vote
1 answer
36 views

In what order is meshgrid defined in scatter plot

I have already asked a similar question here and have almost figured out the answer by myself. The only thing that remains is the following: I am using meshgrid to create a 3D grid. When specifying ...
eeqesri's user avatar
  • 221
0 votes
0 answers
16 views

Create clusters of data points having similar relationships in two columns

The link given has a dataset with attributes village_code and delta_progress. delta_progress are nothing but slopes after plotting graphs. I want to create clusters of village_code based on these ...
andy_H's user avatar
  • 13
0 votes
2 answers
38 views

Animated Scatter Plot (Plotly, Python) - add custom title per frame

I have successfully created an animated scatter plot using plotly, and now I want to replace the title in each frame of the animation with custom text. I referred to the solution in this chat in order ...
newquant84's user avatar
0 votes
0 answers
23 views

Why does lassoing not work on my Plotly.js scatter plot when the date range is too high?

I posted this over at the Plotly community forum here: https://community.plotly.com/t/why-does-the-lasso-tool-pick-up-0-points-when-my-date-range-is-large/78025. I'm posting this again here to ...
gib65's user avatar
  • 1,727
0 votes
0 answers
25 views

'DataFrame constructor not properly called! in pyspark

I am very new in informatics. I am trying to make a scatter from a pyspark dataframe I got from Kaggle. I managed to make a basic exploratory data analysis. I got the basic statistics (mean, median, ...
Camilo Hernan Navarrete Linero's user avatar
0 votes
0 answers
29 views

Why is the position of my ractangular shape off by a few pixels along the x axis in my Plotly.js scatter chart?

This is a follow up question to a previous question: Why does my rectangular shape not show up in my plotly.js scatter chart?. At the link above, you will read about the issue I had with making a ...
gib65's user avatar
  • 1,727
0 votes
0 answers
32 views

Why does my rectangular shape not show up in my plotly.js scatter chart?

I posted this question over at the plotly community forum here: https://community.plotly.com/t/why-does-my-rectangular-shape-not-show-on-my-chart/77970. I'm posting it here as well to get more ...
gib65's user avatar
  • 1,727
0 votes
2 answers
35 views

ggplot2 adding custom error bars and drawing horizontal line

I am trying to make a scatter plot with custom values (including custom error bars). There are 5 variables with 3 values each. One of the values is the mean, and the other 2 values are 95% confidence ...
aleksej stevanovic's user avatar
0 votes
1 answer
23 views

Scatterplot to density heatmap in PowerBI

I have a scatterplot But it's too dense. I Think I wold be great if this data was represented as a density heatmap as I can get in maps, like this: Is there any way to achieve this? If it's not ...
Kaikus's user avatar
  • 1,021
0 votes
0 answers
16 views

How can I set the alpha value of lines connecting only certain points in my plotly.js scatter chart?

I posted this question over at the Plotly community forum here: https://community.plotly.com/t/how-can-i-set-the-alpha-value-of-lines-connecting-only-certain-points-in-my-plotly-js-scatter-chart/77810....
gib65's user avatar
  • 1,727
1 vote
1 answer
28 views

How can I hide axis numbers but keep title and grid lines in my plotly.js scatter plot?

I posted this over at the Plotly community forum here: https://community.plotly.com/t/how-to-hide-axis-numbers-but-not-title-or-grid/77800. Since I rarely get responses there, I'm also posting it here....
gib65's user avatar
  • 1,727
0 votes
1 answer
17 views

Highcharts, calculate and draw average line on columns/scatter series

I use Highcharts to draw scatter series (representing different runs) on columns (representing years). I used the pointPlacement option to place the columns as I need series: [ { name: "Run 1&...
vegaelce's user avatar
  • 117
0 votes
1 answer
50 views

Inaccurate pie slice sizes in a scatter plot

Created a scatter plot with pie charts as symbols. This works, but the size of some of the slices come out slightly different, although the sizes of all slices in a particular pie are exactly the same....
heikneus 's user avatar
0 votes
0 answers
30 views

How can I prevent x-axes from scaling when I draw shapes on my plotly.js scatter plot?

This is a question I posted over at the Plotly Community (for js) here: https://community.plotly.com/t/how-can-i-prevent-x-axes-from-scaling-when-i-draw-shapes-on-my-scatter-plot/77713. I don't ...
gib65's user avatar
  • 1,727
1 vote
1 answer
33 views

Reordering scatterplot legend in numerical order (1, 4, 7, 8, 10) when they are character values

I am super new to R. I just started yesterday. I'm trying to make a scatterplot of absorbance vs wavelength for five different pH conditions. The legend shows up in the order of pH 1, 10, 4, 7, 8, but ...
Nightshade's user avatar
0 votes
2 answers
74 views

Color Regions in a Scatter Plot

I recently found out that you can create color regions for scatter plots in Orange. I know Orange sits on top of python, so I figured I'd be able to recreate this, but I'm having a hard time. I ...
pkpto39's user avatar
  • 545
0 votes
0 answers
11 views

Estimation Method for Modelling Data from Scatterplot

I have data with a relationship pattern between the dependent and independent variables like the following graph. What is the estimation method suitable for modeling it? enter image description here ...
Fani's user avatar
  • 1
0 votes
2 answers
43 views

Break Continuous Line in Excel VBA Scatter Plot

I have a scatter plot that I am creating in VBA and have set the Line for the series which is working perfectly except for the line is continuous from point-to-point, rather than stop at the end of ...
bensmith87's user avatar
0 votes
0 answers
21 views

How to add labels to points of a s.class plot in package ADE4?

I use PCA analysis to study variability between different environments (lone). Here is an example of the structure of my dataset : station lone camp connectivite CH4uM CO2uM COD NH4 ...
Lucas Wechsler L-Wex's user avatar
1 vote
1 answer
48 views

How to ensure the abline / identity line is centered 1:1 in each subplot with individual axis limits in Matplotlib? [edited] [solved]

I have a 2x2 subplot grid, where each subplot contains a scatter plot with different data points. I'm trying to draw a common abline (slope=1, intercept=0) in each subplot to visualize the ...
LouiT's user avatar
  • 13

1
2 3 4 5
72