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

How do I create a 3D plot using a function that returns a plot?

I would like to make a 3D plot using a function that returns a plot and the input argument it takes. This is my code for the function: def cumulative(moment): bins = np.zeros(32) x = upper_bin for i in range(32): bins[i] =…
3
votes
2 answers

Recharts ScatterChart not rendering dots and duplicating values in XAxis

I'm trying to render a ScatterChart with ReCharts. The y axis is rendering appropriately, as are the labels for the different scatter lines, however no dots appear and the x axis includes duplicate values. let line2, yAxis = null; let y_axis1 =…
Adam Sith
  • 53
  • 1
  • 6
3
votes
1 answer

Legend for colour and for marker

I want to plot the values of two matrices in a scatter plot. For each of the points of the scatterplot, I want to see in which column and which row they are. For the different rows, I use different colours. For the different columns, I use different…
Jorre Goossens
  • 139
  • 1
  • 2
  • 10
3
votes
0 answers

D3 animated scatter plot not displaying

I am working on a d3.js Dashboard (so only one dashboard and many layouts). I wanted to display a scatterplot animated, with the dots moving regarding some filter I am applying. But in order, I have to display something first which is not…
Lord Djaz
  • 69
  • 1
  • 1
  • 7
3
votes
1 answer

Python scatter plot from Pandas dataframe with many columns

I have a data frame that looks like the following: Dataframe Snapshot I would like to make a scatter plot with JUST POINTS on the graph and I want all the points to line up in columns on the graph where each columns is a month (Jan, Feb, Mar, etc)…
JMP0629
  • 95
  • 2
  • 10
3
votes
1 answer

Multiindex scatter plot

Suppose I have the following data: data = {'Value': {('1', 1): 3.0, ('1', 2): 4.0, ('1', 3): 51.0, ('1', 4): 10.0, ('1', 5): 2.0, ('1', 6): 17.0, ('1', 7): 14.0, ('1', 8): 7.0, ('1', 9): 2.0, ('1', 10): 1.0}} df=pd.DataFrame(data) Let's say this…
user21359
  • 466
  • 5
  • 18
3
votes
0 answers

Highlight/find data points in a 3d plotly scatter from the browser

Using code from a previous post I was able to add a search bar that highlights specific points on a scatter plot in plotly using R, which worked well in 2 dimensions. However, I have now produced a 3 dimensional plot with the same data and the code…
JohnDoe999
  • 31
  • 3
3
votes
0 answers

"Dodge" overlapping points in matplotlib?

I want to plot a hundred or so points on a world map. Some of the points are too close together, so I would like to be able to separate them, so that they are still approximately in the correct position, but not overlapping the neighbouring…
naught101
  • 18,687
  • 19
  • 90
  • 138
3
votes
1 answer

click data on/off in legend python scatterplot

So I've found this code: https://matplotlib.org/examples/event_handling/legend_picking.html. And I'm trying to make it work for data points instead of lines. So I thought I just change the marker in 'o', but that doesn't seem to work. Also I want to…
3
votes
1 answer

How to use Scatter to move paddles in the official Kivy Pong tutorial?

Having completed the Pong Game tutorial from the official Kivy site I went on with their Crash Course. There in the very first video I saw this magic thing they call Scatter that pretty much enables you out-of-the-box to make UI things move with…
z33k
  • 3,280
  • 6
  • 24
  • 38
3
votes
0 answers

Python : from numpy.array to shapely.geometry

I am working on a project around scatter points and I need to find their concave hull. I have seen an example on the web where the person creates scatter points with QGIS so that he has a .shp file that he can load with 'fiona' library. Then he…
user7320967
3
votes
2 answers

Adding color to Polar Scatter plot data points

I'm trying to make a polar plot with Python, of which I've been somewhat successful so far polar scatter plot example I did have a few questions for which I was hoping to get some ideas/suggestions: is it possible set the color of the circles to…
luke
  • 61
  • 2
  • 7
3
votes
1 answer

ChartJS: Mapping Non numeric Y and X

I'm trying to map non numeric y and x and for some reason it does not work. E.g. xLabels: ["January", "February", "March", "April", "May", "June", "July"], yLabels: ['Request Added', 'Request Viewed', 'Request Accepted', 'Request Solved', 'Solving…
kristjan reinhold
  • 2,038
  • 1
  • 17
  • 34
3
votes
1 answer

How to plot scatter subplots of columns from pandas

Let's say I have a dataframe with 100 rows and 40 columns where column 40 represents the Y axis values for the scatter plots. For 39 scatter plots, I would like to plot column 40 in function of column 1, column 40 in function of column 2, column 40…
A.P.
  • 461
  • 2
  • 8
  • 17
3
votes
2 answers

Different marker sizes in highcharts?

For my scatter chart in highcharts I would like different series to have different marker radius. Is this possible? "plotOptions": {"series": {"marker": {"enabled": true ,"symbol": "circle" …
ChrisD
  • 33
  • 1
  • 3