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

Set properties for specific patch in matplotlib.collections.PathCollection

I would like to set individual properties (zorder and label for example) for a specific element of a matplotlib.collections.PathCollection. I couldn't find a way in the documentation. Here I jot down a user case. Let say we have the following…
Atcold
  • 683
  • 2
  • 10
  • 31
2
votes
0 answers

Making a 2 color scatterplot with plot_date in Matplotlib

I'm making a basic scatterplot for a school project similar to the one here: How do I assign different dots different colors in a scatter plot made with MatPlotLib? The only difference is my data is movie revenues by release date. So x-axis is…
Wei.W
  • 21
  • 3
2
votes
0 answers

A log2 colorbar in matplotlib scatter plot

I know it is possible to normalize the colors of the data by a log10 as like this plt.scatter(x,y,edgecolors='none',s=marker_size,c=void_fraction, norm=matplotlib.colors.LogNorm()) but is it possible to normalize it automatically on…
Oren
  • 4,711
  • 4
  • 37
  • 63
2
votes
1 answer

python scatter plot area size proportional axis length

I'm getting quite desperate about this, I couldn't find anything on the www so far. Here's the situation: I am working with Python. I have 3 arrays: the x-coordinates, the y-coordinates and the radius. I want to create a scatter plot with the…
mivkov
  • 471
  • 5
  • 19
2
votes
1 answer

Making QQ Plots, Histograms and Scatterplots using SAS

I have this dataset: data flu; input FluShotStatus age HealthAwareIndex gender; datalines; 0 59 52 0 0 61 55 1 1 82 51 0 0 51 70 0 0 53 70 0 0 62 49 1 1 51 69 1 0 …
oxnot
  • 55
  • 5
2
votes
1 answer

R customizing scatter plot

I often find following type of scatter + histograms + correlations plots very useful to understand the nature of my data before getting into the analysis. Can anyone help me to generate this kind of combined plot in R? Example
user4143385
  • 51
  • 1
  • 6
2
votes
1 answer

Kivy: Make Scatter same size as child Label or Image

I'm trying to make a kind of basic photo editor in kivy. It's supposed to allow the placement and transformation of a base image as well as adding text labels. I'm implementing this functionality using scatters, but I'm running across a problem…
watswat5
  • 671
  • 1
  • 7
  • 19
2
votes
0 answers

Play/Pause/Stop and timer in Python animation

I created an animation (see code) that works perfectly. But, cannot manage to add 1) a Play/Pause/Stop button or "onClick()": nothing happens and the animation keeps on running. 2) Same thing for the timer, that I cannot see. Is is related to the 3D…
2
votes
1 answer

How to make a scatter plot of different sizes, colour, and positions?

How to make a scatter plot with random values of delta_x and delta_y positions; where each point has certain frequency value(color intensity changes depending upon intensity), i.e., a certain symbols. Example plot: (from Alberdi, et al, 2013)
A_V
  • 109
  • 9
2
votes
3 answers

ggplot XY scatter - how to change alpha transparency for select points?

I have ~14,000 XY pairs to plot, and using ggplot2 for this. Due to high numbers of points, I have had to use very low alpha=0.025. I want to highlight 7 XY points in a different color and more opaque, and have an accompanying text…
AksR
  • 55
  • 1
  • 1
  • 7
2
votes
2 answers

Fixed y axis in Python plotting times in 12 hr format

I have this plot but I need the y axis to be fixed to 00:00, 01:00, 02:00, etc all the way up to 12:00. As of now it's only plotting the values I have in the csv on the y axis. the csv is in the following format. How do o get the y axis to be…
Archimedes
  • 47
  • 7
2
votes
1 answer

Improving the Efficiency of Compact/Scatter in CUDA

Summary: Any ideas about how to further improve upon the basic scatter operation in CUDA? Especially if one knows it will only be used to compact a larger array into a smaller one? or why the below methods of vectorizing memory ops and shared…
dada_dave
  • 493
  • 4
  • 13
2
votes
3 answers

r scatter plot with error bars in both directions

How can I create a scatter plot with error bars in two directions? Usually the error bars are in the vertical direction (i.e. the uncertainty in the y value). However my data has uncertainty in the x value as well X ErrX Y ErrY 1.0 0.1…
Alex Lizz
  • 425
  • 1
  • 8
  • 19
2
votes
2 answers

Scatter plot of two matrices with trend line

I want to make a scatter plot of two matrices, including a trend line. My two matrices are: growth and trade. Both are of the size NxT, where N is the number of countries and T the number of observations (per country). I want to see whether growth…
user4439562
2
votes
1 answer

How to add vertical lines to a Google Scatter Chart

I want to add vertical lines to a Scatter Chart like the orange and green lines in this chart: here's an example of the code I'm using for my chart.