Skip to main content

All Questions

0 votes
1 answer
107 views

Plot gets shrunk off to the side when adding a scatterplot on top of the violin plot

I want to create a double violin plot with custom markers for each thing. So far, I have successfully been able to create the violin plot However, when I add the scatter of the various markers on top ...
Zedonkay's user avatar
0 votes
3 answers
140 views

Plotting scatter plot in 1 image

I am trying to plot my data using scatter plot however i can't seem to get the 3 plots into 1 image How do i solve this: nu_cluster = 3 kmeans = KMeans(n_clusters=nu_cluster,random_state=0) data_df[&...
alson's user avatar
  • 59
2 votes
2 answers
62 views

True Python scatter function

I am writing this to have a reference post when it comes to plotting circles with a scatter plot but the user wants to provide a real radius for the scattered circles instead of an abstract size. I ...
Yves ROBERT's user avatar
0 votes
2 answers
52 views

Plotting three columns in the form of a matrix in matplotlib

I have three column data file. First and second columns are x and y axes, respectively. I would like to give color to the plot in the form of a matrix as shown in an example figure (with different ...
Masoom's user avatar
  • 15
0 votes
0 answers
95 views

Update a plot dynamically

I have the code below in a jupyter notebook: import matplotlib.pyplot as plt x = [] y = [] for i in range(10): x.append(i) y.append(i**2) plt.scatter(x, y) How do I update the ...
Zohim's user avatar
  • 51
0 votes
0 answers
41 views

Unable to plot other plots with for loop plot

I am having difficulties plotting data when using a for loop. What I want to do is combine the following two plots: fig, ax = plt.subplots() ax.scatter(x1, y1, color='blue', label='Series 1') ax....
Filip's user avatar
  • 323
0 votes
1 answer
75 views

plot coordinates line in a pyplot

I have a scatter plot. I would like to plot coordinate lines for each point, from X to Y, just like we used to do on school. See picture below as a reference. I ended up using the "grid()" ...
Gabriel's user avatar
  • 609
0 votes
1 answer
99 views

plotting scatter plot in python clearly with each tick visible

I have around 45 csv files each containing two columns with 13,000 entries I want to plot all these csv files together in a single scatter plot and dont want the ticks of the scatter plot to overlap ...
user avatar
1 vote
0 answers
1k views

How to change the size of dots in a mpl-scatter-density plot

I am using mpl-scatter-density to make a density plot in python. However, the dots are extremely small. What should I do in order to make the scatter dots bigger? I used this code: import numpy as np ...
user21521800's user avatar
4 votes
1 answer
8k views

Matplotlib groupby scatter colormap Warning: " No data for colormapping provided via 'c' "

I'm having issues with colormapping of simple scatter plots when created using pandas groupby. Example import pandas as pd df = pd.DataFrame(data= {'class': ['A']*5 + ['B']*5, ...
gioarma's user avatar
  • 458
0 votes
1 answer
168 views

Is it possible to connect points with specific order in a scatter plot?

I have this array containing the points I need to plot: [[ 1. 1. 82. 177. 0. 0. -1.] [ 2. 2. 83. 177. 0. 0. 1.] [ 3. 2. 84. 177. 0. 0. 2.] [ 4. 2. 85. 177. 0. ...
Ludovica's user avatar
0 votes
1 answer
160 views

Setting specific display range for scatter plot axes in Matplotlib

I am trying to make a scatter plot showing the housing prices in Manhattan using the longitude and latitude from a data set. When creating the scatter plot. The output only shows the extreme values of ...
Lucía Roca de Togores's user avatar
-4 votes
2 answers
51 views

x and y must be the same size error python [closed]

that's what i need to find where the error is (. Make a scatter plot of Nsteps versus starting number. You should adjust your marker symbol and size such that you can discern patterns in the data, ...
sumi's user avatar
  • 1
1 vote
1 answer
634 views

ufunc 'sqrt' not supported for the input types

Im trying to plot a scatter with values from my array, everything is working till im trying to scale the size of the dots with an value of my array. For example my array looks like this: ['50', ' 50',...
Chopper's user avatar
  • 63
0 votes
4 answers
722 views

python : How to add different markers to different Y values

I'm trying to visualize data where each X value has multiple Y values and I would like to distinguish each Y value visaully. This is the example code xLables = ['A1','A2','A3','A4','A5'] YValues = [[...
Ash SDR's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
13