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
2
votes
1 answer

scatter plot of two groups with 2 vectors each

I have two groups, each one with 2 vectors that represent "attributes". Group1 2-element Vector{Any}: [0.557, -0.13, 0.34, 0.62] [0.62, -1.20, -0.79, 0.48] Group2 2-element Vector{Any} [-1.20, -0.58, 1.07, -0.89] [1.31, -1.58, -1.27, -0.16] I…
jvm.97
  • 247
  • 1
  • 7
2
votes
1 answer

Why are the scatterplot colors in MATLAB R2021a different?

I have installed Matlab R2021a, and when I run the command scatterplot for a vector, I get a figure as below: I mean black and yellow. However the default colors in older versions is as follows: I mean the colors are white and blue. My concern, I…
Zeyad_Zeyad
  • 250
  • 1
  • 8
2
votes
1 answer

Annotations in plot Julia

I am starting to program in Julia. I would like to know how to put the corresponding name in the scatter for each country. I am using only the Plots.jl package, below is a screenshot of what I have done. Any help is appreciated !!!
2
votes
2 answers

How to make scatter plot in google sheets using 2 columns as X and Y values and the 3rd columns to get color of that point?

I have 3 columns in a google spreadsheet Runs Balls Result 24 24 W 50 20 W 10 5 L 12 10 L 5 2 L Now I want a scatter plot to be made, such that Runs and Balls are the X and Y axes, and the…
n0obcoder
  • 649
  • 8
  • 24
2
votes
1 answer

Matplotlib scatterplot with standardized colormap across subplots

I Have two sets of data that I would like to compare. Each set of data has x and y values along with some z values for each x,y point. The distribution of z values between the two data sets may overlap each other, but generally will have portions…
StephB
  • 35
  • 6
2
votes
1 answer

How can I change textposition on plotly based on the information?

I have this code: data = go.Scatter( x=positionsX, y=positionsY, textposition='middle center', mode='markers+text', marker=dict( color=color, opacity=[1, 1, 1, 1, 1], …
2
votes
1 answer

How to plot a dot plot type scatterplot in matplotlib or seaborn?

Let's say I have a df like this: df = pd.DataFrame({'col1': list('aabbb'), 'col2': [1, 3, 1, 5, 3]}) col1 col2 0 a 1 1 a 3 2 b 1 3 b 5 4 b 3 I would like to see a plot, where on the x axis, I have the col1…
biohazard90
  • 95
  • 1
  • 7
2
votes
0 answers

ApexCharts high performance scatter chart

I've created a mixed chart (line/column/scatter) that receives around +5000 data points. The performance drops when implementing it with the scatter charts because of the set marker sizes. I've followed the performance guide mentioned in…
2
votes
1 answer

Is there a simple way to plot multiple series on one pandas scatter plot?

I come across this issue constantly; and my current solution is to create additional dataframes, I feel like there must be an easier solution. Here is an example of data where I have multiple countries with multiple attributes: If I wanted to plot…
2
votes
1 answer

MATLAB: Scatter Plot with matrix data

I am trying to perform the scatter plot of X and Y matrices, each of size 54x365, with the following code on MATLAB. The data was extracted from excel. clc clear A = xlsread('Test_data.xlsx', 'Sheet 1', 'F3:NF56'); B = xlsread('Test_data.xlsx',…
Yuv
  • 45
  • 1
  • 6
2
votes
2 answers

R plotly(): Adding regression line to a correlation scatter plot

I would like to add the regression line to my correlation scatter plot. Unfortunately this doesn't really work with plot_ly(). I've already tried some solutions from other posts in this forum, but it doesn't work. My data frame looks like the…
MikiK
  • 398
  • 6
  • 19
2
votes
1 answer

Python:Plot scipy plot on top of voronoi diagram

I am trying to plot on top of scipy plot. Used [this solution] (Python: plot on top of scipy plot? (voronoi)) but still cannot get single plot. Can anyone help? Thanks in advance... Sample plots are the following and trying to overlap them: Voronoi…
2
votes
1 answer

Scatter Plot Y-axis Number Ranging Problem in Matplotlib

I wrote a few lines of code that creates a simple scatter plot. I want the numbers on the y-axis to range from 0 to 1000000. I know it's a big number and sometimes I might experience strange numerical problems but when I run this code the y-axis is…
2
votes
1 answer

Matplotlib scatter plot failed to display all legends (some are missing)

In my data, they are 23 classes in total. all_classes = ['E6Tle4', 'E2Rasgrf2', 'InV', 'E4Thsd7a', 'E3Rmst', 'E3Rorb','E5Galnt14', 'Clau', 'E4Il1rapl2', 'E5Parm1', 'OPC', 'Mis', 'E5Sulf1', 'Ast', 'OliM', 'E5Tshz2', 'InS', 'InN', 'InP', 'OliI',…
CSY
  • 131
  • 1
  • 10
2
votes
2 answers

Scatter tensor in pytorch along the rows

I want to scatter tensors in granularities of rows. For example consider, Input = torch.tensor([[2, 3], [3, 4], [4, 5]]) I want to scatter S = torch.tensor([[1,2],[1,2]]) to indices I = torch.tensor([0,2]) I expect the output to be…
Kiran
  • 87
  • 1
  • 1
  • 5