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

Rainbow scatter plot Python

I have to make the following scatterplot in python. The code for this plot is : n = 1024 X = np.random.normal(0,1,n) Y = np.random.normal(0,1,n) plt.scatter(X,Y) But as espected, this wont give the colours. I've tried a lot, but can't find the…
user9061464
1
vote
1 answer

Highcharts.stockChart x-axis data for irregular time-stamped scatter breaks date range-handling

Adapted from the README.md file in https://github.com/tevye/HighchartsXAxisSpecificationProblem: Three example Highstocks HTML files, one working, one broken by making the data timestamps irregular, and the last shows a failed attempt to fix are in…
tevye
  • 47
  • 6
1
vote
1 answer

Turn off plotly 3D Scatterplot marker indicators in R

What are the lines called (in the API) which extend from a marker to the respective axis when you hover over a marker? Is there a way to turn those off? library(plotly) itemName = c("Alpha", "Bravo", "Charley", "Delta", "Echo", "Foxtrot")…
craab
  • 105
  • 5
1
vote
1 answer

Extract date and time from dynamodb timestamp data in javascript for scatter plot

This is my date-time format "2018.01.16 14:35:40". I am getting this data from the dynamodb database as a string. Now, I need to extract the date and time as a number in 2 different variables to draw a scatter plot using javascript. To do so, I need…
1
vote
0 answers

transparent point plot does not work

I use GNUPLOT to plot scatter-data. My aim is plotting them with transparent vision. My code at gnuplot is: set style fill transparent solid 0.3 pl "myfile.txt" fs solid 1.0 u 1:2 w p pt 7 ps 0.7 The gnuplot does not recognize fs. What should I do?
Reihaneh Kouhi
  • 489
  • 1
  • 7
  • 23
1
vote
1 answer

How to project 3D scatter points onto the xy-plane?

this is the graph in question and the dots should appear in the bottom plane, not "above" the plane like i manged to. bx.scatter(xs,ys,zs, zdir=zs,c=plt.cm.jet(np.linspace(0,1,N))) # scatter points for i in range(N-1): bx.plot(xs[i:i+2],…
Sirmione
  • 281
  • 2
  • 10
1
vote
1 answer

Adding barchart into tooltip of scatterChart in nvd3 - react component not rendering

I created a scatterChart from nvd3 and then tried to customize the tooltip the way it is described here: nvd3 piechart.js - How to edit the tooltip? using chart.tooltip.contentGenerator() approach: import React from 'react' import * as d3 from…
Nikita Vlasenko
  • 4,004
  • 7
  • 47
  • 87
1
vote
0 answers

Google Visualization - Custom tooltip disappears when adding extra column

I currently have a scatter chart with custom tooltips. However, I want to add an extra column (which is not visible on the chart) for filtering purposes. When I add this column my custom tooltip changes to the default tooltip. Anyone has any ideas…
Jan
  • 560
  • 6
  • 19
1
vote
0 answers

R. Draw boundary lines of multiple groups

I would like to draw boundary lines of multiple groups in a two dimensional plane. I know I can draw a contour line to divide only two groups using SVM, but not for multiple groups. In the sample code below, there are 500 points in 5 groups. But in…
stok
  • 375
  • 4
  • 8
1
vote
0 answers

Scatter Plots on Maps in R plotly hover feature does not work

I try the Scatter Plots on Maps In R poltly example, that is provided by plotly. https://plot.ly/r/scatter-plots-on-maps/ However, I am not able to get the hover feature to work, when I copied the code and run in rstudio. library(plotly) df <-…
1
vote
1 answer

d3 tickFormat error - converting v3 to v4

I am trying to convert d3 from version 3 to version 4 but I get this error: Uncaught Error: invalid format: function (d) { var prefix = d3.formatPrefix(d); return prefix.scale(d) + prefix.symbol; } Can someone tell…
parastoo
  • 372
  • 1
  • 4
  • 20
1
vote
1 answer

R: scatterplot3d with broken y axis

In R, I am trying to plot a 3D scatter plot with the following code: library(scatterplot3d) mtcars$pcolor[mtcars$cyl==4] <- "red" mtcars$pcolor[mtcars$cyl==6] <- "blue" mtcars$pcolor[mtcars$cyl==8] <- "darkgreen" with(mtcars, { s3d <-…
rororo
  • 815
  • 16
  • 31
1
vote
1 answer

Matlab Plotting with Labels

I'm trying to plot a knn result from my data, which has 3 columns: x, y , label. There are 3 classes and for each of them I would like to used a different symbol. Here's the way I'm plotting now: t1 = data(:,3) == 1; t2 = data(:,3) == 2; t3 =…
ajax2000
  • 711
  • 2
  • 10
  • 23
1
vote
2 answers

Got "Cannot read property 'getAttribute' of null" error

I am trying to draw a scatter plot chart with D3 from a csv file. The csv looks something like this: location smokeSomeDays allFamPovPct AL 5% 15% AK 5% 8% AZ 4% …
song
  • 83
  • 2
  • 7
1
vote
3 answers

Libreoffice scatterplot with different classes

I have some 2D points that I want to plot, but each point belongs to a class. When doing the scatterplot I want each class to be plotted with a different color or symbol, so I can distinguish them (ideally I also want to control which color and…
user2261062