Questions tagged [scatter]

A scatter plot is a type of mathematical diagram using Cartesian coordinates to display values for two variables for a set of data.

A scatter plot is a type of mathematical diagram using Cartesian coordinates to display values for two variables for a set of data.

943 questions
2
votes
1 answer

How do I add color as a 3rd dimension to matplotlib scatterplot?

I have a pandas dataframe like following: Category X_Axis Y_Axis Categor1 10000 10000 Categor2 15000 20000 Categor3 20000 30000 Categor1 25000 40000 Categor2 10000 50000 I want my code to create a scatter plot with X_Axis values on horizontal, and…
2
votes
0 answers

Python plotly scatter_geo_Text isolation within legend

There is possibility to isolate trace in legend, but it isolate only markers and not the text on them. How to isolate text as well? import plotly.express as px import plotly.graph_objs as go import pandas as…
Dmitry
  • 361
  • 6
  • 21
2
votes
3 answers

Python plotly scatter_geo modify hover data

I want to modify hover data and leave ther for e.g. only bins data. I made following code, but hover_data parameter didn't work. What is the way to modify haver data? import plotly.express as px import plotly.graph_objs as go import pandas as…
Dmitry
  • 361
  • 6
  • 21
2
votes
1 answer

Sharing a part of an array in MPI

I am thinking about a problem that requires sharing an array as follows: Suppose int array[10] and there are 3 processes so that; process 0 gets array[0:3] 3 is included. process 1 gets array[3:6] 6 is included. process 2 gets array[6:9] 9 is…
HARUN SASMAZ
  • 567
  • 1
  • 7
  • 17
2
votes
0 answers

Chartjs fixed range on X axis and custom labels

I'm trying to create a scatter plot with Chartjs. I want to have few datasets centered around one X value, and three Y values. When I can't set the custom X labels for my dataset, and also can't set a fixed range for X axes. This is how I generate…
2
votes
1 answer

How to create 3d boxes in matplotlib chart and count total number of point in each box?

I have a 3d scatter chart as shown in the image. I have to divide the axis and create set of 3d boxes in chart and count total number of point in each 3d box. Can anybody tell me how to create 3d boxes in the chart and count number of points in…
A_learner
  • 47
  • 10
2
votes
1 answer

Zooming a portion of figure in a figure-Matlab

I have a scatter plot with logarithmic axes and I want to add a small figure on the original figure which zooms on a specific part of the plot. Something like this : but for a specific part of this code on this…
user11607936
2
votes
1 answer

Scatter plot with color gradient based on distance from 0:0 lines

I'm currently trying to change the colors of the points in a scatterplot. I want the color to go from white to another color (red, blue...) while the points are distancing themself from the 0 horizontal AND vertical axis. Here is an drawn example…
2
votes
2 answers

How do I add an x=y line through this seaborn plot?

I have a logarithmic scatter plot in seaborn, but I am wondering how to put an x=y line to bisect the data ax = sns.pairplot(x_vars=["Yamaguchi Double"], y_vars=["Yamaguchi Helix"], data=df11, hue="Image", size=3) ax.set(xscale="log", yscale="log",…
Sonny Bailey
  • 31
  • 1
  • 2
  • 4
2
votes
2 answers

scatter plot with different colors and labels

I have a pandas dataframe. It looks like this: Im trying to create scatter plot with different colors for each point. I tried: df.plot.scatter(x='x',y='y',c=df.colors.tolist(), legend=True) I get the scatter plot allright. But im not able to…
turtle_in_mind
  • 986
  • 1
  • 18
  • 36
2
votes
1 answer

IAR linker copy code from FLASH to RAM during initialization

I want to run code in RAM and use initialize copy by directives. My .icf file is as follows: define symbol __ICFEDIT_intvec_start__ = 0x08000000; /*-Memory Regions-*/ define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; define symbol…
ctaoist
  • 81
  • 1
  • 6
2
votes
2 answers

How to switch direction of axis in 3D scatterplot plotly?

I plotted the following using plotly and got the resulting plot shown before. X is the # of hours in a day, Y is a proportion between 0-1, and Z is a categorical variable with levels {0,1,2}. However, it's unclear why the X seems to be going the…
Jane Sully
  • 3,137
  • 10
  • 48
  • 87
2
votes
1 answer

Is plt.scatter() a redundant function?

I tried to find something I can only do with plt.scatter, that plt.plot can't, but with the use of the Line2D args and everything else it seems to me plt.scatter is basically useless. I came across this quandary after I tried to write a script for…
J.Doe
  • 224
  • 1
  • 4
  • 19
2
votes
2 answers

Discrete colorbar is missing a color

Matplotlibs discrete colorbar is missing one color define in my color map, and also used in the plot. In my example code I have seven colors, but the colorbar only shows six colors, though the code for creating the colormap and colorbar seems…
Horror Vacui
  • 195
  • 8
2
votes
1 answer

How to sort y axis in desired order in scatter plot?

I would like to make a scatter plot for the following DataFrame with x-axis topic and y-axis content. In[18]: test=pd.read_excel('test.xlsx') In[19]: test Out[19]: topic content 0 A1 a 1 A1 b 2 A2 …
Jinglebell
  • 55
  • 1
  • 1
  • 5