Skip to main content

All Questions

Tagged with
2 votes
2 answers
61 views

How to scale points in scatterplot by area

How can I scale the points in a Stata scatterplot by another variable? (I would like to get the area of each point, so I would like to scale by the area, or the square root of the variable, but this ...
bill999's user avatar
  • 2,570
0 votes
0 answers
38 views

I'm trying to make a scatter plot with error bars, and am having difficulty changing the black dot in the data point to blue

Here is my code. I've tried rearranging lines of code and turning the black dot blue. I would like to keep the data dots blue and have black error bars with the caps. a = [85, 77, 77, 77, 70, 81, 70] #...
Liz's user avatar
  • 1
0 votes
1 answer
57 views

How to change scatter point color in plotly if exceed/ in between horizontal and vertical lines

Is it possible to change the specific scatter point color in a plot when values is in between the horizontal and vertical line in plot? Example: Horizonal Line and Vertical Line Code Here is the ...
random235's user avatar
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
1 answer
37 views

Using ax.scatter to make individual markers on plot points

My code has the line below ax1.scatter(data1[0], data1[1], marker='o', s=20, color = ['k','b','g','r','m'], edgecolors= ['k','b','g','r','m']) I would like to have the ...
Ben's user avatar
  • 47
0 votes
0 answers
97 views

Adding a regression line to a dotplot, or stacking overlapping points horizontally without dotplot

I'm trying to create a graph which shows the regression line and of this data and meaningfully shows the individual points. If I keep the x axis data as numeric and use a scatter plot, the graph looks ...
quinfog's user avatar
  • 43
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
-1 votes
1 answer
21 views

My x and y axis are not readable. How can I fix a unit of measure on the axis?

I have a little problem with my plot. Since I have so many values, how can I make the x and y axis readable? I'd like to fix a unit of measure on the axis. How can I sort it out? Thank you! plt....
moon_lover's user avatar
0 votes
0 answers
43 views

How to fit text labels on Seaborn log-log scatterplots?

My question is how to adjust a Seaborn log-log scatterplot to fit text labels? MWE: mport seaborn as sns mport seaborn.objects as so f = sns.load_dataset("penguins").sample(frac = 0.1) f['...
Gaslight Deceive Subvert'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
2 votes
3 answers
108 views

In ggplot2, remove superfluous points from line legend

I have this plot: library(ggplot2) ggplot(iris, aes( x = Petal.Length, y = Petal.Width, color = Species, linetype = Species, shape = ...
mvanaman's user avatar
  • 355
0 votes
1 answer
223 views

logy axis using plotly.graph_objects

I'm trying to draw a curve using plotly.graph_objects on a figure that already has a scatter plot that is animated. Everything is fine, except that I can't make the y axis logarithmic. This is one ...
m0bina's user avatar
  • 1
0 votes
2 answers
917 views

ggplot2 adding custom error bars and drawing horizontal line

I am trying to make a scatter plot with custom values (including custom error bars). There are 5 variables with 3 values each. One of the values is the mean, and the other 2 values are 95% confidence ...
aleksej stevanovic's user avatar

15 30 50 per page
1
2 3 4 5
46