All Questions
185 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 ...
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[&...
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 ...
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 ...
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 ...
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....
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()" ...
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 ...
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
...
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,
...
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. ...
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 ...
-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, ...
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',...
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 = [[...