Questions tagged [scatter3d]

Three-Dimensional Scatterplots and Point Identification

The scatter3d function uses the rgl package to draw 3D scatterplots with various regression surfaces. The function identify3d allows you to label points interactively with the mouse: Press the right mouse button (on a two-button mouse) or the centre button (on a three-button mouse), drag a rectangle around the points to be identified, and release the button. Repeat this procedure for each point or set of “nearby” points to be identified. To exit from point-identification mode, click the right (or centre) button in an empty region of the plot.

244 questions
1
vote
1 answer

Plotting a 3-dimensional numpy array

I have a 3d numpy array with the shape (128,128,384). Let's call this array "S". This array only contains binary values either 0s or 1s. \now \i want to get a 3d plot of this array in such a way that \ I have a grid of indices (x,y,z) and for every…
1
vote
0 answers

Plotting 3D scatter plot on top of map or image

I am trying to visualize some drone flights I did, measuring the signal strength. For this I want to use 3D scatter plots in matplotlib. Now it would be cool if I could use a map of the area as a base of the plot. For the map I would simply use…
1
vote
1 answer

how to add colors to the legend of Axes3D.scatter

I would like to add colors to my labels in the legend of 3D plot, but is not working when I tried with a similar method to add colors to a regular plt.plot. fig = plt.figure(figsize=(10, 8)) ax = Axes3D(fig) colors = ['b', 'g', 'r', 'c', 'm', 'y',…
Y4RD13
  • 937
  • 1
  • 16
  • 42
1
vote
0 answers

3D scatter plot using symbols for markers with plotly in R

I am unable to get all my desired symbols to appear with a 3D scatter plot in R using the plotly package. I know that I am stretching what is distinguishable (for example color palette is greater than n=8 and symbols are greater than n=6, R throws…
andemexoax
  • 323
  • 3
  • 15
1
vote
0 answers

Changing Opacity by a function

I have created a 3d scatter plot that changes colour based around a separate variable, Intensity. Ideally I would change the opacity so that the lower intensity colours are less visible. To do this I created a separate function that should return a…
JRF
  • 11
  • 2
1
vote
1 answer

Divided the color in scatterplot3d

Need your advice to color scatterplot3d according to Year category. I have the dataset as follows: data2d No d_Mart d_Train Price Year 1 371.20750 945.8907 304 2013 2 1396.94337 2347.5052 446 2015 3 393.82319 1092.1655 802 …
S Sarif
  • 11
  • 2
1
vote
0 answers

Changing the tick labels with plot3D::scatter3D() in R

I'm trying to make a plot like the following using the scatter3D() function in R: So far so good, but I'm struggling to change the tick labels on the axis Variant from 1, 2, 3 to A, B, C. Is there any way to implement this? To create the plot…
bucky
  • 111
  • 5
1
vote
1 answer

x and y axis interchanged in scatter3 plot in GNU Octave

Suppose I want to plot f(x,y,z) = x^2 using the scatter3 function of GNU Octave. My code is x = [1,2,3,4]; y = [1,2,3,4,5]; z = [1,2,3,4,5,6]; for xi = 1:4 for yi = 1:5 for zi = 1:6 a(xi,yi,zi) = x(xi) * x(xi); …
1
vote
0 answers

How to create Custom Buttons for 3D Scatter plots in Plotly?

I am using plotly in Jupyter Notebook with Python to generate multiple 3D plots. All the data exists as points and thus is plotted with Scatter3d. Some of the data are circles, some are planes. See the overall model here: I am trying to create…
yourboyjoe
  • 41
  • 2
1
vote
0 answers

Display scatter3D above a surface (plot_trisurf), zorder doesn't work

I am trying to add a point on a surface displayed with the function plot_trisurf. The point is present, but seems to be drawn before the surface, so that the only way to see it is to make the surface transparent. I would like this point to appear on…
Claudine C
  • 11
  • 1
1
vote
1 answer

Interactive 3D scatter plot from text file created by concatenating multiple files

I have multiple text files with specific filename format in a directory, I want to concatenate all the content from all the files to a single .csv file and need to make an interactive 3D scatter plot using the specific data columns from the final…
VGB
  • 447
  • 6
  • 21
1
vote
1 answer

How can I explicitly assign unique colors to every point in an R Plotly scatterplot?

I have some data like this: data <- data.frame(x=runif(500), y=runif(500), z=runif(500)) I want a scatterplot with points colored independently/discretely in each dimension (X, Y, and Z) using RGB values. This is what I have…
cubic.inf
  • 53
  • 7
1
vote
1 answer

Select and delete data points in plotly dash 3d scatter

I am trying to add interactivity to a plotly 3d scatter plot which I am hosting using dash. My question contains two related parts: (i) I would like to manually select points in my 3d scatter and change the selected points' colour to red. …
Carl
  • 598
  • 2
  • 11
  • 25
1
vote
1 answer

3D scatter plot legend error from KMeans "No handles with labels found to put in legend"

I have plotted 3D scatter plot for a KMeans model which I had fitted for RFM analysis. I used KMeans model labels for "color" groups. when I used legend(), it pops an error, "No handles with labels found to put in legend" from mpl_toolkits.mplot3d…
Erandi
  • 11
  • 5
1
vote
0 answers

How to plot various data sets on the same scatter plot with the same colour bar

I have 4 variables that i would like to plot, i have a dictionary containing all the data i need which give x,y,z and c data. I would like to plot the position of each data point using the position of x,y and z with the fourth variable coloured…
rm24
  • 27
  • 5