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.
scatter-plot
3,691
questions
0
votes
0
answers
18
views
Scatter Chart Not Updating Correctly for multiple Values at the Same Location
I have two teams, team1 and team2, each containing plot data in the structure mentioned in the link below.
Here is my code: https://codesandbox.io/p/sandbox/react-counter-functional-component-forked-...
1
vote
1
answer
35
views
Plotly figure with subplots and dropdown hides second plot when non-default option selected
I am trying to generate a Plotly figure with two sub plots and has dropdown menu. The default option works fine (Fig. 1) but when other values are selected the second plot disappears (Fig. 2). How to ...
0
votes
1
answer
43
views
How do I scatterplot between specific columns sequentially from dataframes
I have the following dataframe merged_dft to scatterplot the two column eg. snv vs snv-dra
samples snv het-hom ti-tv snv-drg het-hom-drg ti-tv-drg insertion-drg deletion-drg insertion ...
2
votes
1
answer
26
views
How to resolve error plotting arrows in mplfinance scatter plot
Although I don't consider myself a newbie, I would regard myself as inexperienced with Python. I am new to MPLFinance.
I am tryting to plot trade entry points on a forex mplfinance chart. I have the ...
-1
votes
0
answers
10
views
Difficulty Plotting individual points in Python Spyder in a simple ecosystem
I am writing a project in Python Spyder on my Mac.
The project is an ecosystem in which there is grass, sheep, wolves. With each iteration The grass grows, sheep eat grass, some die of starvation, ...
0
votes
1
answer
40
views
Plot gets shrunk off to the side when adding a scatterplot on top of the violin plot
I want to create a double violin plot with custom markers for each thing. So far, I have successfully been able to create the violin plot
However, when I add the scatter of the various markers on top ...
0
votes
1
answer
30
views
matplotlib display a tooltip when the mouse is over a point
How to display a tooltip with a specific information for each point in this program ? I found examples doing that on this forum, but it was not easy to reproduce for this example, with plt.scatter ...
0
votes
0
answers
47
views
Geom_line of predicted count averaged by season
I am currently writing an update of an article on vulture population trends (Vulture article) and looking at regular feeding at four long-term vulture restaurant sites from July 2016 to December 2023. ...
0
votes
0
answers
24
views
How to adjust this code so that each marker is different based on values in column "Sample"
So, I have this code:
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
# Assuming 'thefile' is your DataFrame containing the data
# List of samples to iterate over
samples = ['...
0
votes
1
answer
24
views
Using XLOOKUP in a scatterplot series
I am working in a flight manager workbook where a Departure and a Destination airport can be selected. Once the airports have been selected their coordinates are fetched from a different worksheet ...
0
votes
1
answer
71
views
Interpolation of points of a scatterplot
I have big issues when trying using packages that interpolate between data points.
I want to obtain a smooth curve out of my discrete data and to perform derivatives on them.
The data set is this:
...
-2
votes
0
answers
32
views
ValueError: x and y must have same first dimension, but have shapes (1,) and (2,) [duplicate]
I am trying to make a plot that illustrates a point on line created through linear regression. However I run into an error I don't understand.
Here is my code:
spain_gdp_ppp_capita = country_sub[...
2
votes
1
answer
34
views
Matplotlib annotations do not appear at the proper distance in graph
I have subset of countries where I am comparing gdp per person and geographic latitude. I've developed code down here:
country_sub.plot(kind='scatter', figsize=(6, 4), grid=True, x=lat_col, y=...
1
vote
1
answer
41
views
Matplotlib arrows do not have proper length
I have subset of countries where I am comparing gdp per person and geographic latitude. I've developed code down here:
import matplotlib.pyplot as plt
plt.rc('font', size=12)
plt.rc('axes', ...
0
votes
0
answers
7
views
Is it possible to add a ColorBarLegend to a ScatterVBO?
Im working on a ScatterVBO and I want to add a AWTColorBarLegend to it. When refreshing the chart and its legend getImageGenerator() is called at multiple times, for example to get the dimension of ...