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
4 answers

Plotly - "grouped" scatter plot

Suppose I have the following pandas data frame: import pandas as pd d = {'Person': ['Bob']*9 + ['Alice']*9, 'Time': ['Morining']*3 + ['Noon']*3 + ['Evening']*3 + ['Morining']*3 + ['Noon']*3 + ['Evening']*3, 'Color':…
soungalo
  • 1,106
  • 2
  • 19
  • 34
4
votes
2 answers

How to insert tooltips in a scatter plot with bqplot

I have a pandas dataframe (df) with 4 columns, named 'name', 'nb', 'a' and 'b', that characterize a person, with his name, his id number ('nb') and some values ('a' and 'b') associated to it. import pandas as pd data = { "name": ["Thomas",…
gus
  • 103
  • 8
4
votes
2 answers

How to create hollow shapes in JFreeChart Scatter Plot

JFreeChart version used: 1.5.0 I tried the following to obtain hollow shapes in a scatter plot: PlotFrame.java file content: package javaapplication1; import javax.swing.JFrame; import org.jfree.chart.ChartFactory; import…
Tarik
  • 10,810
  • 2
  • 26
  • 40
4
votes
1 answer

Drawing an arrow with specified direction on a point in scatter plot in Julia

Is there a way to draw a scatter plot in Julia (preferably with gr backend), in which every point has an arrow pointing to a specified direction on it? Specifically, my task is to create a gif image with multiple moving points with a small arrow on…
Sato
  • 1,013
  • 1
  • 12
  • 27
4
votes
1 answer

set scatter plot legend labels with legend_elements

I just upgraded matplotlib to version 3.1.1 and I am experimenting with using legend_elements. I am making a scatterplot of the top two components from PCA on a dataset of 30,000 flattened, grayscale images. Each image is labeled as one of four…
k.stroh
  • 81
  • 1
  • 6
4
votes
1 answer

In matlab, how to connect line in scatter plot without jump

Is there is elegant way to connect the line between the nearest points in scatter plot? The reason I ask is because plot will connect the line based on the 'index of row' of Y(data). Basically, it connects points in the same row in Y. However, this…
Jake Pan
  • 262
  • 1
  • 8
4
votes
1 answer

How to get the position of the point in Vispy 3d plot?

I am beginner of the VisPy. All I want to do is: Click the point then this point will change color and print the position (x,y,z) of this point. But I can't find how to do this. Here is my code. import numpy as np import sys from vispy import app,…
Nina
  • 156
  • 1
  • 7
4
votes
1 answer

Animating a 3D scatterplot with matplotlib to gif ends up empty

So this is my code: from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import numpy as np import matplotlib.animation as animation raw = np.random.rand(100,3) fig = plt.figure() ax = fig.add_subplot(111, projection='3d') x =…
4
votes
2 answers

Making a scatterplot in PowerBI

I'm used to using Tableau (similar to powerBI), and I'm now testing powerBI as well. I've been trying to receate a plot from Tableau, but I'm unable to do it (see the images). Now I realize that this probably has a very simple solution, and I…
4
votes
2 answers

Plot a list of matrices at heights in 3d scatter plot

I have a file with a number of matrices separated by a newline. I can plot any one of these matrices as a heatmap as shown in http://gnuplot.sourceforge.net/demo/heatmaps.html However, now I would like to visualize all the matrices together on the…
Riddick
  • 319
  • 3
  • 15
4
votes
3 answers

How do I change the size of the scatter markers in the legend?

I am basically plotting a scatter graph with matplotlib, however, I have varied each point by a radius. When I use plt.legend() to show my legend, it looks like this...... Is there a command to reduce the size of the circle. I know this is probably…
mcstosh
  • 71
  • 1
  • 2
  • 8
4
votes
1 answer

ValueError: Invalid RGBA argument: 'o'

I am trying to draw a scatter plot in Python with color code stored in 'color' column of dataframe. And I get invalid RGBA argument error. Here's my code and data: df.plot.scatter(x='x', y='y', c='color') id x type color …
ejshin1
  • 1,107
  • 6
  • 17
  • 35
4
votes
1 answer

Coloring markers in a scatter plot according to RGB values with Plots.jl

I have been looking for a way to color markers in a scatter plot without creating an entire new series for every point. Is there a way to color them individually with different RGB values for each? a single color gradient (the solution to the…
Polimathos
  • 41
  • 2
4
votes
2 answers

Plotly (offline) for Python click event

Is it possible to add click events to a Plotly scatter plot (offline mode in Python)? As an example, I want to change the shape of a set of scatter points upon being clicked. What I tried so far My understanding from reading other questions from the…
Jesper - jtk.eth
  • 7,026
  • 11
  • 36
  • 63
4
votes
1 answer

openpyxl - Changing the scatterStyle of a chart to 'marker'

I use openpyxl to create scatterCharts in an .xlsx-file. The default style of the chart is "line". I want to change this style to "marker". http://openpyxl.readthedocs.io/en/default/charts/scatter.html says, that it is the best way to do this by…
Rexaris
  • 121
  • 1
  • 8