scatter-plot

Multiple scatter plots on one plot

Multiple scatter plots on one plot Question: I am having two audio files and I am taking their 1D convolution. The output has 3 points for each audio file. I wanted to plot the outputs of both the files on the scatter plot but I am able to plot just the last output. Can anybody …

Total answers: 1

Categorical data visualization – scatter plot with multiple X using Pandas and Seaborn

Categorical data visualization – scatter plot with multiple X using Pandas and Seaborn Question: I spent many hours looking for tips how to create categorical plot using Seaborn and Pandas having several Xs to be added on x-axis, but I have not found the solution. For specified columns from excel (for example: S1_1, S1_2, S1_3) …

Total answers: 1

Elegant wat to join dataframe by name then autofill blank value by pandas, create a coloured scatter plot according value using matplotlib

Elegant wat to join dataframe by name then autofill blank value by pandas, create a coloured scatter plot according value using matplotlib Question: I am wondering is there an elegant and efficient way to achieve what my title as stated. import pandas as pd data1 = pd.DataFrame([[‘ad_001′,’50’], [‘ad_002’, ‘100’], [‘ad_003’, ‘150’]],columns=[‘name’, ‘score’]) data2 = pd.DataFrame([[‘ad_001′,’75’], …

Total answers: 1

x and y must be the same size error python

x and y must be the same size error python Question: 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, rather than just seeing a solid mass …

Total answers: 2

Matplotlib conditional scatterplot colors

Matplotlib conditional scatterplot colors Question: I’m trying to change the colors of the points in a scatterplot to red based on the condition x > 0. Here’s what I have: x = np.random.rand(100,1) y = np.random.rand(100,1) plt.scatter(x, y, c=[‘r’ if x > 0 else ‘b’ for v in x]) I get the following error: ValueError: …

Total answers: 1

How do I connect categorical scatter points with a vertical line?

How do I connect categorical scatter points with a vertical line? Question: I have data in dataframe about different assets – let’s say A,B,C,D. What I would like to do is create a chart that looks something like this: These assets are at a maximum of price n (let’s say in our case 3.5), the …

Total answers: 1

ufunc 'sqrt' not supported for the input types

ufunc 'sqrt' not supported for the input types Question: 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’, ‘ 0.6352952’] First value is x, …

Total answers: 1

Set two colors for a point of a matplotlib-scatter plot

Set two colors for a point of a matplotlib-scatter plot Question: So Realising that this may not possible. What I want to do, looks something like this: point_x = [1] point_y = [1] col1 = [‘blue’] col2 = [‘red’] plt.scatter(point_x,point_y, c=col1,marker=’o’) plt.scatter(point_x,point_y, c=col2,marker=donut?) This would represent one point, where a portion of the (let’s say) …

Total answers: 1

How to change color of data points on a scatter plot according to an age range?

How to change color of data points on a scatter plot according to an age range? Question: !(https://i.stack.imgur.com/FX1vB.png) !(https://i.stack.imgur.com/mGajr.png) Hello everyone, I am very new to Python so bear with me. I am sure this is an easy answer. Above is my scatter plot, with GOLF Data from Kaggle. The X variable is Fairway Hit% …

Total answers: 1