scatter-plot Questions

4

Solved

I am trying to automatically update a scatter plot. The source of my X and Y values is external, and the data is pushed automatically into my code in a non-predicted time intervals (rounds). I ha...
Chisholm asked 10/3, 2017 at 16:1

5

Solved

I have a pandas dataframe and would like to plot values from one column versus the values from another column. Fortunately, there is plot method associated with the dataframes that seems to do what...
Lutenist asked 23/7, 2013 at 14:23

5

Solved

I have two lists, dates and values. I want to plot them using matplotlib. The following creates a scatter plot of my data. import matplotlib.pyplot as plt plt.scatter(dates,values) plt.show() plt...
Coparcenary asked 21/11, 2013 at 19:31

3

Solved

I have a plot with limits -1 to 1. I know the scatter plot doesn't plot with size as a radius, it plots with size as a point. I need my plot to be scaled correctly with the size of each point, whi...
Caponize asked 13/10, 2015 at 5:4

6

Solved

I'm making some scatter plots and I want to set the size of the points in the legend to a fixed, equal value. Right now I have this: import matplotlib.pyplot as plt import numpy as np def rand_d...
Trophy asked 11/7, 2014 at 20:35

2

I want to plot a scatter plot similar to this one : I can plot a histogram from my data but i want a scatter plot for the same data . Is there any way i can use the hist() method output as an in...
November asked 20/8, 2013 at 1:42

4

Solved

I'm using the code below to generate the following chart. # Setup data(airquality) # Device start png(filename = "example.png", units = "cm", width = 20, height = 14, res = 300) # Define chart p...
Emmetropia asked 10/2, 2015 at 8:59

4

Solved

I have to represent about 30,000 points in a scatter plot in matplotlib. These points belong to two different classes, so I want to depict them with different colors. I succeded in doing so, but t...
Wonderland asked 28/9, 2013 at 8:2

7

Solved

In the pyplot document for scatter plot: matplotlib.pyplot.scatter(x, y, s=20, c='b', marker='o', cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, faceted=True, verts=None...
Ceres asked 12/2, 2013 at 7:37

4

Solved

In this example of a marker from my scatter plot, I have set the color to green, and edge color to black, and hatch to "|". For the hatch pattern to show up at all, I must set the edgecol...
Jesher asked 14/1, 2013 at 20:3

2

Solved

Suppose, I have the following two lists that correspond to x- and y-coordinates. x = [1,2,3,4,5,6] y = [3,4,5,6,7,8] I want the first pair (1,3) to be in a different color or shape. How can this b...
Virtuoso asked 5/1, 2017 at 16:6

3

Solved

I am interested in plotting a legend in my scatterplot. My current code looks like this x=[1,2,3,4] y=[5,6,7,8] classes = [2,4,4,2] plt.scatter(x, y, c=classes, label=classes) plt.legend() The pro...
Paleface asked 5/2, 2017 at 20:8

3

Solved

I can't find out anywhere how to change the marker size on seaborn scatterplots. There is a size option listed in the documentation but it is only for when you want variable size across points. I w...
Sukhum asked 12/10, 2018 at 18:19

2

Solved

I am attempting to create a scatter plot. I have a list of numbers from 0 - 17 as well as an array with 18 values. I can plot the data as a line plot but when I try to plot as a scatter, I get an e...
Dalessio asked 1/3, 2016 at 20:51

2

Solved

How could I add a trendline to a dot graph drawn using matplotlib.scatter?
Alexaalexander asked 19/10, 2014 at 4:7

4

I want to make a scatterplot (using matplotlib) where the points are shaded according to a third variable. I've got very close with this: plt.scatter(w, M, c=p, marker='s') where w and M are the d...
Ephemeral asked 20/11, 2011 at 15:38

4

Solved

I am looking for a solution to avoid overlapping text in the text-labels. I create the image with plotly scatter. Maybe there is an automation here. from pandas import util import plotly.express as...
Deplore asked 19/4, 2021 at 20:21

5

I have a scatterplot that has colour-coded data points. When two or more of the data points overlap only one of the colours is shown (whichever is first in the legend). Each of these data points re...
Camaraderie asked 23/12, 2017 at 19:19

6

Solved

I've spent hours on trying to do what I thought was a simple task, which is to add labels onto an XY plot while using seaborn. Here's my code: import seaborn as sns import matplotlib.pyplot as plt ...
Sugden asked 3/9, 2017 at 20:40

3

Solved

How can I combine a 3D scatter plot with a 3D surface plot while keeping the surface plot transparent so that I can still see all the points?
Egidius asked 5/3, 2013 at 17:9

4

I'm trying to render a scatter plot in chart.js of (x,y) data where x is a date string. I've seen many examples and tutorials online where the instructor uses a function to generate the time stamp ...
Lamina asked 13/7, 2017 at 5:6

3

Solved

I would like to make a graph with a multi-level x axis like in the following picture: import plotly.graph_objects as go fig = go.Figure() fig.add_trace( go.Scatter( x = [df['x'], df['x1']], y =...
Nonmoral asked 27/11, 2020 at 22:19

5

I use matplotlib to plot a scatter chart: And label the bubble using a transparent box according to the tip at How to annotate point on a scatter automatically placed arrow Here is the code: if sh...
Reconstructive asked 18/2, 2013 at 14:24

3

Solved

I have a pandas dataframe including the following columns: label = ('A' , 'D' , 'K', 'L', 'P') x = (1 , 4 , 9, 6, 4) y = (2 , 6 , 5, 8, 9) plot_id = (1 , 1 , 2, 2, 3) I want to creat 3 seperate...
Aqueous asked 5/12, 2016 at 16:38

6

Solved

I'm making some scatterplots using Matplotlib (python 3.4.0, matplotlib 1.4.3, running on Linux Mint 17). It's easy enough to set alpha transparency for each point individually; is there any way to...
Greathouse asked 7/5, 2015 at 17:54

© 2022 - 2024 — McMap. All rights reserved.