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

Boxcar convolve a scatter plot in python/astropy?

I believe the fix to this will be relatively simple, but I can't seem to figure out how to convolve a scatter plot that I've plotted in python. I have 2 data arrays, one of galactic latitudes and one of galactic longitudes, and I've plotted them…
P Abb
  • 41
  • 3
4
votes
2 answers

Recover data from matplotlib scatter plot

From a matplotlib scatter plot, I'm trying the recover the point data. Consider from matplotlib import pyplot as plt import numpy as np fig = plt.figure() x = np.linspace(0.0, 1.0, 5) y = np.linspace(0.0, 1.0, 5) plt.scatter(x, y) ax =…
Nico Schlömer
  • 53,797
  • 27
  • 201
  • 249
4
votes
1 answer

pylab scatter plot appears transposed

I have been playing with various interpolation techniques - and particularly like the varieties shown in the youtube video https://www.youtube.com/watch?v=_cJLVhdj0j4 However, the scatter module plots the points in the wrong location. I have…
James
  • 41
  • 2
4
votes
1 answer

Comparison of MPI_Send/Recv and MPI_Scatter/Gather

I am using MPI to separate a matrix and send them to N processes, but I found that MPI_Scatter/Gather are not effcient enough. I wrote two programs to compare MPI_Send/Recv and MPI_Scatter/Gather. MPI_Send/Recv: #include #include…
Cricket
  • 491
  • 1
  • 7
  • 16
4
votes
2 answers

How to reduce size of printed eps when plotting large amounts of data

I am Plotting and printing a large dataset to eps: plot(Voltage,Torque,'b.') print -depsc figure.eps Through these million data points I will fit a graph. However since the sizes of the Voltage and Torque vectors are enormous my eps file is 64.5…
Max Baeten
  • 43
  • 3
4
votes
1 answer

excel:changing the symbol and color of a marker based on grouping

I have a dataset that looks like ID Vehicle_grp count mpg 000 Car 5 10 Motorbike 20 100 Other 1 25 001 Car 30 60 Motorbike 28 45 Other …
Adit2789
  • 139
  • 1
  • 5
  • 15
4
votes
1 answer

How to set a fixed/static size of circle marker on a scatter plot?

I want to plot the location of some disks generated randomly on a scatter plot, and see whether the disks are 'connected' to each other. For this, I need to set the radius of each disk fixed/linked to the axis scale. The 's' parameter in the…
Physicist
  • 2,848
  • 8
  • 33
  • 62
4
votes
1 answer

matplotlib scatter shifts color codes when NaN is present

I want to plot some data with a given color code. For example: x = np.array([0, 1, 2, 3]) b = np.array([1, 0, 2, 3]) colors = np.array(['g', 'r', 'b', 'y']) plt.scatter(x, b**2, color=colors) Great, all the points appear, each one with its…
StarObs
  • 101
  • 3
4
votes
1 answer

How to add a second legend for subgroups in matplotlib scatterplot

I am making a plot using matplotlib which uses a colormap to show different colors for each subgroup within the plot. However for plotting purposes the subgroups are all one set of x/y pairs. plt.scatter(rs1.x,rs1.y, marker = 'D', color=cmap…
Charlie_M
  • 1,281
  • 2
  • 16
  • 20
4
votes
2 answers

Matplotlib : how to label points individually?

With maptplotlib, I plot some points with the scatter method (see code below). I would like to label each point individually. This code will label every point with the labels array, but I would like my first point to be labeled with labels[0], the…
Niourf
  • 450
  • 1
  • 4
  • 15
4
votes
2 answers

Understanding matplotlib verts

I'm trying to create custom markers in matplotlib for a scatter plot, where the markers are rectangles with fix height and varying width. The width of each marker is a function of the y-value. I tried it like this using this code as a template and…
frixhax
  • 1,325
  • 3
  • 18
  • 30
4
votes
1 answer

OpenOffice Calc chart not showing my datapoints?

OK, I have searched for an answer to this for ages, so please don't give me minus points :) I want to make a simple XY scatter graph in OpenOffice Calc, however when I have selected the X and Y columns and chosen the XY scatter, no data points show…
user1882385
  • 169
  • 2
  • 9
4
votes
1 answer

Animated scatterplot of data with Matplotlib

I tried to adapt animated scatter plot-example in such a way, so it shows real-time the results of an agent based-model I developed. However, the result shown in the graph are not that what I except them to be. It goes wrong when updating the…
user1746593
  • 63
  • 2
  • 4
4
votes
1 answer

add segments to scatter-plot

(this follows ggplot2 loess Q for which I got a nice answer) -- leading to this plot: My R knowledge is quite limited (sorry!) I plot a scatter using data from a table data1. data1<-NaRV.omit(data[,c(2,3,7,10)]) #(2=start, 3=end, 7=value,…
splaisan
  • 845
  • 6
  • 22
3
votes
3 answers

Python: Reading CSV file and plotting a scatter

I've written a script to compute large csv files in dimensions: 27000 rows x 22 column. How can I read in the CSV file in order to use it in matplotlib in a scattered plot like the one in this thread? axis range in scatter graphs The concept of…
Daniyal
  • 885
  • 3
  • 16
  • 28