Skip to content
Advertisement

Tag: scatter

How to relate size parameter of .scatter() with radius?

I want to draw some circles using `ax3.scatter(x1, y1, s=r1 , facecolors=’none’, edgecolors=’r’), where: x1 and y1 are the coordinates of these circles r1 is the radius of these circles I thought typing s = r1 I would get the correct radius, but that’s not the case. How can I fix this? Answer If you change the value of ‘r’

How to iterate over scatter data?

I am trying to plot a time series on a scatterplot with dropdown boxes using Plotly express. I have 2 traces filtered on some unique values in the “name” column of my data. I’m using the ‘color’ function on px.scatter to filter by this column. Since the traces have the same name, they are duplicated on the plot and I

Advertisement